bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 54쪽 중 20쪽
.com/burnt-labs/verona-agent-toolkit/blob/main/docs/configuration.md) docs.
{% hint style="info" %}
**OAuth2 client portal by network:** Manage OAuth2 clients in the [testnet portal](https://oauth2.testnet.burnt.com/) or [mainnet portal](https://oauth2.burnt.com/). See [OAuth2 App Development](/en/build-on-verona/accounts/oauth2-app).
{% endhint %}
## Authentication (refresh-first pattern)
Use OAuth2-based auth with local encrypted credentials:
```bash
verona-toolkit auth login
verona-toolkit auth status
verona-toolkit auth refresh
```
Recommended pattern:
1. Check `auth status`
2. Try `auth refresh` first if credentials exist
3. Run `auth login` only when needed
If you plan to manage OAuth2 clients, authenticate with:
```bash
verona-toolkit auth login --dev-mode
```
## Quick start (Treasury + OAuth2 client)
### 1) Check your environment
```bash
verona-toolkit status
verona-toolkit account info
```
### 2) Claim testnet tokens (optional, testnet only)
```bash
verona-toolkit faucet claim
```
### 3) Create and fund a Treasury
```bash
verona-toolkit treasury create \
--name "My Treasury" \
--redirect-url "https://your-app.example/callback"
```
```bash
verona-toolkit treasury fund xion1... --amount 1000000uxion
```
### 4) Configure Treasury permissions
Use `grant-config` and `fee-config` commands to define delegated actions and fee sponsorship.
```bash
verona-toolkit treasury grant-config --help
verona-toolkit treasury fee-config --help
```
### 5) Manage OAuth2 clients
```bash
verona-toolkit oauth2 client --help
```
Use this command group to create, update, query, and manage OAuth2 client ownership/managers for your app.
## AI agent workflow
This page covers the **CLI**. For agent skills, routing, and host install, use the Dev Plugin—not bare `npx skills add` against the toolkit repo.
Copy this instruction into your AI coding assistant:
```
Follow this guide https://raw.githubusercontent.com/burnt-labs/verona-dev-plugin/main/INSTALL.md to install and configure the Verona Dev Plugin for AI coding agents.
```
The plugin bundles skills such as `verona-dev`, `verona-toolkit-init`, `verona-oauth2`, `verona-oauth2-client`, `verona-treasury`, `verona-faucet`, and `verona-asset`. When your task needs CLI operations, the agent can run `verona-toolkit` commands from this guide after `verona-toolkit auth login`.
## Workflow map
```mermaid
flowchart TD
install[Install CLI] --> auth[Authenticate]
auth --> treasury[Treasury management]
treasury --> oauth[OAuth2 client management]
oauth --> integrate[Integrate with app]
integrate --> automate[Automate with agent or CI]
```
## Common how-to tasks
* **Switch network** (`testnet` or `mainnet`)
* `verona-toolkit config set-network testnet`
* `verona-toolkit config set-network mainnet`
* Or pass `--network mainnet` (or `testnet`) on any command
* **Use machine-readable output**
* `verona-toolkit --output json <command>`
* **Disable prompts for automation**
* `verona-toolkit --no-interactive <command>`
* **Track a transaction**
* `verona-toolkit tx wait <TX_HASH>`
* **Backup Treasury setup**
* `verona-toolkit treasury export <TREASURY_ADDR>`
* **Install shell completions**
* `verona-toolkit completions --install`
## Troubleshooting
* **CLI not found**
* Ensure `$HOME/.cargo/bin` is on your `PATH`, then open a new shell session
* **Token expired**
* Run `verona-toolkit auth refresh`
* **Port already in use during login**
* Run `verona-toolkit auth login --port 54322`
* **Scope error for OAuth2 client commands**
* Re-login with `verona-toolkit auth login --dev-mode`
For complete error handling details:
* [Error Codes](https://github.com/burnt-labs/verona-agent-toolkit/blob/main/docs/ERROR-CODES.md)
## Detailed references
* [Verona Dev Plugin Repository](https://github.com/burnt-labs/verona-dev-plugin) — agent skills ([INSTALL.md](https://github.com/burnt-labs/verona-dev-plugin/blob/main/INSTALL.md))
* [Verona Agent Toolkit Repository](https://github.com/burnt-labs/verona-agent-toolkit) — CLI binary distribution and command reference
* [CLI Reference](https://github.com/burnt-labs/verona-agent-toolkit/blob/main/docs/cli-reference.md)
* [Quick Reference](https://github.com/burnt-labs/verona-agent-toolkit/blob/main/docs/QUICK-REFERENCE.md)
* [For AI Agents](/en/about-verona/ai-agents)
# Interacting with the chain using the daemon CLI
Use xiond CLI to query and transact on Verona
`xiond` is the command-line interface (CLI) daemon for interacting with the **Verona network**. It allows users to manage accounts, send transactions, query blockchain data, and operate validator nodes.
## Prerequisites
Before proceeding, ensure that `xiond` is installed on your system. Follow the setup in:
* [Setting up your Local Smart Contract Development Environment for Verona Network](/en/build-on-verona/computation/local-development/setting-up-env/installation-prerequisites-setup-local-environment)
To verify installation, run:
```sh
xiond
```
If installed correctly, you should see command output similar to:
```
xion daemon (server)
Usage:
xiond [command]
```
This output confirms that `xiond` is available.
Typical command groups include:
* `keys` - manage local keys
* `query` - read chain state
* `tx` - broadcast transactions
* `status` - inspect node status
* `start` - run a local node process
Use `xiond [command] --help` for command-specific details.
## Command reference quick list
Below is a practical command map for day-to-day development and operations.
| Command group | Purpose | Example |
| ----------------------- | -------------------------------------------------------- | ----------------------------------------------- |
| `keys` | Manage local keyring entries | `xiond keys list` |
| `query` | Read on-chain data from an RPC node | `xiond query bank balances <addr> --node <rpc>` |
| `tx` | Build, sign, and broadcast transactions | `xiond tx bank send ...` |
| `status` | Check remote node status | `xiond status --node <rpc>` |
| `version` | Show binary version | `xiond version` |
| `config` | Manage local CLI/app config | `xiond config --help` |
| `comet` | CometBFT-related subcommands | `xiond comet --help` |
| `genesis` | Inspect or manage genesis state for local node workflows | `xiond genesis --help` |
| `start` | Run a full node process | `xiond start` |
| `init` | Initialize local node files | `xiond init <moniker>` |
| `export` | Export app state to JSON | `xiond export --help` |
| `rollback` | Roll back Cosmos SDK + CometBFT state by one height | `xiond rollback --help` |
| `prune` | Prune local app history | `xiond prune --help` |
| `snapshots` | Manage local snapshots | `xiond snapshots --help` |
| `debug` | Debug-oriented utilities | `xiond debug --help` |
| `rosetta` | Run Rosetta server mode | `xiond rosetta --help` |
| `module-hash-by-height` | Query module hashes for a target height | `xiond module-hash-by-height --help` |
## Generate an account
To execute transactions on-chain, you need at least one funded account.
Key pairs include:
* A **public key / address** used to receive funds.
* A **private key** used to sign transactions.
### Generate a new key pair
```sh
xiond keys add <keyname>
```
Replace `<keyname>` with a name you want to use locally.
### Retrieve a key
```sh
xiond keys show <keyname>
```
Useful key commands:
```sh
# List all locally stored keys
xiond keys list
# Show account address only
xiond keys show <keyname> -a
```
## Fund your account
You can request testnet tokens with the [Verona Faucet](https://faucet.xion.burnt.com/).
For additional options, see:
* [Requesting $VERONA Testnet Tokens](/en/build-on-verona/references/testnet-tokens)
For **mainnet** usage, fund your wallet from supported exchanges before broadcasting transactions.
## Connect to different Verona networks
For chain IDs and public RPC nodes, see:
* [Public Endpoints & Resources](/en/build-on-verona/references/public-endpoints-and-resources)
When sending transactions to a non-local network, set both:
* `--chain-id` for the target chain
* `--node` for the RPC endpoint
For queries, only `--node` is required.
### Example: Send tokens
```sh
xiond tx bank send <your-wallet> <recipient-address> <amount>uxion \
--chain-id <target-chain-id> \
--node <node-url> \
--from <your-wallet> \
--gas-prices 0.025uxion \
--gas auto \
--gas-adjustment 1.3 \
-y
```
Expected successful output includes:
```
code: 0
txhash: <transaction-hash>
```
If `code` is non-zero, inspect `raw_log` for the failure reason.
### Example: Query balances
```sh
xiond query bank balances <wallet-address> --node <node-url>
```
Typical query output:
```
balances:
- amount: "1223782"
denom: uxion
pagination:
total: "1"
```
## Common workflows
### Check account sequence and account number before signing
```sh
xiond query auth account <wallet-address> --node <node-url>
```
### Estimate transaction before broadcasting
```sh
xiond tx bank send <from> <to> <amount>uxion \
--chain-id <target-chain-id> \
--node <node-url> \
--from <from> \
--gas auto \
--gas-adjustment 1.3 \
--gas-prices 0.025uxion \
--dry-run
```
### Query a transaction by hash
```sh
xiond query tx <txhash> --node <node-url>
```
## Troubleshooting
* `insufficient fees`: raise `--gas-prices` or verify fee denomination for the target network.
* `account sequence mismatch`: query account again, then retry with updated sequence (or avoid parallel tx from same account).
* `wrong chain-id`: confirm `--chain-id` matches the node endpoint you are using.
* `connection refused / timeout`: verify `--node` RPC URL and network reachability.
* non-zero `code` in tx result: inspect `raw_log` to identify module-level failure reason.
## Next steps
* [Deploying Your First Smart Contract on Verona](/en/build-on-verona/computation/local-development/deploy-a-cosmwasm-smart-contract)
* [Verona Agent Toolkit Tutorial](/en/build-on-verona/tools/verona-toolkit)
# Computation
The Computation layer covers CosmWasm smart contracts, business logic, and workflows on the **Verona** network (`xiond`, `xion-testnet-2`).
### Contract development notes
WASM binaries built with the **latest stable Rust** may fail to upload to Verona (`xiond tx wasm store`) because the chain does not support WebAssembly **bulk memory** instructions that newer Rust toolchains can emit.
If you run into store or validation errors after upgrading Rust, create `rust-toolchain.toml` at your **contract project root**:
```toml
[toolchain]
channel = "1.86"
targets = ["wasm32-unknown-unknown"]
```
**Why 1.86?** Rust **1.87+** stable releases may emit WebAssembly with **bulk memory** enabled for `wasm32-unknown-unknown`. Verona’s `wasm store` and runtime do not support bulk memory today, so uploads can fail even when local builds succeed. **1.86** is the latest stable release known to produce upload-compatible WASM for Verona at the time of writing (May 2026). When you upgrade Rust—or when Verona enables bulk memory—re-test `xiond tx wasm store` and update the pinned channel if needed.
Rebuild the contract (and re-run the [CosmWasm optimizer](/en/build-on-verona/computation/local-development/deploy-a-cosmwasm-smart-contract) if you use Docker) before uploading again. See also the [local environment setup](/en/build-on-verona/computation/local-development/setting-up-env/installation-prerequisites-setup-local-environment#rust) guide.
### Overview
Smart contracts on the Verona network are built using CosmWasm and enable:
* **Business Logic**: Automate workflows and processes
* **State Management**: Store and manage application state
* **Integration**: Connect with other Verona features (accounts, payments, verification)
### Quick Start
Get started quickly with pre-built app templates:
* [Zero to App in 5 Minutes](/en/build-on-verona/computation/quick-start/zero-to-dapp-in-5-minutes)
### Local Development
Learn how to set up your development environment and deploy your first contract:
* [Setting up Environment](/en/build-on-verona/computation/local-development/setting-up-env)
* [Interacting with the chain using the daemon CLI](/en/build-on-verona/tools/daemon-cli)
* [Deploying Your First Smart Contract](/en/build-on-verona/computation/local-development/deploy-a-cosmwasm-smart-contract)
### Contract Library
Browse pre-built, audited contracts you can use in your applications:
* [Re-using Existing Contracts](/en/build-on-verona/computation/re-using-existing-contracts)
### Integrations
Learn how to integrate with Verona features:
* [Token Factory](/en/build-on-verona/computation/integrations/token-factory)
* [Oracles](/en/build-on-verona/computation/integrations/oracles)
* [Websockets](/en/build-on-verona/computation/integrations/websockets)
* [Indexers: Optimized Data Retrieval](/en/build-on-verona/computation/integrations/indexers)
### Use Cases
Explore more example applications and use cases:
* [More Use Cases](/en/build-on-verona/computation/use-cases)
# Quick Start
Kickstart your development on Verona with quick, no fuss guides designed to get you up and running in just 5 minutes. These guides are tailored for developers who want to see results fast with no complex setup, no unnecessary overhead.
This section is ideal for:
* Hackathon participants
* Early-stage prototyping
* Developers exploring Verona for the first time
## What You’ll Find Here
Each guide in this section walks you through launching a fully functional Verona app in minutes, using streamlined templates and built-in tools.
You will build:
* Meta Account authentication (email login, no wallets)
* Gasless transactions via Treasury contracts (users pay nothing)
* On-chain smart contract interaction
* Ready-to-extend template for your own application logic
### Zero to app in 5 Minutes
A collection of quick start templates to help you launch apps on Verona to give you an idea of the Abstraction workflow.
* [Overview](/en/build-on-verona/computation/quick-start/zero-to-dapp-in-5-minutes): Start here for a breakdown of all the available templates and how to use them.
* [Launch a User Map app](/en/build-on-verona/computation/quick-start/zero-to-dapp-in-5-minutes/launch-a-user-map-dapp-in-5-minutes): Launch a web based app that lets users store and retrieve data using the [user map](https://github.com/burnt-labs/contracts/tree/main/contracts/user_map) smart contract.
* [Build a React Native Mobile app](/en/build-on-verona/computation/quick-start/zero-to-dapp-in-5-minutes/react-native-mobile-dapp-in-5-minutes): Create a mobile app with Meta Account login and gasless UX using Abstraxion and interacting with an instance of the [user map](https://github.com/burnt-labs/contracts/tree/main/contracts/user_map) contract.
# Zero to App in 5 Minutes
Jump straight into building on Verona with ready-made app templates that require little to no setup. These guides are designed to give developers an instant hands-on experience with building on Verona, without needing to write or compile code, set up a local dev environment, configure complex Treasury contracts, or build out a frontend.
## What’s Included in Each Guide
Each App guide provides:
* **A working smart contract** — already instantiated and ready to use.
* **A configured Treasury contract** — already set up with:
* **Fee Grants** to enable gasless transactions for users.
* **Authorization Grants** that allow your frontend to execute transactions on the user’s behalf.
* **A prebuilt frontend** — all you need to do is deploy it (or run it locally) to interact with the smart contract.
Within minutes, you’ll go from nothing to a fully live, interactive app on Verona, complete with a **Meta Account** login experience and transaction-ready frontend.
The following guides are currently available:
<table data-view="cards"><thead><tr><th></th></tr></thead><tbody><tr><td><a href="/en/build-on-verona/computation/quick-start/zero-to-dapp-in-5-minutes/launch-a-user-map-dapp-in-5-minutes"><strong>Launch a User Map App on Verona in 5 Minutes</strong></a><br>Go from nothing to a fully live, interactive dapp on Verona in 5 minutes.</td></tr><tr><td><a href="/en/build-on-verona/computation/quick-start/zero-to-dapp-in-5-minutes/react-native-mobile-dapp-in-5-minutes"><strong>React Native Mobile App on Verona in 5 Minutes</strong></a><br>Create a Mobile app on Verona in 5 minutes.</td></tr><tr><td><a href="/en/build-on-verona/computation/quick-start/zero-to-dapp-in-5-minutes/build-a-todo-app-using-the-collection-document-storage-smart-contract"><strong>Build a TODO App using the Collection-Document Storage Smart Contract</strong></a><br>Create a TODO Mobile app on Verona in 5 minutes.</td></tr></tbody></table>
# Launch a User Map App in 5 Minutes
Building an app on Verona typically involves three main components:
* **A smart contract** – Contains the core business logic of your app.
* **A Treasury contract** – Enables gasless transactions using **Fee Grants**, making onboarding smoother for users. It also handles **Authorization Grants**, which allow your frontend to execute transactions on behalf of the user, enabling a more traditional application-like experience through our OAuth2-style **Abstraxion** solution.
* **A frontend** – This is your app’s interface, used to display data and trigger transactions via the smart contract.
As a beginner to Verona development, getting a fully functional app up and running should be simple and shouldn’t require any complex setup. With this in mind, we’ve created a [**quick launch frontend solution**](https://quickstart.dev.testnet.burnt.com) for the **User Map** app that handles the creation of both the **User Map** and **Treasury** contracts. Outside of this we have built a [**frontend**](https://github.com/burnt-labs/xion-user-map-json-store-frontend) solution for interacting with the User Map contract.
{% hint style="info" %}
You should have your demo app up and running in under **5 minutes**. Once you're familiar with the workflow, you can move on to the advanced [**User Map guide**](/en/build-on-verona/computation/use-cases/building-a-per-user-data-storage-dapp).
{% endhint %}
## What is the User Map app?
The **User Map** contract is a lightweight and beginner friendly smart contract designed to help developers, especially those coming from traditional web or application development, understand how to manage per-user data in a decentralized environment.
Think of it like a basic key-value store:
* **Key:** User's wallet address
* **Value:** A JSON object (e.g., user profile, preferences, settings)
You can find the source code here: [github.com/burnt-labs/contracts/tree/main/contracts/user\_map](https://github.com/burnt-labs/contracts/tree/main/contracts/user_map).
## Prerequisites
Before you begin, make sure you have the following installed:
* [Node.js](https://nodejs.org) (v24+)
* [Git](https://git-scm.com)
## Create Instance of User Map and Treasury Contracts
**Compiling** and **instantiating** smart contracts can feel like huge tasks, especially for new developers. You typically need to set up your development environment with tools like [**Docker**](/en/build-on-verona/computation/local-development/setting-up-env/installation-prerequisites-setup-local-environment#docker) and [**xiond**](/en/build-on-verona/computation/local-development/setting-up-env/installation-prerequisites-setup-local-environment#xiond), and go through the full process of compiling, deploying, and instantiating your contracts manually. On top of that, creating and configuring a Treasury contract via the [**Dev Portal**](https://dev.testnet.burnt.com) can be overwhelming if you're just getting started.
To make this much easier, we’ve created a [**quick launch frontend solution**](https://quickstart.dev.testnet.burnt.com) for this **User Map** app that takes care of all the heavy lifting, so you can skip the setup pain and focus on experimenting with a real, working app프로젝트로 돌아가기