Documentation Index
Fetch the complete documentation index at: https://docs.moralis.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The Bitcoin Data API brings full Bitcoin coverage to the Moralis Universal API. Every endpoint is the same Universal endpoint EVM and Solana developers already use — just passbitcoin as the chain.
Historically, shipping a serious Bitcoin app meant stitching together five different services: a block explorer for raw data, a price feed, a custom indexer for address activity, a derivation library for xpubs, and your own caching layer for chart UIs. The Bitcoin API replaces all of that under one consistent surface with the same auth, SDKs, pricing, and rate limits as the rest of Moralis.
Explore the Bitcoin API
Blockchain API
Raw blocks and raw transactions — work directly with onchain data.
Price API
Current BTC price, full historical time series, and chart-ready sparklines.
Wallet API
Transaction history and token balances for any Bitcoin address or xpub.
Xpub Utility
Derive every address associated with a Bitcoin xpub.
How It Works
The Bitcoin API is delivered through Moralis’s Universal API endpoints:| Capability | Universal endpoint | Bitcoin parameters |
|---|---|---|
| Raw blocks | GET /v1/chains/{chainAlias}/blocks/{blockIdentifier} | chainAlias=bitcoin |
| Raw transactions | GET /v1/chains/{chainAlias}/transactions/{txHash} | chainAlias=bitcoin |
| BTC current price | GET /v1/chains/{chainAlias}/tokens/{tokenAliasOrTokenAddress}/price | chainAlias=bitcoin, tokenAlias=native |
| BTC historical price | GET /v1/chains/{chainAlias}/tokens/{tokenAliasOrTokenAddress}/price/timeseries | chainAlias=bitcoin, tokenAlias=native |
| BTC sparkline | GET /v1/chains/{chainAlias}/tokens/{tokenAliasOrTokenAddress}/price/sparkline | chainAlias=bitcoin, tokenAlias=native |
| Wallet BTC balances | GET /v1/wallets/{walletAddressOrPublicKey}/tokens | chains=bitcoin, walletAddress=address OR xpub |
| Wallet transaction history | GET /v1/wallets/{walletAddressOrPublicKey}/history | chains=bitcoin, walletAddress=address OR xpub |
| Addresses from xpub | GET /v1/chains/{chainAlias}/wallets/{publicKey}/addresses | chainAlias=bitcoin, publicKey=xpub |
Key Capabilities
- Full Bitcoin data lifecycle in one API — raw blocks and transactions, market data, address activity, and balances. No stitching required.
- Native xpub support — every wallet endpoint accepts a Bitcoin address or an xpub, plus a utility endpoint to enumerate every derived address from an xpub.
- Chart-ready price data — sparklines bundled alongside historical time series, no second integration needed.
- Address OR xpub inputs — slot the API into whatever your wallet or backend already uses.
- Same Moralis developer experience — consistent auth, SDKs, pricing, and rate limits with the rest of Moralis coverage.
Address or Xpub Inputs
The wallet endpoints accept either a Bitcoin address or an xpub directly:Get Started
- Blockchain API — raw blocks and transactions
- Price API — current price, history, and sparklines
- Wallet API — address history and balances
- Xpub Utility — derive addresses from an xpub
- Bitcoin Quickstart — first request, address-or-xpub flow

