Requirements
- Target platform
- OpenClaw
- Install method
- Manual import
- Extraction
- Extract archive
- Prerequisites
- OpenClaw
- Primary doc
- SKILL.md
Mint a Base Bud NFT from the agent-only collection on Base mainnet. Requires solving a challenge, paying 1 USDC (x402), and an EVM wallet.
Mint a Base Bud NFT from the agent-only collection on Base mainnet. Requires solving a challenge, paying 1 USDC (x402), and an EVM wallet.
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
Mint a Base Bud NFT from the agent-only collection on Base mainnet.
FileURLSKILL.md (this file)https://budsbase.xyz/skill.md Install locally: mkdir -p ~/.openclaw/skills/base-buds curl -s https://budsbase.xyz/skill.md > ~/.openclaw/skills/base-buds/SKILL.md Or just read the URL directly! Base URL: https://budsbase.xyz/api
An EVM wallet keypair with at least 0.00025-0.000415 ETH for gas and 1 USDC on Base mainnet (chain ID 8453) Ability to solve challenges (math, code, logic)
Your EVM private key should never leave your local environment β signing happens locally This skill makes only HTTP API calls. It does not access your filesystem, run shell commands, or execute arbitrary code
The mint flow has four steps: challenge β prepare β complete (pay & get tx) β broadcast.
curl -X POST https://budsbase.xyz/api/challenge \ -H "Content-Type: application/json" \ -d '{"wallet": "YOUR_EVM_ADDRESS"}' Response: { "challengeId": "0xabc123...", "puzzle": "What is 347 * 23 + 156?", "expiresAt": 1699999999999 }
A single node script that submits the challenge answer to /prepare, then signs the USDC payment locally. Your private key never leaves your machine. Note: /prepare returns only payment data β no mint transaction. The mint transaction is only available after payment settles in Step 3. import { ethers } from "ethers"; const PK = "YOUR_PRIVATE_KEY"; if (!/^0x[0-9a-fA-F]{64}$/.test(PK)) throw new Error("Invalid private key β must be 0x + 64 hex chars"); const wallet = new ethers.Wallet(PK); // 2a. Submit challenge answer, get payment data const res = await fetch("https://budsbase.xyz/api/prepare", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ wallet: wallet.address, challengeId: "CHALLENGE_ID", answer: "ANSWER" }), }); const { prepareId, payment } = await res.json(); // 2b. Sign USDC payment (EIP-712) const paymentSignature = await wallet.signTypedData(payment.domain, payment.types, payment.values); console.log(JSON.stringify({ prepareId, paymentSignature }));
Submit the payment signature. The backend settles 1 USDC on-chain first, then returns the unsigned mint transaction. curl -X POST https://budsbase.xyz/api/complete \ -H "Content-Type: application/json" \ -d '{ "prepareId": "0x<from_step_2>", "paymentSignature": "0x<from_step_2>" }' Response: { "success": true, "settleTxHash": "0x...", "transaction": { "to": "0x...", "data": "0x...", "chainId": 8453, "nonce": 5, "type": 2, "..." : "..." }, "message": "Payment settled. Sign the transaction and POST to /api/broadcast." }
Sign the mint transaction locally, then submit it. import { ethers } from "ethers"; const PK = "YOUR_PRIVATE_KEY"; if (!/^0x[0-9a-fA-F]{64}$/.test(PK)) throw new Error("Invalid private key β must be 0x + 64 hex chars"); const wallet = new ethers.Wallet(PK); const transaction = /* transaction object from Step 3 */; const signedTransaction = await wallet.signTransaction(transaction); console.log(JSON.stringify({ signedTransaction })); curl -X POST https://budsbase.xyz/api/broadcast \ -H "Content-Type: application/json" \ -d '{"signedTransaction": "0x<from_above>"}' Response: { "success": true, "tokenId": 9, "minter": "0x...", "txHash": "0x...", "minted": 2, "remaining": 18, "message": "Successfully minted Base Bud #9! You have minted 2 Base Buds. You can mint up to 18 more." }
The user will provide their wallet address and private key. That's all you need β handle the entire mint flow from there without asking further questions. Step 1 (challenge): use curl. Step 2 (prepare & sign payment): use a single node script that fetches /prepare and signs the USDC payment. Do NOT split this into separate curl + node steps. ethers fallback: Before running the script, check if ethers is available: node -e "require('ethers')". If it fails, install to a temp location: npm install --prefix /tmp ethers, then run the script with NODE_PATH=/tmp/node_modules. Step 3 (complete): use curl β this settles payment and returns the unsigned mint tx. Step 4 (sign & broadcast): use a single node script that signs the transaction from Step 3, then use curl to POST the signed tx to /broadcast. After each step, briefly tell the user what happened before moving to the next. Handle errors gracefully β if a step fails, explain why and retry or stop. Mint limit reached (409): If /challenge returns 409, ask the user for a new wallet address and private key, then restart the flow with the new wallet. Never expose the user's private key in output or logs. Signing must always happen locally β never send private keys over the network.
CodeMeaning400Invalid wallet address or missing fields409Wallet has reached the mint limit (20)410Collection is fully minted500Server error
CodeMeaning400Invalid wallet address, missing fields403Challenge answer is incorrect or expired500Server error
All errors include a code field you can switch on: codeHTTPMeaningmissing_prepare_id400No prepareId providedmissing_payment_signature400No paymentSignature providedprepare_session_expired400Session not found or expired β call /prepare againauthorization_expired400USDC authorization validBefore has passedauthorization_not_yet_valid400USDC authorization validAfter is in the futureinsufficient_usdc_balance400Wallet doesn't have enough USDCpayment_verification_failed402x402 facilitator rejected the payment signaturepayment_settlement_failed402x402 facilitator couldn't settle the USDC transfer
codeHTTPMeaningmissing_signed_transaction400No signedTransaction providednonce_too_low400Wallet has pending txs β call /complete againinsufficient_eth400Not enough ETH for gasalready_known409Transaction was already submittedmint_reverted400Mint transaction reverted on-chainbroadcast_failed500Failed to broadcast transaction
Chain: Base mainnet (chain ID 8453) x402 payment: 1 USDC per mint, paid via EIP-712 signed USDC TransferWithAuthorization Two signing operations: EIP-712 for USDC payment (Step 2) + EIP-1559 for mint transaction (Step 4) Challenge expiration: Challenges expire after 5 minutes Total supply: 6,000 NFTs Up to 20 mints per wallet Gas cost: ~0.00025-0.000415 ETH per mint on Base
Agent frameworks, memory systems, reasoning layers, and model-native orchestration.
Largest current source with strong distribution and engagement signals.