Deployment
Step 1: Deploy the wasm binary to the testnet
Use the wasmd Go CLI
or CosmJS Node Console
.
To upload the code to the blockchain:
Alternative for uninitialized environment variables:
Step 2: Store the bytecode on-chain and get the Code Id.
Step 3: Check instantiated contracts using the Code Id.
Step 4: Verify the uploaded wasm binary.
Step 5: Instantiate the wasm contract:
To interact with a contract
Register a name:
Transfer the name record to another address:
Using CosmJS Node Console for deployment:
Initialize a CosmJS CLI session:
Import necessary utilities and upload the wasm binary.
Instantiate the Contract in CosmJS:
Define default fees, create an instance using the code id, and get the contract address.
Contract Interaction in CosmJS:
Register a name and transfer ownership to another address.
Last updated