Bitcoin Cash - REST API

REST API endpoints supported on Bitcoin Cash Mainnet and Bitcoin Cash Testnet through Tatum RPC Gateway, with base URLs and an example request.

Call Bitcoin Cash REST endpoints through Tatum RPC Gateway. Append the endpoint path to the network's base URL and send your API key in the x-api-key header. See Authentication.

Base URLs

NetworkBase URL
Bitcoin Cash Mainnethttps://bitcoin-cash-mainnet.gateway.tatum.io/rest
Bitcoin Cash Testnethttps://bitcoin-cash-testnet.gateway.tatum.io/rest

Example request

curl 'https://bitcoin-cash-mainnet.gateway.tatum.io/rest/chaininfo.json' \
  --header 'x-api-key: {YOUR_API_KEY}'

Endpoints

11 endpoints. Parameters and responses are described in the Bitcoin Core REST interface.

EndpointDescription
GET /block/{block-hash}Returns a block by hash, with full transaction details.
GET /block/notxdetails/{block-hash}Returns a block by hash, with transaction IDs only.
GET /blockhashbyheight/{height}Returns the hash of the block at a given height.
GET /chaininfo.jsonReturns the state of the blockchain, like getblockchaininfo.
GET /getutxos/{outpoint}/{outpoint}/.../{outpoint}Returns the unspent outputs among the given outpoints.
GET /getutxos/checkmempool/{outpoint}/{outpoint}/.../{outpoint}Returns the unspent outputs among the given outpoints, including mempool spends.
GET /headers/{block-hash}Returns block headers starting at a block hash.
GET /headers/{count}/{block-hash}Returns a given number of block headers starting at a block hash.
GET /mempool/contents.jsonReturns all transactions in the mempool.
GET /mempool/info.jsonReturns the state of the mempool, like getmempoolinfo.
GET /tx/{tx-hash}Returns a transaction by hash.

The gateway lists its supported endpoints at runtime:

Endpoint unavailable?

If you need an endpoint we don't support yet, contact support.