Secret Contracts
Uploading a Secret Contract
secretcli tx compute store ./contract.wasm.gz --from mykey --source "https://github.com/<username>/<repo>/tarball/<version>" --builder "scrtlabs/secret-contract-optimizer:1.0.11"secretcli q tx [hash]{
// [...]
"logs": [
{
"msg_index": 0,
"log": "",
"events": [
{
"type": "message",
"attributes": [
{
"key": "action",
"value": "store-code"
},
{
"key": "module",
"value": "compute"
},
{
"key": "signer",
"value": "your secret address"
},
{
"key": "code_id",
"value": "your code id"
}
]
}
]
}
],
"gas_wanted": "5000000",
"gas_used": "3720108",
"tx": {
"@type": "/cosmos.tx.v1beta1.Tx",
"body": {
"messages": [
{
"@type": "/secret.compute.v1beta1.MsgStoreCode",
"sender": "your secret address",
"wasm_byte_code": "...base64 encoded string of your contract's bytecode ...",
"source": "",
"builder": ""
}
],
"memo": "",
"timeout_height": "0",
"extension_options": [],
"non_critical_extension_options": []
},
},
// [...]
"timestamp": "2022-06-23T13:52:35Z"
}Instantiating a Secret Contract
Executing a Secret Contract
Reading the Output of a Secret Contract Tx
Querying a Secret Contract
Last updated
Was this helpful?