Skip to main content
These errors occur when querying accounts, contracts, or other on-chain resources. CosmJS handles many “not found” cases gracefully by returning null, but some queries throw when a value is required.

Account / Resource Not Found

Methods like getAccount and getDelegation catch “not found” gRPC errors internally and return null instead of throwing:
getContract does not return null — it throws if no contract is found at the given address. getSequence also throws if the account does not exist because a sequence number is always required for signing:

ABCI Query Failure

Low-level query failures throw with the code and log from the node:

CosmWasm Query Errors