QueryService
QueryService defines unary RPCs for accessing blockchain data.
Package: thru.services.v1
GetHeight
Section titled “GetHeight”Get block heights
- Request:
GetHeightRequest - Response:
GetHeightResponse
GetChainInfo
Section titled “GetChainInfo”Get chain-level information including chain ID.
- Request:
GetChainInfoRequest - Response:
GetChainInfoResponse
GetAccount
Section titled “GetAccount”Get account information.
- Request:
GetAccountRequest - Response:
thru.core.v1.Account
GetRawAccount
Section titled “GetRawAccount”Get account raw bytes.
- Request:
GetRawAccountRequest - Response:
thru.core.v1.RawAccount
GetTransaction
Section titled “GetTransaction”Get transaction by signature.
- Request:
GetTransactionRequest - Response:
thru.core.v1.Transaction
GetRawTransaction
Section titled “GetRawTransaction”Get raw transaction by signature.
- Request:
GetRawTransactionRequest - Response:
thru.core.v1.RawTransaction
GetBlock
Section titled “GetBlock”Get block by slot or hash.
- Request:
GetBlockRequest - Response:
thru.core.v1.Block
GetRawBlock
Section titled “GetRawBlock”Get raw block bytes.
- Request:
GetRawBlockRequest - Response:
thru.core.v1.RawBlock
ListAccounts
Section titled “ListAccounts”List accounts using CEL-based filtering.
- Request:
ListAccountsRequest - Response:
ListAccountsResponse
ListBlocks
Section titled “ListBlocks”List blocks using pagination and filtering. By default returns blocks ordered from latest slot to the first one.
- Request:
ListBlocksRequest - Response:
ListBlocksResponse
ListTransactionsForAccount
Section titled “ListTransactionsForAccount”List executed transaction signatures involving an account.
- Request:
ListTransactionsForAccountRequest - Response:
ListTransactionsForAccountResponse
GetEvent
Section titled “GetEvent”Get a specific event by ID.
- Request:
GetEventRequest - Response:
Event
ListEvents
Section titled “ListEvents”List events with CEL filtering and pagination. Returns events ordered from most recent to older.
- Request:
ListEventsRequest - Response:
ListEventsResponse
ListTransactions
Section titled “ListTransactions”List executed transactions with CEL filtering and pagination. Returns transactions ordered from most recent to older.
- Request:
ListTransactionsRequest - Response:
ListTransactionsResponse
GetTransactionStatus
Section titled “GetTransactionStatus”Get derived transaction status metadata.
- Request:
GetTransactionStatusRequest - Response:
TransactionStatus
GenerateStateProof
Section titled “GenerateStateProof”Generate an account state proof snapshot.
- Request:
GenerateStateProofRequest - Response:
GenerateStateProofResponse
GetVersion
Section titled “GetVersion”Get component version strings.
- Request:
GetVersionRequest - Response:
GetVersionResponse
GetStateRoots
Section titled “GetStateRoots”Get state roots for a range of slots. Used for transaction replay to verify state proofs against historical roots.
- Request:
GetStateRootsRequest - Response:
GetStateRootsResponse
GetActiveStateHashes
Section titled “GetActiveStateHashes”Get active state hashes for a range of slots.
- Request:
GetActiveStateHashesRequest - Response:
GetActiveStateHashesResponse
GetSlotMetrics
Section titled “GetSlotMetrics”Get slot-level metrics including state counters and distributed fees (absent-block-producer + claimed).
- Request:
GetSlotMetricsRequest - Response:
GetSlotMetricsResponse
ListSlotMetrics
Section titled “ListSlotMetrics”List slot metrics for a range of slots.
- Request:
ListSlotMetricsRequest - Response:
ListSlotMetricsResponse
GetNodePubkey
Section titled “GetNodePubkey”Get the node’s own ED25519 public key.
- Request:
GetNodePubkeyRequest - Response:
GetNodePubkeyResponse
GetNodeRecords
Section titled “GetNodeRecords”Get all known node records from the gossip network.
- Request:
GetNodeRecordsRequest - Response:
GetNodeRecordsResponse
GetNodeStatus
Section titled “GetNodeStatus”Get the node’s operational status including consensus readiness.
- Request:
GetNodeStatusRequest - Response:
GetNodeStatusResponse