Skip to main content

Accounts

Every address on XYZ Chain has an associated account that tracks its sequence number (nonce), public key, and account number. These are needed for signing transactions.

Get Account

Retrieve account details for an address.

Key Fields

pub_key is null for accounts that have received tokens but never sent a transaction. The public key is recorded on-chain with the first outgoing transaction.

Using Account Info for Signing

When building a transaction, you need account_number and sequence from this endpoint:
If sequence is stale (another transaction was confirmed since your query), the transaction will fail with code: 32 (account sequence mismatch). Re-query and retry.

List All Accounts

Returns all accounts on the chain. Paginated.
This can return a large number of results on mainnet. Always use pagination parameters.

Account Types

Module accounts are system-owned and cannot be controlled by external keys. They appear in queries for the bridge module, fee pool, and other on-chain mechanisms.