getblockchaininfo
BitcoinC1Returns chain-wide state: chain name, block/header height, difficulty, verification progress and pruning status. Takes no parameters.
Endpoint
POST https://api.1st-node.com/v1/bitcoin/rpcReturns
object — chain, blocks, headers, difficulty and more.
Request
curl https://api.1st-node.com/v1/bitcoin/rpc \
-H "Authorization: Bearer $ONE_KEY" \
-H "content-type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "getblockchaininfo",
"params": []
}'{
"jsonrpc": "2.0",
"id": 1,
"method": "getblockchaininfo",
"params": []
}Response
{
"jsonrpc": "2.0",
"id": 1,
"result": { "chain": "main", "blocks": 854120, "pruned": false }
}More chain methods on Bitcoin
常见问题
Are your Bitcoin nodes pruned?
No — getblockchaininfo reports pruned: false; we run full archive nodes.
充值、拿密钥、上线。
自助开通。支持加密货币或银行卡。按额度计费——重型原语更贵,简单调用很便宜。
获取 API 密钥