Skip to main content

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 pass bitcoin 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:
CapabilityUniversal endpointBitcoin parameters
Raw blocksGET /v1/chains/{chainAlias}/blocks/{blockIdentifier}chainAlias=bitcoin
Raw transactionsGET /v1/chains/{chainAlias}/transactions/{txHash}chainAlias=bitcoin
BTC current priceGET /v1/chains/{chainAlias}/tokens/{tokenAliasOrTokenAddress}/pricechainAlias=bitcoin, tokenAlias=native
BTC historical priceGET /v1/chains/{chainAlias}/tokens/{tokenAliasOrTokenAddress}/price/timeserieschainAlias=bitcoin, tokenAlias=native
BTC sparklineGET /v1/chains/{chainAlias}/tokens/{tokenAliasOrTokenAddress}/price/sparklinechainAlias=bitcoin, tokenAlias=native
Wallet BTC balancesGET /v1/wallets/{walletAddressOrPublicKey}/tokenschains=bitcoin, walletAddress=address OR xpub
Wallet transaction historyGET /v1/wallets/{walletAddressOrPublicKey}/historychains=bitcoin, walletAddress=address OR xpub
Addresses from xpubGET /v1/chains/{chainAlias}/wallets/{publicKey}/addresseschainAlias=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:
# Address input
GET /v1/wallets/bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq/tokens?chains=bitcoin

# Xpub input — same endpoint, derives addresses server-side
GET /v1/wallets/xpub6CUGRUonZSQ4TWtTMmzXdrXDtypWKiKrhko4egpiMZbpiaQL2jkwSB1icqYh2cfDfVxdx4df189oLKnC5fSwqPfgyP3hooxujYzAu3fDVmz/tokens?chains=bitcoin
To enumerate every derived address from an xpub (rather than just query against it), use the xpub utility endpoint.

Get Started