Cosmos gRPC

The Cosmos SDK gRPC interface for Stable: the full module query set exposed as typed Protocol Buffers services over HTTP/2. gRPC carries the same data as the Stable REST API (REST is an HTTP/JSON gateway generated in front of these gRPC services), plus transaction, block, and node services. Examples use grpcurl. Addresses use the bech32 cosmos1… form; amounts are in the base denomination (ausdt0, 1 USDT0 = 10^18 ausdt0).

Endpoint

bashshared.ap-southeast-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. The testnet (provider) is served from the same Frankfurt region.

Discovering Services

If server reflection is enabled, list every service and its methods directly from the node — this is the authoritative, always-current surface for the deployed version:

bash# List all gRPC services
grpcurl -H "x-api-key: <ACCESS-TOKEN>" \
  shared.ap-southeast-1.getblock.io:443 list

# List the methods of one service
grpcurl -H "x-api-key: <ACCESS-TOKEN>" \
  shared.ap-southeast-1.getblock.io:443 list cosmos.bank.v1beta1.Query

# Describe a method's request/response types
grpcurl -H "x-api-key: <ACCESS-TOKEN>" \
  shared.ap-southeast-1.getblock.io:443 describe cosmos.bank.v1beta1.Query.AllBalances

Available Services

The services below are the standard Cosmos SDK query and service set. Each is addressed as <service>/<Method> (for example cosmos.bank.v1beta1.Query/AllBalances).

Auth — cosmos.auth.v1beta1.Query

MethodDescription
AccountsAll accounts, paginated
AccountA single account by address
AccountAddressByIDAccount address by account number
AccountInfoAccount info (base account fields) for an address
ParamsAuth module parameters
ModuleAccountsAll module accounts
ModuleAccountByNameA module account by name
Bech32PrefixThe chain's bech32 account-address prefix (cosmos)
AddressBytesToStringEncode address bytes to a bech32 string
AddressStringToBytesDecode a bech32 string to address bytes

Authz — cosmos.authz.v1beta1.Query

MethodDescription
GrantsAuthorization grants between a granter and grantee
GranterGrantsAll grants issued by a granter
GranteeGrantsAll grants received by a grantee

Bank — cosmos.bank.v1beta1.Query

MethodDescription
BalanceBalance of one denom for an address
AllBalancesAll balances for an address
SpendableBalancesSpendable balances for an address
SpendableBalanceByDenomSpendable balance of one denom for an address
TotalSupplyTotal supply of all denoms
SupplyOfTotal supply of one denom
ParamsBank module parameters
DenomMetadataMetadata for one denom
DenomsMetadataMetadata for all denoms
DenomOwnersAddresses owning a given denom
SendEnabledSend-enabled status per denom

Staking — cosmos.staking.v1beta1.Query

MethodDescription
ValidatorsAll validators, optionally filtered by status
ValidatorA single validator by operator address
ValidatorDelegationsDelegations to a validator
ValidatorUnbondingDelegationsUnbonding delegations from a validator
DelegationA delegation between a delegator and validator
UnbondingDelegationAn unbonding delegation
DelegatorDelegationsA delegator's delegations
DelegatorUnbondingDelegationsA delegator's unbonding delegations
RedelegationsRedelegations for a delegator
DelegatorValidatorsValidators a delegator is bonded to
DelegatorValidatorOne validator a delegator is bonded to
HistoricalInfoHistorical header/validator info at a height
PoolBonded and not-bonded token pools
ParamsStaking module parameters

Distribution — cosmos.distribution.v1beta1.Query

MethodDescription
ParamsDistribution module parameters
ValidatorDistributionInfoA validator's distribution info
ValidatorOutstandingRewardsA validator's outstanding rewards
ValidatorCommissionA validator's accumulated commission
ValidatorSlashesA validator's slash events
DelegationRewardsRewards of a delegation to one validator
DelegationTotalRewardsTotal outstanding rewards for a delegator
DelegatorValidatorsValidators a delegator has rewards with
DelegatorWithdrawAddressA delegator's withdraw address
CommunityPoolThe community pool balance

