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
請造訪「快速入門」頁面,建立您的端點並發送第一個請求。
支援的網路
Quicknode provides access to the following Stacks networks:
Complete reference for developers building on Stacks with Quicknode:
快速入門
Get started with Stacks quickly. Follow our step-by-step quickstart to set up your endpoint and make your first API request.
供應商端點
Learn how to configure and manage your Stacks endpoints for optimal performance and reliability.
API 概覽
探索受支援的 API、網路、Quicknode 產品以及增強的 API 功能,以建置功能強大的應用程式。
市集
探索並整合來自 Quicknode 市集的強大外掛程式與工具,以強化您的 Web3 應用程式。
端點安全
透過身分驗證、白名單機制及最佳安全實務,確保您的端點安全。
錯誤代碼
Understand common error codes and troubleshooting steps for Stacks API requests.