getblockcount

BitcoinC1

Returns the current block height — the number of blocks in the longest valid chain. Takes no parameters.

Endpoint
POST https://api.1st-node.com/v1/bitcoin/rpc

Returns

number — the current block height.

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": "getblockcount",
  "params": []
}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getblockcount",
  "params": []
}

Response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": 854120
}
More blocks methods on Bitcoin

Bitcoin API

Bakiye yükle, anahtarını al, yayına çık.

Self servis. Kripto ya da kartla öde. Krediyle ölçümlenir — ağır ilkel yapılar daha pahalı, basitler ucuz.

API anahtarı al