Stacks REST API
What is Stacks?
Stacks is a Bitcoin Layer 2 for smart contracts and decentralized applications. It uses the Clarity smart contract language and the Proof of Transfer (PoX) mechanism to anchor security to the Bitcoin network. Developers build on Stacks to create applications that leverage Bitcoin’s security and finality while enabling expressive on-chain logic with Clarity.
Interacting with Stacks APIs
Stacks exposes both REST and WebSocket interfaces for programmatic access to the chain. You can query blocks, transactions, and accounts, read contract interfaces and call read‑only functions, inspect mempool and fees, and broadcast signed transactions.
Connect by running your own Stacks node with the API service enabled, or by using a hosted provider such as QuickNode, which offers reliable, low-latency access without the need to manage infrastructure.
The QuickNode Stacks documentation is continuously updated, but we recommend cross-referencing with the official Stacks documentation for the latest API details.
Make Stacks API Calls
The quickest way to start building on Stacks is to create a QuickNode endpoint and send your first request. QuickNode provides managed Stacks endpoints, offering:
- High reliability — globally distributed infrastructure designed to minimize downtime
- Enhanced performance — optimized latency and request handling for production-grade apps
Visit the QuickStart page to create your endpoint and send your first request.
Supported Networks
QuickNode provides access to the following Stacks networks:
Complete reference for developers building on Stacks with QuickNode:
QuickStart
Get started with Stacks quickly. Follow our step-by-step quickstart to set up your endpoint and make your first API request.
Provider Endpoints
Learn how to configure and manage your Stacks endpoints for optimal performance and reliability.
API Overview
Explore supported APIs, networks, QuickNode products, and enhanced API features for building powerful applications.
Marketplace
Discover and integrate powerful add-ons and tools from the QuickNode Marketplace to enhance your web3 applications.
Endpoint Security
Secure your endpoints with authentication, whitelisting, and best security practices.
Error Codes
Understand common error codes and troubleshooting steps for Stacks API requests.