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:
- 高可靠性——全球分布式基础设施,旨在最大限度地减少停机时间
- 性能提升——针对生产级应用程序优化了延迟和请求处理
请访问“快速入门”页面,创建您的endpoint 发送您的第一个请求。
支持的网络
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 功能,用于构建功能强大的应用程序。
附加组件
Discover endpoint add-ons that extend your Stacks development workflow.
Endpoint
通过身份验证、白名单和最佳安全实践来保护您的终端设备。
错误代码
Understand common error codes and troubleshooting steps for Stacks API requests.