Blockchain
Proxy RPC call to the underlying node
Changed onAllows 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
- Base URL/ (relative, and the document was published on a file host, not at the API’s origin)
- AuthHTTP basic
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
cryptoCodestring required
The cryptocurrency code to track (e.g., 'BTC' for Bitcoin, 'LTC' for Litecoin).
Request body
Example request
{
"jsonrpc": "1.0",
"method": "getblockchaininfo",
"params": []
}Response
RPC result or node RPC error. Node errors are returned with HTTP 200.
Changes
- info
endpoint added
- info