BCHN reference
Bitcoin Cash Node's JSON-RPC interface, proxied through the gateway with per-call CC billing.
For method semantics — parameters, returns, error codes — see the upstream reference:
The gateway is transparent: the parameter shape, return shape, and error vocabulary of any allowed method match BCHN's reference exactly.
Endpoint
https://solidpeer.io/bchn/<network>/<token>
POST a JSON-RPC envelope. Single requests and batches (capped at 20 sub-requests) both supported.
curl https://solidpeer.io/bchn/mainnet/<token> \
-H "content-type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"getblockcount","params":[]}'
Cost
200 CC per call on mainnet; 100 CC on testnets/regtest. Flat per-system rate — cache hits and forwards both bill the same amount. Per-network multiplier (mainnet 1×, testnets/regtest 0.5×) applies on top.
Supported methods
| Method | CC (mainnet) | Notes |
|---|---|---|
getbestblockhash |
200 | |
getblock |
200 | Verbosity levels 0/1/2 all supported. |
getblockchaininfo |
200 | |
getblockcount |
200 | |
getblockhash |
200 | |
getblockheader |
200 | |
getblockstats |
200 | |
getchaintips |
200 | |
getchaintxstats |
200 | |
getconnectioncount |
200 | |
getdifficulty |
200 | |
getdsproof |
200 | Double-spend proof lookup. |
getdsprooflist |
200 | |
getdsproofscore |
200 | |
getexcessiveblock |
200 | |
getfinalizedblockhash |
200 | |
getindexinfo |
200 | |
getmempoolancestors |
200 | |
getmempooldescendants |
200 | |
getmempoolentry |
200 | |
getmempoolinfo |
200 | |
getmininginfo |
200 | |
getnettotals |
200 | |
getnetworkhashps |
200 | |
getnetworkinfo |
200 | |
getnodeaddresses |
200 | |
getpeerinfo |
200 | Peer IPs redacted in responses. |
getrawmempool |
200 | |
getrawtransaction |
200 | Both raw-hex and verbose forms supported. |
gettxout |
200 | UTXO inspection. |
gettxoutproof |
200 | |
gettxoutsetinfo |
200 | |
scantxoutset |
200 | |
testmempoolaccept |
200 | |
validateaddress |
200 | |
verifymessage |
200 | |
verifytxoutproof |
200 | |
combinepsbt |
200 | |
combinerawtransaction |
200 | |
converttopsbt |
200 | |
createmultisig |
200 | |
createpsbt |
200 | |
createrawtransaction |
200 | |
decodepsbt |
200 | |
decoderawtransaction |
200 | |
decodescript |
200 | |
estimatefee |
200 | |
finalizepsbt |
200 | |
sendrawtransaction |
200 | Broadcasts a transaction to the network. |
generatetoaddress |
200 | Regtest-only — rejected on mainnet/chipnet/testnet4 by preflight. |
Not exposed
Wallet RPCs (sendtoaddress, getbalance, listtransactions, dumpprivkey, etc.) aren't exposed — the gateway doesn't custody keys. Bring your own keys.
Operator-only methods (stop, addnode, setban, submitblock, etc.) are deny-listed.
Calling an unknown or denied method returns 403 method_not_in_allowlist.
Per-token method scope
Tokens without an allowed_methods allowlist accept every method on this page (reads and writes alike). Tokens with an allowlist enforce it strictly — any unlisted method, including sendrawtransaction, returns 403 method_not_in_allowlist. Admin-only methods are blocked by preflight regardless of token config.
Batches
JSON-RPC 2.0 batches respond as an array of the same length, in submission order. Each sub-request is independently billed and may independently succeed or fail. Batch length is capped at 20.