Cosmos gRPC

The Cosmos SDK gRPC interface for TAC: the same module query set as the Cosmos REST API, exposed as typed Protocol Buffers services over HTTP/2. Examples use grpcurl. Addresses use the bech32 tac1… form; amounts are in the base denomination.

Endpoint

bashshared.eu-central-1.getblock.io:443   (TLS, access token passed as request metadata)

Replace <ACCESS-TOKEN> with the access token from the GetBlock dashboard. gRPC connects to a host:port target over TLS, with the access token supplied as request metadata rather than in the URL path. Confirm the exact gRPC target and the access-token metadata key in the GetBlock dashboard. On the SPB testnet, use the Frankfurt target.

Available Services

MethodDescription
auth AccountAccount details and sequence
bank BalanceBalance of one denom for an address
bank AllBalancesAll balances for an address
bank TotalSupplyTotal supply of all denoms
staking ValidatorsList staking validators
staking DelegatorDelegationsA delegator's delegations
distribution DelegationTotalRewardsOutstanding rewards for a delegator
gov ProposalsList governance proposals
tx BroadcastTxBroadcast a signed transaction

Example

List the services exposed by the node, then query a bank balance:

bash# List available gRPC services (reflection)
grpcurl -H "x-api-key: <ACCESS-TOKEN>" \
  shared.eu-central-1.getblock.io:443 list

# All balances for an address
grpcurl -H "x-api-key: <ACCESS-TOKEN>" \
  -d '{"address":"tac1ql8dru5dgm6gtg3hcdq9lds3q3fnk3s6k9h8f0"}' \
  shared.eu-central-1.getblock.io:443 \
  cosmos.bank.v1beta1.Query/AllBalances

The metadata key for the access token (x-api-key above) is illustrative — confirm the exact header the GetBlock gRPC gateway expects in the dashboard.

Response

json{
  "balances": [
    { "denom": "atac", "amount": "150000000000000000000" }
  ],
  "pagination": { "total": "1" }
}

Use Cases

  • Typed backends: Use generated protobuf clients for production services
  • Same query set as REST: Prefer gRPC for performance; REST for quick HTTP/JSON access
  • Transaction broadcast: Submit signed transactions via tx BroadcastTx

See Also