getblock
BitcoinC1Returns information about a block given its hash. Verbosity 1 returns the block with transaction ids; verbosity 2 includes full decoded transactions. Historic blocks resolve on archive nodes.
Endpoint
POST https://api.1st-node.com/v1/bitcoin/rpcParameters
| Name | Type | Description |
|---|---|---|
| blockhash | string | The block hash. |
| verbosity | number | 0 hex, 1 with txids, 2 with full txs. |
Returns
object — the block header, metadata and transactions.
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": "getblock",
"params": ["00000000000000000000f1c7…", 1]
}'{
"jsonrpc": "2.0",
"id": 1,
"method": "getblock",
"params": ["00000000000000000000f1c7…", 1]
}Response
{
"jsonrpc": "2.0",
"id": 1,
"result": { "height": 854120, "tx": ["…"], "time": 1721400000 }
}More blocks methods on Bitcoin
Perguntas frequentes
Can I fetch historic Bitcoin blocks?
Yes — any block is available from our BTC archive nodes.
Recarregue, pegue a chave e publique.
Autoatendimento. Pague em cripto ou cartão. Medido por créditos: primitivas pesadas custam mais, as simples são baratas.
Obter chave de API