Under Proposal 115, no new CosmWasm contracts can be deployed on Sei. The examples below apply to pre-existing CosmWasm contracts only. Calls to
instantiate() revert.Setup
To installethers, run this command in a terminal in your project directory:
Using the contract
Next, set up a provider and a contract to interact with Sei:Querying & executing a CosmWasm contract
When you have the contract instance, you can send query and execute messages to any CosmWasm smart contract. The example below assumes a counter contract with aget_count function.
Executing a payable function
This example executes thedonate method on the same contract. It is similar to
the increment method, but it also receives funds from the user and stores them
in the contract.
msg.value.