auth account - Cosmos

Returns an account's details, including its account number and sequence (nonce), as a protobuf-Any wrapped account type.

Endpoint

httpGET /cosmos/auth/v1beta1/accounts/{address}

Path Parameters

ParameterTypeDescription
addressstringBech32 account address (cosmos1...)

Example

bashexport COSMOS_REST=https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/

curl "${COSMOS_REST}cosmos/auth/v1beta1/accounts/cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5"

Response

json{
    "account": {
        "@type": "/cosmos.auth.v1beta1.BaseAccount",
        "address": "cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5",
        "pub_key": {
            "@type": "/cosmos.crypto.secp256k1.PubKey",
            "key": "A1b2..."
        },
        "account_number": "123456",
        "sequence": "42"
    }
}

Response Fields

FieldTypeDescription
account.addressstringThe account's bech32 address
account.account_numberstringOn-chain account number
account.sequencestringAccount sequence (nonce) for the next transaction

Use Cases

  • Nonce management: Read sequence before signing a transaction
  • Account checks: Confirm an account exists on-chain

Error Handling

ErrorMessageDescription
400 / Bad requestBad requestA path, query, or body parameter was invalid
404 / Not foundNot foundThe account, validator, proposal, or resource does not exist
403 / RBAC: access deniedAccess deniedThe GetBlock access token is missing or incorrect