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

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

Endpoint

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

Path Parameters

ParameterTypeDescription
addressstringBech32 account address (crc1…)

Example

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

curl "${CRONOS_REST}cosmos/auth/v1beta1/accounts/crc1p9zq0lr6h6n5s2wk9m3v7t4x8c6b2d0f1g3h5j"

Response

json{
    "account": {
        "@type": "/ethermint.types.v1.EthAccount",
        "base_account": {
            "address": "crc1p9zq0lr6h6n5s2wk9m3v7t4x8c6b2d0f1g3h5j",
            "pub_key": null,
            "account_number": "12345",
            "sequence": "42"
        }
    }
}

Response Fields

FieldTypeDescription
account.base_account.account_numberstringOn-chain account number
account.base_account.sequencestringAccount nonce for the next transaction
account.@typestringAccount type (Ethermint EthAccount on Cronos)

Use Cases

  • Signing: Read the sequence before building a transaction
  • Account Existence: Confirm an address has been seen on-chain
  • Wallet Backends: Populate account metadata

Error Handling

ErrorMessageDescription
404 / not foundNot foundNo account exists at the address
403 / RBAC: access deniedAccess deniedThe GetBlock access token is missing or incorrect