INTEGRATE YOUR APP WITH THE STACKS BLOCKCHAIN
The Stacks API is a set of developer-friendly REST endpoints that provide accurate, real-time, performant data.
Simplify your development on Stacks.
Get recent transactions
Retrieve data about transactions on Stacks and broadcast new transactions to the network.
Call smart contracts
Interact with the Stacks ecosystem and call public read-only functions in other smart contracts deployed on the network.
Retrieve account information
Fetch information about on-chain addresses, including their account balance, their transaction history, and more.
Broadcast transactions
Broadcast in-app transactions made by your users and make them official onchain.
A blockchain API built for scale and reliability.
Rich detail of chainstate
Compared to the default RPC endpoints available in Stacks nodes, the Stacks Blockchain API offers a much richer data set. We index and clean on-chain data, and we’ve built out caching, auto-scaling, and query optimization, all to provide you with a performant tool that can surface any onchain information you need in milliseconds.
Designed for ease and optionality
We offer a familiar REST interface for you to interact with the API, and we also provide HTTPS, Websocket, and Socket.io support.
This optionality makes it easy to integrate the API into your existing tech stack. You can also use the Hiro Archive to spin up your own API instance in a matter of hours. We want to enable you to build new things, not spend weeks building infra. We’ve taken care of that for you.
Entirely open source
The Stacks Blockchain API is open source. We encourage you to contribute and file any bugs you find. You can also use that source code to spin up your own instance of the API if you prefer to work with self-hosted tooling.
Request a key from our API portal and start using the Stacks Blockchain API on your app.
Learn how you can leverage the Stacks Blockchain API in our documentation.
If you need help getting started or have feedback to share, reach out to us on Discord.