Blockchain

Proxy RPC call to the underlying node

Changed on

Allows you to make RPC calls to the underlying cryptocurrency node (e.g., Bitcoin Core) via NBXplorer. This endpoint acts as a proxy, forwarding your RPC requests to the node and returning the node's responses.

By default, only a handful of RPC methods are authorized. You can use configuration --btcexposerpc or NBXPLORER_BTCEXPOSERPC=1 to allow all methods.

Go to The JSON-RPC specification page and the Bitcoin Core RPC page for more information.

post/v1/cryptos/{cryptoCode}/rpc

Request

Path parameters

cryptoCodestring required

The cryptocurrency code to track (e.g., 'BTC' for Bitcoin, 'LTC' for Litecoin).

Request body

OR

Example request

{
  "jsonrpc": "1.0",
  "method": "getblockchaininfo",
  "params": []
}

Response

RPC result or node RPC error. Node errors are returned with HTTP 200.

OR

Changes