Skip to main content
Executing a contract sends a JSON message that triggers state changes. You can attach native tokens, batch multiple executions atomically, and inspect the emitted events.

Basic Execution

Execute with Funds

Attach native tokens to the execution message. The tokens are transferred to the contract as part of the message execution.

Execute Multiple Contracts Atomically

Bundle multiple contract calls into a single transaction using executeMultiple. If any call fails, the entire transaction is reverted.
Each instruction in the array follows the ExecuteInstruction interface:

Parsing Events

Contract executions emit custom events under the "wasm" event type. These contain contract-defined key-value attributes.
When using executeMultiple, each contract call produces its own set of wasm events. Filter by the _contract_address attribute to distinguish which contract emitted each event.

Execution Result

Next Steps

Contract Administration

Migrate contracts and manage admin privileges.

Gas and Advanced Usage

Gas estimation, custom messages, and binary helpers.