xiond-wasm

Automate CosmWasm contract optimization, deployment, and interaction on Xion.

Updated Feb 11, 2026
One-click install
npx skills add https://github.com/burnt-labs/xion-skills --skill xiond-wasm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: xiond-wasm
Source: https://github.com/burnt-labs/xion-skills/tree/main/skills/xiond-wasm
Command: npx skills add https://github.com/burnt-labs/xion-skills --skill xiond-wasm

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires xiond, python3, jq, docker, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Deploy and manage CosmWasm smart contracts on the Xion blockchain, enabling automated optimization, deployment, and interaction with on-chain state.

Core Features & Use Cases

  • Optimize Contract: Docker-powered WASM optimization to reduce on-chain gas costs and storage usage.
  • Upload Contract: Store optimized WASM and obtain a Code ID for deployment on Xion networks.
  • Instantiate Contract: Create a contract instance with initialization parameters and an optional admin policy.
  • Query Contract: Read contract state without mutating blockchain data.
  • Execute Contract: Send execute messages to modify contract state and trigger contract logic.

Quick Start

Run the scripts in this skill's directory to optimize, upload, instantiate, query, and interact with a CosmWasm contract on Xion.

Frequently Asked Questions about xiond-wasm

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy a CosmWasm contract on the Xion blockchain?

To deploy a CosmWasm contract on Xion, optimize the WASM file with Docker, upload it to obtain a Code ID, and instantiate the contract using initialization parameters via xiond scripts.

What is needed to manage a CosmWasm contract lifecycle on Xion?

Managing a CosmWasm contract lifecycle on Xion requires xiond installed, Docker for WASM optimization, a funded wallet for authentication, and access to a Xion RPC node for network interaction.

How do I query and execute CosmWasm contracts on Xion testnet or mainnet?

Querying and executing CosmWasm contracts on Xion involves sending JSON I/O messages through xiond scripts, reading state without mutations for queries, and sending execute messages to modify contract state.

Does Xion support automated WASM optimization for smart contracts?

Xion supports automated WASM optimization through Docker-powered scripts that reduce on-chain gas costs and storage usage before uploading the contract to Xion testnet or mainnet environments.

Can I instantiate a CosmWasm contract with an admin policy on Xion?

Instantiating a CosmWasm contract on Xion allows specifying initialization parameters and an optional admin policy, creating a contract instance on the blockchain using the uploaded Code ID.

Why does CosmWasm contract deployment on Xion require Docker?

CosmWasm contract deployment on Xion requires Docker to power the WASM optimization step, which minimizes gas costs and storage usage before the contract is uploaded to the blockchain.