Skip to main content

GetBlock gRPC Method

Returns an indexed block by height or hash.

Updated on
Sep 17, 2026

Parameters

id
string

The block height or block hash that identifies the requested block.

Returns

s
string

The application-level status of the indexer response.

errmsg
string

An error message when the request status indicates a failure; otherwise empty.

data
object

The indexed block and its included transactions.

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.

total_txs
string

The cumulative number of transactions indexed through this 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 protobuf messages included in the transaction, base64-encoded in JSON responses.

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.

tx_msg_types
string

The protobuf message type URLs included in the transaction, base64-encoded in JSON representations.

logs
string

The protobuf transaction event logs, base64-encoded in JSON responses.

claim_ids
array

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

signatures
array

The public key, address, sequence, and signature for each transaction signer.

pubkey
string

The signer’s public key encoded as a string.

address
string

The account address associated with the transaction signature.

sequence
string

The signer account sequence, or nonce, used for the transaction.

signature
string

The transaction signature encoded as a string.

block_unix_timestamp
string

The block timestamp expressed in Unix milliseconds.

ethereum_tx_hash_hex
string

The Ethereum-format transaction hash encoded as a hexadecimal string.

memo
string

The optional text memo attached to the transaction.

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