Skip to main content
Example code snippets to query the wasm module on chain

Using gRPC

Fetch contacts’ account balance Note that pagination parameters can be passed to obtain additional accounts.

Fetch contract history

Fetch the state of a smart contract

Fetch the raw state of a smart contract

Fetch the codes associated with a contract

Fetch info associated with a contract code

Fetch the contracts associated with a code

Last modified on March 30, 2026