Skip to content

QueryService

View as Markdown

QueryService defines unary RPCs for accessing blockchain data.

Package: thru.services.v1

Get block heights

Try it live thru.services.v1.QueryService/GetHeight
POST https://grpc-web.alphanet.thruput.org

Get chain-level information including chain ID.

Try it live thru.services.v1.QueryService/GetChainInfo
POST https://grpc-web.alphanet.thruput.org

Get account information.

Try it live thru.services.v1.QueryService/GetAccount
POST https://grpc-web.alphanet.thruput.org

Get account raw bytes.

Try it live thru.services.v1.QueryService/GetRawAccount
POST https://grpc-web.alphanet.thruput.org

Get transaction by signature.

Try it live thru.services.v1.QueryService/GetTransaction
POST https://grpc-web.alphanet.thruput.org

Get raw transaction by signature.

Try it live thru.services.v1.QueryService/GetRawTransaction
POST https://grpc-web.alphanet.thruput.org

Get block by slot or hash.

Try it live thru.services.v1.QueryService/GetBlock
POST https://grpc-web.alphanet.thruput.org

Get raw block bytes.

Try it live thru.services.v1.QueryService/GetRawBlock
POST https://grpc-web.alphanet.thruput.org

List accounts using CEL-based filtering.

Try it live thru.services.v1.QueryService/ListAccounts
POST https://grpc-web.alphanet.thruput.org

List blocks using pagination and filtering. By default returns blocks ordered from latest slot to the first one.

Try it live thru.services.v1.QueryService/ListBlocks
POST https://grpc-web.alphanet.thruput.org

List executed transaction signatures involving an account.

Try it live thru.services.v1.QueryService/ListTransactionsForAccount
POST https://grpc-web.alphanet.thruput.org

Get a specific event by ID.

Try it live thru.services.v1.QueryService/GetEvent
POST https://grpc-web.alphanet.thruput.org

List events with CEL filtering and pagination. Returns events ordered from most recent to older.

Try it live thru.services.v1.QueryService/ListEvents
POST https://grpc-web.alphanet.thruput.org

List executed transactions with CEL filtering and pagination. Returns transactions ordered from most recent to older.

Try it live thru.services.v1.QueryService/ListTransactions
POST https://grpc-web.alphanet.thruput.org

Get derived transaction status metadata.

Try it live thru.services.v1.QueryService/GetTransactionStatus
POST https://grpc-web.alphanet.thruput.org

Generate an account state proof snapshot.

Try it live thru.services.v1.QueryService/GenerateStateProof
POST https://grpc-web.alphanet.thruput.org

Get component version strings.

Try it live thru.services.v1.QueryService/GetVersion
POST https://grpc-web.alphanet.thruput.org

Get state roots for a range of slots. Used for transaction replay to verify state proofs against historical roots.

Try it live thru.services.v1.QueryService/GetStateRoots
POST https://grpc-web.alphanet.thruput.org

Get active state hashes for a range of slots.

Try it live thru.services.v1.QueryService/GetActiveStateHashes
POST https://grpc-web.alphanet.thruput.org

Get slot-level metrics including state counters and collected fees.

Try it live thru.services.v1.QueryService/GetSlotMetrics
POST https://grpc-web.alphanet.thruput.org

List slot metrics for a range of slots.

Try it live thru.services.v1.QueryService/ListSlotMetrics
POST https://grpc-web.alphanet.thruput.org

Get the node’s own ED25519 public key.

Try it live thru.services.v1.QueryService/GetNodePubkey
POST https://grpc-web.alphanet.thruput.org

Get all known node records from the gossip network.

Try it live thru.services.v1.QueryService/GetNodeRecords
POST https://grpc-web.alphanet.thruput.org

Get the node’s operational status including consensus readiness.

Try it live thru.services.v1.QueryService/GetNodeStatus
POST https://grpc-web.alphanet.thruput.org