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
| Method | Description |
|---|---|
| auth Account | Account details and sequence |
| bank Balance | Balance of one denom for an address |
| bank AllBalances | All balances for an address |
| bank TotalSupply | Total supply of all denoms |
| staking Validators | List staking validators |
| staking DelegatorDelegations | A delegator's delegations |
| distribution DelegationTotalRewards | Outstanding rewards for a delegator |
| gov Proposals | List governance proposals |
| tx BroadcastTx | Broadcast 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/AllBalancesThe 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
- TAC overview
- Cosmos REST API - TAC — the same query set over HTTP/JSON
- Cosmos SDK gRPC documentation