QueryService
QueryService defines unary RPCs for accessing blockchain data.
Package: thru.services.v1
GetHeight
Section titled “GetHeight”Get block heights
- Request:
GetHeightRequest - Response:
GetHeightResponse
Try it live thru.services.v1.QueryService/GetHeight
https://grpc-web.alphanet.thruput.org GetChainInfo
Section titled “GetChainInfo”Get chain-level information including chain ID.
- Request:
GetChainInfoRequest - Response:
GetChainInfoResponse
Try it live thru.services.v1.QueryService/GetChainInfo
https://grpc-web.alphanet.thruput.org GetAccount
Section titled “GetAccount”Get account information.
- Request:
GetAccountRequest - Response:
thru.core.v1.Account
Try it live thru.services.v1.QueryService/GetAccount
https://grpc-web.alphanet.thruput.org GetRawAccount
Section titled “GetRawAccount”Get account raw bytes.
- Request:
GetRawAccountRequest - Response:
thru.core.v1.RawAccount
Try it live thru.services.v1.QueryService/GetRawAccount
https://grpc-web.alphanet.thruput.org GetTransaction
Section titled “GetTransaction”Get transaction by signature.
- Request:
GetTransactionRequest - Response:
thru.core.v1.Transaction
Try it live thru.services.v1.QueryService/GetTransaction
https://grpc-web.alphanet.thruput.org GetRawTransaction
Section titled “GetRawTransaction”Get raw transaction by signature.
- Request:
GetRawTransactionRequest - Response:
thru.core.v1.RawTransaction
Try it live thru.services.v1.QueryService/GetRawTransaction
https://grpc-web.alphanet.thruput.org GetBlock
Section titled “GetBlock”Get block by slot or hash.
- Request:
GetBlockRequest - Response:
thru.core.v1.Block
Try it live thru.services.v1.QueryService/GetBlock
https://grpc-web.alphanet.thruput.org GetRawBlock
Section titled “GetRawBlock”Get raw block bytes.
- Request:
GetRawBlockRequest - Response:
thru.core.v1.RawBlock
Try it live thru.services.v1.QueryService/GetRawBlock
https://grpc-web.alphanet.thruput.org ListAccounts
Section titled “ListAccounts”List accounts using CEL-based filtering.
- Request:
ListAccountsRequest - Response:
ListAccountsResponse
Try it live thru.services.v1.QueryService/ListAccounts
https://grpc-web.alphanet.thruput.org 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
Try it live thru.services.v1.QueryService/ListBlocks
https://grpc-web.alphanet.thruput.org ListTransactionsForAccount
Section titled “ListTransactionsForAccount”List executed transaction signatures involving an account.
- Request:
ListTransactionsForAccountRequest - Response:
ListTransactionsForAccountResponse
Try it live thru.services.v1.QueryService/ListTransactionsForAccount
https://grpc-web.alphanet.thruput.org GetEvent
Section titled “GetEvent”Get a specific event by ID.
- Request:
GetEventRequest - Response:
Event
Try it live thru.services.v1.QueryService/GetEvent
https://grpc-web.alphanet.thruput.org ListEvents
Section titled “ListEvents”List events with CEL filtering and pagination. Returns events ordered from most recent to older.
- Request:
ListEventsRequest - Response:
ListEventsResponse
Try it live thru.services.v1.QueryService/ListEvents
https://grpc-web.alphanet.thruput.org ListTransactions
Section titled “ListTransactions”List executed transactions with CEL filtering and pagination. Returns transactions ordered from most recent to older.
- Request:
ListTransactionsRequest - Response:
ListTransactionsResponse
Try it live thru.services.v1.QueryService/ListTransactions
https://grpc-web.alphanet.thruput.org GetTransactionStatus
Section titled “GetTransactionStatus”Get derived transaction status metadata.
- Request:
GetTransactionStatusRequest - Response:
TransactionStatus
Try it live thru.services.v1.QueryService/GetTransactionStatus
https://grpc-web.alphanet.thruput.org GenerateStateProof
Section titled “GenerateStateProof”Generate an account state proof snapshot.
- Request:
GenerateStateProofRequest - Response:
GenerateStateProofResponse
Try it live thru.services.v1.QueryService/GenerateStateProof
https://grpc-web.alphanet.thruput.org GetVersion
Section titled “GetVersion”Get component version strings.
- Request:
GetVersionRequest - Response:
GetVersionResponse
Try it live thru.services.v1.QueryService/GetVersion
https://grpc-web.alphanet.thruput.org 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
Try it live thru.services.v1.QueryService/GetStateRoots
https://grpc-web.alphanet.thruput.org GetActiveStateHashes
Section titled “GetActiveStateHashes”Get active state hashes for a range of slots.
- Request:
GetActiveStateHashesRequest - Response:
GetActiveStateHashesResponse
Try it live thru.services.v1.QueryService/GetActiveStateHashes
https://grpc-web.alphanet.thruput.org GetSlotMetrics
Section titled “GetSlotMetrics”Get slot-level metrics including state counters and collected fees.
- Request:
GetSlotMetricsRequest - Response:
GetSlotMetricsResponse
Try it live thru.services.v1.QueryService/GetSlotMetrics
https://grpc-web.alphanet.thruput.org ListSlotMetrics
Section titled “ListSlotMetrics”List slot metrics for a range of slots.
- Request:
ListSlotMetricsRequest - Response:
ListSlotMetricsResponse
Try it live thru.services.v1.QueryService/ListSlotMetrics
https://grpc-web.alphanet.thruput.org GetNodePubkey
Section titled “GetNodePubkey”Get the node’s own ED25519 public key.
- Request:
GetNodePubkeyRequest - Response:
GetNodePubkeyResponse
Try it live thru.services.v1.QueryService/GetNodePubkey
https://grpc-web.alphanet.thruput.org GetNodeRecords
Section titled “GetNodeRecords”Get all known node records from the gossip network.
- Request:
GetNodeRecordsRequest - Response:
GetNodeRecordsResponse
Try it live thru.services.v1.QueryService/GetNodeRecords
https://grpc-web.alphanet.thruput.org GetNodeStatus
Section titled “GetNodeStatus”Get the node’s operational status including consensus readiness.
- Request:
GetNodeStatusRequest - Response:
GetNodeStatusResponse
Try it live thru.services.v1.QueryService/GetNodeStatus
https://grpc-web.alphanet.thruput.org