v1

latestOpenAPI 3.0.02026-07-174823135.4 KB
Blockchain

Proxy RPC call to the underlying node

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/cryptos/{cryptoCode}/node/rpc

Path parameters

cryptoCodestring required

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

Request body

jsonrpcstring required

JSON-RPC protocol version.

methodstring required

The name of the RPC method to invoke.

Example request

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

Response

Successful RPC call.

{"stackTrail":"components:schemas:RpcResponse:properties:result","oasType":"schema","type":"unknown","description":"The result of the RPC call. The structure depends on the method called.","nullable":true}
resultStringstring nullable

String representation of the result (if any).