Contracts
On this page
Smart contracts are an advanced feature of XPLA Vault. If you’re using XPLA Vault for the first time, follow the XPLA Vault tutorial.
Prerequisites
Compile a contract locally and create a .wasm
file.
Upload
Deploy a contract by uploading your .wasm
file to XPLA Vault.
Open XPLA Vault and connect your wallet. Click Contracts.
Click Upload.
Upload your
.wasm
file and enter your password.Click Submit.
Your contract is now uploaded, and you received a contract code ID.
Instantiate
Use Instantiate to initialize your contract after uploading.
Click Create.
Enter your contract code ID,
InitMsg JSON
, name, and description.Confirm the fee amounts and enter your password. Click Submit.
Your contract is now initialized.
Query
Use Query to find out contract values. Querying does not cost anything.
Click Query located under your contract address.
Enter your
Input
. Click Submit.
XPLA Vault will show your query result.
Execute
Use Execute to use the contract. Interacting will spend gas.
Click Execute located under your contract address.
Enter your
Msg
.Confirm the fee amounts and click Submit.