/cosmos/auth/v1beta1/accounts/{address} - Axelar

Returns the account at a bech32 address, including account number and sequence (nonce). The sequence is required to build a transaction.

Endpoint

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

Path Parameters

ParameterTypeDescription
addressstringBech32 account address (axelar1…)

Example

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

curl "${AKASH_REST}cosmos/auth/v1beta1/accounts/axelar1nl7dg3xj9j2y6q7z0v4w8c2b5d1f3g6h9k2m4p"

Response

json{
    "account": {
        "@type": "/cosmos.auth.v1beta1.BaseAccount",
        "address": "axelar1nl7dg3xj9j2y6q7z0v4w8c2b5d1f3g6h9k2m4p",
        "account_number": "12345",
        "sequence": "42"
    }
}

Response Fields

FieldTypeDescription
account.account_numberstringOn-chain account number
account.sequencestringAccount nonce

Use Cases

  • Signing: Read the sequence before signing
  • Existence: Confirm an account exists
  • Wallets: Populate account metadata

Error Handling

ErrorMessageDescription
400 / Bad requestBad requestA parameter was invalid
403 / RBAC: access deniedAccess deniedThe GetBlock access token is missing or incorrect