Skip to content

Get Blocks by Number

This endpoint returns all Blocks that were mined within a given block number range (supports pagination). Supported chains: ethereum, polygon, goerli.

Parameters

Parameter Description Type
chain_id A keyword (i.e. "ethereum") or CAIP-2 identifier specifying the blockchain to query. string
block_number_above The earlier block number, inclusive. integer
block_number_below The later block number, inclusive. integer
order The order in which to retrieve the results (either asc or desc). string
limit The maximum number of results to retrieve (default 100). string

curl -X GET \
    'https://api.transpose.io/block/blocks-by-number?chain_id=ethereum&limit=1' \
    -H 'X-API-KEY: FxKTp6MHpWQDaos8SRnSetdIZiUYLliS' \

Got questions? Join our Discord

Discord is the primary home of the Transpose developer community. Join us to ask questions, share your work, and get help.