StargateClient methods for most cases, and drop down to the auth extension when you need the raw protobuf response.
Using StargateClient
getAccount returns null for addresses that have never received tokens. getSequence throws if the account does not exist.
Supported Account Types
The defaultaccountFromAny parser handles these Cosmos SDK account types:
Any unrecognized type URL causes
accountFromAny to throw. Use a custom AccountParser to handle chain-specific account types.
Using the Auth Extension Directly
Any type. StargateClient parses this with accountFromAny, which handles BaseAccount, ModuleAccount, and all vesting account types.
Custom Account Parser
Chains with non-standard account types require a customAccountParser:
Next Steps
Bank Queries
Token balances and supply.
Error Handling
Handle missing accounts and other query errors.