For the complete documentation index, see llms.txt. This page is also available as Markdown.

Bitcoin Cash (BCH)

Bitcoin Cash API Reference for fast and low-cost transactions with BCH nodes, offering scalable solutions for decentralized payments and peer-to-peer digital cash.

Bitcoin Cash is a Layer 1 proof-of-work blockchain that forked from Bitcoin in August 2017 to prioritize on-chain payment capacity. It raised the block size limit well beyond Bitcoin's, targeting low fees and fast confirmation for everyday transactions and peer-to-peer digital cash. The network is maintained by independent node implementations, including Bitcoin Cash Node, and retains the UTXO model and Bitcoin Core-style JSON-RPC interface.

Key Features

  • Large Blocks: A raised block size limit supports high on-chain transaction throughput

  • Low Fees: Ample block space keeps per-transaction fees low under normal load

  • UTXO Model: Uses the unspent transaction output model inherited from Bitcoin

  • CashAddr Addresses: Uses the CashAddr format to reduce confusion with Bitcoin addresses

  • Proof of Work: Secured by SHA-256 proof of work with a responsive difficulty adjustment

  • Block Finalization: Bitcoin Cash Node finalizes deeply buried blocks against deep reorganizations

  • Schnorr Signatures: Supports Schnorr signatures for smaller multisig and improved privacy

  • Bitcoin Core RPC: Exposes a JSON-RPC interface familiar to Bitcoin developers

TECHNICAL DISCLAIMER: AUTHORITATIVE JSON-RPC API SPECIFICATION.

GetBlock's RPC API reference documentation is provided exclusively for informational purposes and to optimize the developer experience. The canonical and normative specification for Bitcoin Cash Node RPC methods is solely maintained and published through the official Bitcoin Cash Node documentation. This resource constitutes the sole authoritative reference implementation of the JSON-RPC 2.0 protocol interface across Bitcoin Cash node clients.

Network Information

Property
Value

Network Name

Bitcoin Cash Mainnet

Native Currency

BCH (1 BCH = 100,000,000 satoshis)

Consensus

Proof of Work (SHA-256)

Address Format

CashAddr and legacy Base58

Model

UTXO

Node Software

Bitcoin Cash Node

Base URL

Supported Networks

Network
JSON RPC
REST
Blockbook (REST)
Blockbook (WebSocket)

Mainnet

✅

✅

✅

✅

Quickstart

In this section, you will learn how to make your first call with either:

  • Javascript(Axios)

  • Python

1

Setup project

Create and initialize a new project:

2

Install Axios

3

Create file

Create a new file named index.js. This is where you will make your first call.

4

Set ES module type

Set the ES module "type": "module" in your package.json.

5

Add code

Add the following code to index.js:

Replace <ACCESS-TOKEN> with your actual GetBlock access token.

6

Run the script

Expected output (example):

1

Set up the project directory

2

Create and activate a virtual environment

3

Install requests

4

Create script

Create a file called main.py with the following content:

Replace <ACCESS-TOKEN> with your actual access token from GetBlock.

5

Run the script

Support

For technical support and questions:

See Also

Last updated

Was this helpful?