Mezo
Overview
Integrate applications and agent workflows with the Mezo protocol. Use this skill when a task requires Mezo network setup (testnet/mainnet), Hardhat or Foundry configuration, Mezo Passport wallet connection, mezod/validator-kit operations, Mezo Earn automation (lock/vote/claim/poke/incentives), contract deployment verification, or Mezo-specific dApp requirements such as BTC gas and MUSD integration expectations.
Environment
- Requires
bash and curl.
- Node.js is needed for Hardhat/Passport workflows.
- Go is needed for
mezod workflows.
Execute this workflow when the user needs practical Mezo integration work, not generic blockchain advice.
Workflow
- Pick the integration target first:
- App-level EVM integration (Hardhat/Foundry + RPC + deploy flow).
- Wallet UX integration (standard EVM wallet vs Mezo Passport).
- Node/operator path (
mezod and validator-kit).
- Mezo Earn operations (veBTC lifecycle, gauge voting, rewards claims, and incentive posting).
- Configure network and toolchain from network-and-env:
- Set correct chain (
31611 testnet or 31612 mainnet).
- Apply Hardhat/Foundry configuration.
- Verify RPC health and chain id with
scripts/check-rpc.sh or full preflight with scripts/preflight.sh.
- Implement wallet connection path from passport-and-wallet:
- If app needs BTC-native + EVM wallet options, use Mezo Passport.
- If Passport is not required, use standard EVM wallet flow and manual network config.
- If task is Mezo Earn-related, follow mezo-earn-automation:
- Use canonical mainnet/testnet contracts from Mezo docs + tigris deployments.
- Build an epoch-aware automation loop around
vote, poke, and claims.
- Apply safety limits for lock updates, votes, and incentive posting.
- Complete deployment sanity checks:
- Confirm RPC responds with expected chain id.
- Deploy contract using configured signer/provider.
- Confirm tx on correct explorer (
explorer.test.mezo.org or explorer.mezo.org).
- Apply Mezo-specific constraints before shipping:
- BTC is the gas asset.
- If user asks about Mezo Market feature readiness, enforce requirements in references (MUSD integration, audit report, mainnet functionality).
- If task is node/validator-related, follow mezod-and-validator-kit:
- Choose deployment mode (docker/native/helm/manual).
- Follow sync and operational requirements.
- Include PoA submission command only when validator onboarding is requested.
Quick Commands
# Testnet RPC health + chain id check
scripts/check-rpc.sh https://rpc.test.mezo.org 31611
# Mainnet provider check
scripts/check-rpc.sh https://rpc-http.mezo.boar.network 31612
# Preflight with signer + RPC failover
scripts/preflight.sh testnet ~/.config/openagents/mezo-agent.env
scripts/preflight.sh mainnet ~/.config/openagents/mezo-agent.env
Reference Files
- network-and-env: chain params, RPC endpoints, Hardhat/Foundry config, deployment verification.
- passport-and-wallet: Mezo Passport setup and wallet path decisioning.
- mezo-earn-automation: contract map, ABI methods, and agent automation loop for Mezo Earn.
- mezod-and-validator-kit: mezod prerequisites, validator-kit modes, sync/PoA operations.
1---2name: mezo3description: Mezo integration workflows for apps, autonomous agents, and Mezo Earn operations.4---56# Mezo78## Overview910Integrate applications and agent workflows with the Mezo protocol. Use this skill when a task requires Mezo network setup (testnet/mainnet), Hardhat or Foundry configuration, Mezo Passport wallet connection, mezod/validator-kit operations, Mezo Earn automation (lock/vote/claim/poke/incentives), contract deployment verification, or Mezo-specific dApp requirements such as BTC gas and MUSD integration expectations.1112## Environment1314- Requires `bash` and `curl`.15- Node.js is needed for Hardhat/Passport workflows.16- Go is needed for `mezod` workflows.1718Execute this workflow when the user needs practical Mezo integration work, not generic blockchain advice.1920## Workflow21221. Pick the integration target first:23- App-level EVM integration (Hardhat/Foundry + RPC + deploy flow).24- Wallet UX integration (standard EVM wallet vs Mezo Passport).25- Node/operator path (`mezod` and validator-kit).26- Mezo Earn operations (veBTC lifecycle, gauge voting, rewards claims, and incentive posting).27282. Configure network and toolchain from [network-and-env](references/network-and-env.md):29- Set correct chain (`31611` testnet or `31612` mainnet).30- Apply Hardhat/Foundry configuration.31- Verify RPC health and chain id with `scripts/check-rpc.sh` or full preflight with `scripts/preflight.sh`.32333. Implement wallet connection path from [passport-and-wallet](references/passport-and-wallet.md):34- If app needs BTC-native + EVM wallet options, use Mezo Passport.35- If Passport is not required, use standard EVM wallet flow and manual network config.36374. If task is Mezo Earn-related, follow [mezo-earn-automation](references/mezo-earn-automation.md):38- Use canonical mainnet/testnet contracts from Mezo docs + tigris deployments.39- Build an epoch-aware automation loop around `vote`, `poke`, and claims.40- Apply safety limits for lock updates, votes, and incentive posting.41425. Complete deployment sanity checks:43- Confirm RPC responds with expected chain id.44- Deploy contract using configured signer/provider.45- Confirm tx on correct explorer (`explorer.test.mezo.org` or `explorer.mezo.org`).46476. Apply Mezo-specific constraints before shipping:48- BTC is the gas asset.49- If user asks about Mezo Market feature readiness, enforce requirements in references (MUSD integration, audit report, mainnet functionality).50517. If task is node/validator-related, follow [mezod-and-validator-kit](references/mezod-and-validator-kit.md):52- Choose deployment mode (docker/native/helm/manual).53- Follow sync and operational requirements.54- Include PoA submission command only when validator onboarding is requested.5556## Quick Commands5758```bash59# Testnet RPC health + chain id check60scripts/check-rpc.sh https://rpc.test.mezo.org 316116162# Mainnet provider check63scripts/check-rpc.sh https://rpc-http.mezo.boar.network 316126465# Preflight with signer + RPC failover66scripts/preflight.sh testnet ~/.config/openagents/mezo-agent.env67scripts/preflight.sh mainnet ~/.config/openagents/mezo-agent.env68```6970## Reference Files7172- [network-and-env](references/network-and-env.md): chain params, RPC endpoints, Hardhat/Foundry config, deployment verification.73- [passport-and-wallet](references/passport-and-wallet.md): Mezo Passport setup and wallet path decisioning.74- [mezo-earn-automation](references/mezo-earn-automation.md): contract map, ABI methods, and agent automation loop for Mezo Earn.75- [mezod-and-validator-kit](references/mezod-and-validator-kit.md): mezod prerequisites, validator-kit modes, sync/PoA operations.