getblock

BitcoinC1

Returns 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/rpc

Parameters

NameTypeDescription
blockhashstringThe block hash.
verbositynumber0 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

Bitcoin API

Frequently asked

Can I fetch historic Bitcoin blocks?

Yes — any block is available from our BTC archive nodes.

Top up, get a key, ship.

Self-serve. Pay in crypto or card. Metered by credits — heavy primitives cost more, simple ones are cheap.

Get API key