Governance — cosmos.gov.v1.Query

MethodDescription
ConstitutionThe chain constitution
ProposalA single proposal by ID
ProposalsProposals, optionally filtered by status
VoteA vote on a proposal by a voter
VotesAll votes on a proposal
ParamsGovernance parameters (voting, tally, deposit)
DepositA deposit on a proposal by a depositor
DepositsAll deposits on a proposal
TallyResultThe current tally for a proposal

Mint — cosmos.mint.v1beta1.Query

MethodDescription
ParamsMint module parameters
InflationCurrent minting inflation rate
AnnualProvisionsCurrent annual provisions

Slashing — cosmos.slashing.v1beta1.Query

MethodDescription
ParamsSlashing module parameters
SigningInfoSigning info for one validator
SigningInfosSigning info for all validators

Feegrant — cosmos.feegrant.v1beta1.Query

MethodDescription
AllowanceA fee allowance between a granter and grantee
AllowancesAll fee allowances for a grantee
AllowancesByGranterAll fee allowances issued by a granter

Evidence — cosmos.evidence.v1beta1.Query

MethodDescription
EvidenceA single evidence record by hash
AllEvidenceAll evidence records

Params — cosmos.params.v1beta1.Query

MethodDescription
ParamsA raw parameter by subspace and key
SubspacesRegistered parameter subspaces and keys

Upgrade — cosmos.upgrade.v1beta1.Query

MethodDescription
CurrentPlanThe current upgrade plan, if any
AppliedPlanThe height an applied plan executed at
ModuleVersionsModule consensus versions
AuthorityThe module's governance authority address

IBC — ibc.core.channel.v1.Query / ibc.applications.transfer.v1.Query

MethodDescription
ChannelsAll IBC channels (ibc.core.channel.v1)
ChannelA single IBC channel by port and channel id
DenomTraceThe denom trace for an IBC voucher (ibc.applications.transfer.v1)
DenomTracesAll IBC denom traces

Transactions — cosmos.tx.v1beta1.Service

MethodDescription
BroadcastTxBroadcast a signed transaction (SYNC/ASYNC)
SimulateSimulate a transaction and return gas/result
GetTxFetch a transaction by hash
GetTxsEventSearch transactions by events, paginated
GetBlockWithTxsFetch a block together with its decoded transactions
TxDecodeDecode transaction bytes to a Tx
TxEncodeEncode a Tx to transaction bytes

Node & Base — cosmos.base.tendermint.v1beta1.Service / cosmos.base.node.v1beta1.Service

MethodDescription
GetNodeInfoNode and application (stabled) version info
GetSyncingWhether the node is syncing
GetLatestBlockThe latest block
GetBlockByHeightA block at a given height
GetLatestValidatorSetThe latest validator set
GetValidatorSetByHeightThe validator set at a given height
ABCIQueryA low-level ABCI query (node service)
ConfigNode configuration (minimum gas price)
StatusNode sync status

Example

List services, then query a bank balance:

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

# A validator by operator address
grpcurl -H "x-api-key: <ACCESS-TOKEN>" \
  -d '{"validator_addr":"stablevaloper1qg5ega6dykkxc307y25pecuufrjkxkagqe8n2y5"}' \
  shared.ap-southeast-1.getblock.io:443 \
  cosmos.staking.v1beta1.Query/Validator

Response

json{
  "balances": [
    { "denom": "ausdt0", "amount": "125000000" }
  ],
  "pagination": { "total": "1" }
}

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.

Use Cases

  • Typed backends: Use generated protobuf clients for production services
  • Same query set as REST: Prefer gRPC for performance and typing; REST for quick HTTP/JSON access
  • Transaction broadcast: Submit signed transactions via cosmos.tx.v1beta1.Service/BroadcastTx
  • Live discovery: Use grpcurl list / describe to read the exact surface of the deployed node

See Also