Bitcoin JSON-RPC
This endpoint offers a unified RPC interface for Bitcoin Core node functionality:
Blockchain data:
getbestblockhash
,getblock
,getblockchaininfo
,getblockcount
,getblockfilter
,getblockhash
,getblockheader
,getblockstats
,getchaintips
,getchaintxstats
,getdifficulty
Mempool data:
getmempoolancestors
,getmempooldescendants
,getmempoolentry
,getmempoolinfo
,getrawmempool
,testmempoolaccept
Transactions:
getrawtransaction
,sendrawtransaction
,gettxout
,gettxoutproof
Raw tx/script utils:
createrawtransaction
,decoderawtransaction
,decodescript
Wallet & addresses:
createmultisig
,validateaddress
,verifymessage
Fees:
estimatesmartfee
post
JSON RPC
Authorizations
Body
methodstring · enumRequiredExample:
getrawtransaction
Possible values: Responses
200
Default Response
application/json
post
POST /v2/rpc/bitcoin HTTP/1.1
Host: api.secretkeylabs.io
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 113
{
"method": "getrawtransaction",
"params": [
"6c5ffa32f6942bb82bf36239fb8a6d233c4da6f91bde81869accef2ef6be674e",
true
]
}
200
Default Response
{
"result": null,
"error": null,
"id": null
}
Last updated