Skip to main content
GET
/
api
/
btc
/
blocks
Get most recent N blocks (descending height)
curl --request GET \
  --url https://nexus.gerowallet.io/api/btc/blocks \
  --header 'Authorization: Bearer <token>'
[
  {
    "hash": "<string>",
    "height": 123,
    "time": 123,
    "mediantime": 123,
    "txCount": 123,
    "size": 123,
    "strippedsize": 123,
    "weight": 123,
    "version": 123,
    "merkleroot": "<string>",
    "nonce": 123,
    "bits": "<string>",
    "difficulty": 123,
    "chainwork": "<string>",
    "previousblockhash": "<string>",
    "nextblockhash": "<string>",
    "confirmations": 123
  }
]

Authorizations

Authorization
string
header
required

JWT Token Authentication

Query Parameters

limit
integer<int32>
default:10
Required range: 1 <= x <= 50
network
enum<string>
Available options:
CARDANO_MAINNET,
CARDANO_PREPROD,
CARDANO_PREVIEW,
APEX_PRIME_MAINNET,
APEX_VECTOR_MAINNET,
APEX_VECTOR_TESTNET,
MIDNIGHT_MAINNET,
MIDNIGHT_PREPROD,
MIDNIGHT_PREVIEW,
BITCOIN_MAINNET,
BITCOIN_TESTNET4

Response

200 - */*

OK

hash
string

Block hash

height
integer<int64>

Block height

time
integer<int64>

Block timestamp (epoch seconds)

mediantime
integer<int64>

Median time past (epoch seconds)

txCount
integer<int32>

Number of transactions in this block

size
integer<int64>

Block size in bytes

strippedsize
integer<int64>

Stripped (witness-stripped) size in bytes

weight
integer<int64>

Block weight (BIP141)

version
integer<int32>

Block version

merkleroot
string

Merkle root

nonce
integer<int64>

Nonce

bits
string

Difficulty bits (compact target)

difficulty
number<double>

Difficulty

chainwork
string

Chainwork as hex

previousblockhash
string

Hash of the previous block

nextblockhash
string

Hash of the next block, if any

confirmations
integer<int64>

Number of confirmations