Wasm
Send CosmWasm messages to the chain.
Last updated
Send CosmWasm messages to the chain.
Last updated
Command | Description |
---|---|
Executes a wasm message.
Flag | Description | Usage |
---|---|---|
The CLI will promt a confirmation. After confirming, the output is similar to:
Instantiates a contract by code Id.
The transaction link, as well as the new contract address are returned.
Migrates a contract.
Performs a contract query.
Unlike the other messages, the query does not require single quotes around the message.
Here I am queriying the account of a user (which is empty) from one of our contracts, we get:
Upload a contract wasm.
The path is relative to where the CLI was run.
Query general information about the ADO.
Usage
Example
Queries base information about the ADO.
Usage
Example
Flag | Description | Usage |
---|---|---|
Flag | Description | Usage |
---|---|---|
Executes a wasm message.
Instantiates a contract by code Id.
Migrate a contract.
Queries a contract.
Upload a contract wasm.
Queries general information about the contract.
Queries base information about the ADO.
funds
Funds to send with the message
--funds 100uandr
memo
An optional memo to attach to the message
--memo 'Wow what a great transaction!'
simulate
Simulates the transaction without broadcasting it. Useful to estimate gas costs.
-- simulate
help
Displays info about the current command.
--help
label
Used to provide a label assigned to the instantiation.
--label 'This is a great label'
admin
Used to provide an alternative admin address for the contract.
--admin andr1...
simulate
Simulates the transaction without broadcasting it. Useful to estimate gas costs.
--simulate
Prints the constructed message before simulating.
help
Displays info about the current command.
--help
limit
The number of resutls to return. Defaults to 10.
--limit 5
offset
Number of results to skip from the start. Defaults to 0.
--offset 3