Skip to main content

GetBlocks gRPC Method

Returns indexed blocks using offset pagination. Deprecated: use GetBlocksV2 instead.

Updated on
Sep 17, 2026
Deprecation Notice

Please note that this method is deprecated. Use GetBlocksV2 for new integrations.

Parameters

before
integer

The block height before which matching records are returned.

after
integer

The block height after which matching records are returned.

limit
integer

The maximum number of records to return.

from
integer

The earliest block timestamp to include, expressed in Unix milliseconds.

to
integer

The latest block timestamp to include, expressed in Unix milliseconds.

Returns

paging
object

Pagination metadata for the returned records.

total
string

The total number of matching indexed blocks available.

from
integer

The first block height or record index represented on this page.

to
integer

The last block height or record index represented on this page.

count_by_subaccount
string

The number of matching records grouped by subaccount where available.

next
array

The cursor tokens used to request subsequent result pages.

data
array

The indexed blocks that match the request.

height
string

The height of the returned Injective block.

proposer
string

The consensus address of the validator that proposed the block.

moniker
string

The human-readable name published by the validator.

block_hash
string

The cryptographic hash that identifies the Injective block.

parent_hash
string

The cryptographic hash of the preceding Injective block.

num_pre_commits
string

The number of validator pre-commit votes recorded for the block.

num_txs
string

The number of transactions included in the block.

txs
array

The indexed transactions included in the block.

id
string

The internal identifier assigned to the indexed transaction.

block_number
string

The height of the Injective block containing the record.

block_timestamp
string

The UTC timestamp of the block containing the record.

hash
string

The cryptographic hash that identifies the transaction.

codespace
string

The module namespace that produced the transaction result code.

messages
string

The serialized transaction messages returned by the indexer.

tx_number
string

The monotonically increasing transaction number assigned by the indexer.

error_log
string

The transaction error log when execution failed; otherwise empty.

code
integer

The numeric transaction result code; zero indicates successful execution.

claim_ids
array

The Peggy claim identifiers associated with deposit-claim messages in the transaction. Each value is returned as a decimal string.

timestamp
string

The UTC timestamp when the block was produced.

block_unix_timestamp
string

The block timestamp expressed in Unix milliseconds.

Request
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free