Stacks Node RPC

circle-info

For the complete OpenAPI spec, navigate herearrow-up-right.

The Stacks Node RPC API is exposed by every running Stacks node. It allows you to query the Stacks blockchain and interact with smart contracts. It was built to maintain pageable materialized views of the Stacks network.

chevron-rightWho is this API for?hashtag

The Stacks Node RPC API is designed for developers who want to self-host their own Stacks node and API to achieve a more decentralized setup. It is ideal for those seeking greater control over their connection to the Stacks network, allowing them to run their own infrastructure. These RPC API endpoints, by default, are available when running your own Stacks node.

circle-exclamation

Note that the Stacks Node RPC APIarrow-up-right and the Hiro Stacks Blockchain APIarrow-up-right are two different things. The Hiro API is a centralized service run by Hiro, a developer tooling company, that makes it easy to get onboarded and begin interacting with the Stacks blockchain in a RESTful way. The Hiro API is a proxy for the Stacks Node RPC API that makes it a bit easier to work with by providing additional functionality.

The Stacks Node RPC API is generated by every Stacks node and allows developers to self-host their own node and API for a more decentralized architecture.

The RPC API can be used without any authorization. The basepath for the hosted API is:

# for mainnet, replace `testnet` with `mainnet`
https://api.testnet.hiro.so/

Last updated

Was this helpful?