[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75M4NPGAS39QQXJZMSQDM4F":3,"skill-same:01M75M4NPGAS39QQXJZMSQDM4F":69},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":46,"commitSha":47,"skillDirectory":48,"forksCount":49,"repositoryHtmlUrl":50,"repositoryHomepageUrl":6,"ownerHtmlUrl":51,"ownerBlogUrl":52,"ownerDescription":53,"updatedAt":54,"install":55,"resources":68},"01M75M4NPGAS39QQXJZMSQDM4F","multichain-protocol",null,"Turn any AI agent into a 19-chain crypto wallet via MeneseSDK on ICP. Send tokens, swap on DEXes (Raydium, Uniswap, ICPSwap, KongSwap, Cetus, Minswap), bridge cross-chain, manage DeFi positions (Aave, Lido, LP), automate trading (DCA, stop-loss, rebalancing), and process payments — all from a single ICP canister.","javimosch\u002Fopen-claw-skills","javimosch","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F12900508?v=4","01M6D3F2AS6PV75ET9PZ1QGP8J","Javier Leandro Arancibia","01M75B8NCTAJG9WH5YNZH7C3D8",0,"MIT","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fkyounesmercatura\u002Fmultichain-protocol\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: multichain-protocol\ndescription: Turn any AI agent into a 19-chain crypto wallet via MeneseSDK on ICP. Send tokens, swap on DEXes (Raydium, Uniswap, ICPSwap, KongSwap, Cetus, Minswap), bridge cross-chain, manage DeFi positions (Aave, Lido, LP), automate trading (DCA, stop-loss, rebalancing), and process payments — all from a single ICP canister.\nversion: 1.0.0\nmetadata:\n  openclaw:\n    emoji: \"🌐\"\n    requires:\n      bins:\n        - name: dfx\n          install: \"sh -ci \\\"$(curl -fsSL https:\u002F\u002Finternetcomputer.org\u002Finstall.sh)\\\"\"\n          check: \"dfx --version\"\n        - name: python3\n          install: \"apt install -y python3 || brew install python3\"\n          check: \"python3 --version\"\n    author: Menese Protocol Team\n    license: MIT\n    tags:\n      - crypto\n      - wallet\n      - defi\n      - multi-chain\n      - icp\n      - payments\n---\n\n# Multichain Protocol — MeneseSDK Wallet Skill\n\nOperate across **19 blockchains** from a single ICP canister or CLI: Solana, Ethereum, Bitcoin, Arbitrum, Base, Polygon, BSC, Optimism, ICP, XRP, SUI, TON, Cardano, Aptos, NEAR, Tron, Litecoin, CloakCoin, THORChain.\n\n**Powered by Menese Protocol** | **Canister ID (mainnet):** `urs2a-ziaaa-aaaad-aembq-cai`\n\n---\n\n## Pricing\n\n**First 5 transactions are FREE** — no signup, no credit card, just install and go.\n\nAfter the free tier, transaction signing is charged per action via your DeveloperKey (`msk_*`). Read-only operations (balances, addresses, pool queries) are always free.\n\n---\n\n## Quickstart (2 minutes)\n\n### Step 1: Install dfx (ICP SDK)\n\nIf you don't have `dfx` installed, run this single command:\n\n```bash\nsh -ci \"$(curl -fsSL https:\u002F\u002Finternetcomputer.org\u002Finstall.sh)\"\n```\n\nVerify it works:\n```bash\ndfx --version\n```\n\nThat's it. No accounts needed, no wallets to set up — dfx handles everything.\n\n### Step 2: Install the skill\n\n```bash\nclawhub install multichain-protocol\n```\n\nOr manually: copy `SKILL.md` + `wallet_commands.py` to your workspace.\n\n### Step 3: Create an ICP identity (if you don't have one)\n\n```bash\ndfx identity new my-wallet\ndfx identity use my-wallet\n```\n\n### Step 4: Try it — your first 5 sends are free\n\nAsk your bot:\n```\n\"show my wallet addresses\"\n\"what's my SOL balance?\"\n\"send 0.1 ETH to 0xABC...\"\n\"swap 100 USDC to SOL on Raydium\"\n\"set up a DCA: buy $50 of BTC every day\"\n```\n\n### Step 5 (optional): Deploy your own canister for production\n\nFor multi-user, automation, and timers — deploy `WalletBot.mo` as your own ICP canister.\n\n---\n\n## Two Integration Approaches\n\n| | Canister (Recommended) | CLI (Quick) |\n|---|---|---|\n| **Flow** | User → ClawdBot → Your Canister → MeneseSDK | User → ClawdBot → `dfx canister call` → MeneseSDK |\n| **Setup** | Deploy `WalletBot.mo`, register with SDK | Copy `scripts\u002Fwallet_commands.py`, done |\n| **Best for** | Multi-user, automation, timers, production | Single-user, prototyping, testing |\n| **Automation** | ICP timers for DCA\u002Frebalance\u002Fbots | None (manual only) |\n\n---\n\n## Best Practice: Cache Addresses\n\nAddresses are **deterministic** — the same principal always gets the same addresses on every chain. Fetch once, cache forever.\n\n```motoko\n\u002F\u002F Canister pattern — cache in stable var\nstable var cachedAddresses : ?AddressBook = null;\n\npublic shared func getAddresses() : async AddressBook {\n  switch (cachedAddresses) {\n    case (?addrs) { addrs };  \u002F\u002F Return cached — no inter-canister call\n    case null {\n      let sol = await menese.getMySolanaAddress();\n      let evm = await menese.getMyEvmAddress();\n      \u002F\u002F ... fetch all chains once ...\n      let addrs = { solana = sol.address; evm = evm.evmAddress; \u002F* ... *\u002F };\n      cachedAddresses := ?addrs;\n      addrs;\n    };\n  };\n};\n```\n\n```python\n# CLI pattern — fetch once, store in file\nimport json, os\nCACHE_FILE = \"addresses_cache.json\"\n\ndef get_addresses():\n    if os.path.exists(CACHE_FILE):\n        return json.load(open(CACHE_FILE))\n    addrs = fetch_all_addresses()  # dfx calls\n    json.dump(addrs, open(CACHE_FILE, \"w\"))\n    return addrs\n```\n\n**Why**: Saves inter-canister call latency + cycles. Addresses never change for a given principal.\n\n---\n\n## EVM Chains — Bring Your Own RPC\n\nAll EVM operations (ETH, Arbitrum, Base, Polygon, BSC, Optimism) require **your own RPC endpoint**. MeneseSDK does not manage EVM RPCs.\n\n| Chain | Chain ID | Free Public RPC |\n|-------|----------|----------------|\n| Ethereum | 1 | `https:\u002F\u002Feth.llamarpc.com` |\n| Arbitrum | 42161 | `https:\u002F\u002Farb1.arbitrum.io\u002Frpc` |\n| Base | 8453 | `https:\u002F\u002Fmainnet.base.org` |\n| Polygon | 137 | `https:\u002F\u002Fpolygon-rpc.com` |\n| BSC | 56 | `https:\u002F\u002Fbsc-dataseed1.binance.org` |\n| Optimism | 10 | `https:\u002F\u002Fmainnet.optimism.io` |\n\nUse Alchemy\u002FInfura for production reliability.\n\n---\n\n## Complete Tool Reference\n\nEvery operation available, organized by category. Each tool shows the function, parameters, return type, cost, and a usage example.\n\n### Tool 1: Get Addresses (FREE)\n\nDeterministic per-principal. **Cache after first call.**\n\n| Chain | Function | Field to Extract |\n|-------|----------|-----------------|\n| Solana | `getMySolanaAddress` | `.address` |\n| EVM (all 6) | `getMyEvmAddress` | `.evmAddress` (NOT `.address`) |\n| Bitcoin | `getMyBitcoinAddress` | `.bech32Address` |\n| Litecoin | `getMyLitecoinAddress` | `.bech32Address` |\n| SUI | `getMySuiAddress` | `.suiAddress` (NOT `.address`) |\n| XRP | `getMyXrpAddress` | `.classicAddress` |\n| TON | `getMyTonAddress` | `.nonBounceable` (NOT `.address`) |\n| Cardano | `getMyCardanoAddress` | `.bech32Address` |\n| Aptos | `getMyAptosAddress` | `.address` |\n| NEAR | `getMyNearAddress` | `.implicitAccountId` (NOT `.accountId`) |\n| Tron | `getTronAddress` | `.base58Address` (NOT `.base58`) |\n| CloakCoin | `getMyCloakAddress` | `.base58Address` |\n| THORChain | `getMyThorAddress` | `.bech32Address` |\n\n**Batch**: `getAllAddresses()` — all chains in one call.\n**Solana ATA**: `getMySolanaAta(mintBase58)` — get associated token account for an SPL token.\n\n```motoko\n\u002F\u002F Example: get SOL address\nlet info = await menese.getMySolanaAddress();\nlet myAddress = info.address;  \u002F\u002F \"5xK2abc...\"\n```\n\n```bash\n# CLI\ndfx canister call urs2a-ziaaa-aaaad-aembq-cai getMySolanaAddress --network ic --query\n```\n\n### Tool 2: Check Balances (FREE)\n\n| Chain | Function | Returns | Unit |\n|-------|----------|---------|------|\n| Solana | `getMySolanaBalance` | `Result\u003CNat64, Text>` | lamports (÷10^9) |\n| ICP | `getICPBalance` | `Result\u003CNat64, Text>` | e8s (÷10^8) |\n| ICP (for addr) | `getICPBalanceFor(principal)` | `Result\u003CNat64, Text>` | e8s (÷10^8) |\n| Bitcoin | `getBitcoinBalance` | `Nat64` | satoshis (÷10^8) |\n| Litecoin | `getLitecoinBalance` | `Nat64` | litoshis (÷10^8) |\n| EVM | `getMyEvmBalance(rpcUrl)` | `Result\u003CNat, Text>` | wei (÷10^18) |\n| XRP | `getMyXrpBalance` | `Result\u003CText, Text>` | drops as text |\n| SUI | `getMySuiBalance` | `Nat64` | mist (÷10^9) |\n| TON | `getMyTonBalance` | `Result\u003CNat64, Text>` | nanotons (÷10^9) |\n| Cardano | `getCardanoBalance` | `Result\u003CNat64, Text>` | lovelace (÷10^6) |\n| Aptos | `getAptosBalance` | `Result\u003CNat64, Text>` | octas (÷10^8) |\n| NEAR | `getMyNearBalance` | `Nat` | yoctoNEAR (÷10^24) |\n| THORChain | `getThorBalance` | `[{amount, denom}]` | units (÷10^8) |\n| CloakCoin | `getCloakBalance` | `Result\u003C{address, balance, utxoCount}, Text>` | units (÷10^6) |\n| Tron | `getTrxBalance(address)` | `Result\u003CNat64, Text>` | sun (÷10^6) |\n| ICRC-1 tokens | `getICRC1Balance(ledgerId)` | `Result\u003CNat, Text>` | smallest unit |\n| ICRC-1 (for addr) | `getICRC1BalanceFor(principal, ledgerId)` | `Result\u003CNat, Text>` | smallest unit |\n| ICRC-1 info | `getICRC1TokenInfo(ledgerId)` | `Result\u003CTokenInfo, Text>` | name, symbol, decimals |\n| ICP tokens list | `getSupportedICPTokens()` | `[{name,symbol,canisterId,type_,category}]` | query |\n| TRC-20 tokens | `getMyTrc20Balance(contract)` | `Result\u003CNat, Text>` | smallest unit |\n\n**Batch**: `getAllBalances()` — parallel fetch across all chains.\n\n**Performance tip**: For high-frequency reads, query chain RPCs directly using cached addresses. MeneseSDK is best for signing; your own RPC is faster for reads.\n\n```motoko\n\u002F\u002F Example: check SOL balance, convert to human-readable\nswitch (await menese.getMySolanaBalance()) {\n  case (#ok(lamports)) { \u002F* lamports \u002F 1_000_000_000 = SOL *\u002F };\n  case (#err(e)) { \u002F* handle error *\u002F };\n};\n```\n\n### Tool 3: Send Tokens ($0.05 client \u002F $0.10 agent)\n\n**Return types differ by chain** — getting this wrong causes runtime errors.\n\n| Chain | Function | Params | Return |\n|-------|----------|--------|--------|\n| Solana | `sendSolTransaction` | `(to, lamports:Nat64)` | `Result\u003CText, Text>` |\n| ICP | `sendICP` | `(to:Principal, e8s:Nat64)` | `Result\u003CSendICPResult, Text>` |\n| ICRC-1 | `sendICRC1` | `(to:Principal, amount:Nat, ledger:Text)` | `Result\u003CSendICRC1Result, Text>` |\n| Bitcoin | `sendBitcoin` | `(to, sats:Nat64)` | `Result\u003CSendResultBtcLtc, Text>` |\n| Litecoin | `sendLitecoin` | `(to, litoshis:Nat64)` | `Result\u003CSendResult, Text>` (NOT BtcLtc!) |\n| EVM | `sendEvmNativeTokenAutonomous` | `(to, wei:Nat, rpc, chainId:Nat, ?quoteId)` | `Result\u003CSendResultEvm, Text>` |\n| XRP | `sendXrpAutonomous` | `(to, amountXrp:Text, ?destTag:Nat32)` | **FLAT** `SendResultXrp` |\n| SUI | `sendSui` | `(to, mist:Nat64)` | `Result\u003CSendResult, Text>` |\n| TON | `sendTonSimple` | `(to, nanotons:Nat64)` | **FLAT** `SendResultTon` |\n| Aptos | `sendAptos` | `(to, octas:Nat64)` | `Result\u003CSendResult, Text>` |\n| NEAR | `sendNearTransfer` | `(to, yocto:Nat)` | `Result\u003CText, Text>` |\n| Tron | `sendTrx` | `(to, sun:Nat64)` | `Result\u003CText, Text>` |\n| Cardano | `sendCardanoTransaction` | `(to, lovelace:Nat64)` | `Result\u003CText, Text>` |\n| CloakCoin | `sendCloak` | `(to, amount:Nat64)` | `Result\u003CSendResultCloak, Text>` |\n| THORChain | `sendThor` | `(to, amount:Nat64, memo:Text)` | `Result\u003CText, Text>` |\n| SPL Token | `transferSplToken` | `(amount:Nat64, srcAta, dstAta)` | `TransferAndSendResult` |\n| XRP IOU | `sendXrpIOU` | `(dest, currency, issuer, amount, ?tag)` | `SendResultXrp` |\n| TRC-20 | `sendTrc20` | `(contract, to, amount:Nat, feeLimit:Nat64)` | `Result\u003CText, Text>` |\n\n**Variant extras**: `sendBitcoinDynamicFee`, `sendBitcoinWithFee`, `sendLitecoinWithFee`, `sendSuiMax`, `sendTon` (with bounce\u002Fcomment), `sendTonWithComment`.\n\n```motoko\n\u002F\u002F Example: send 0.5 SOL\nswitch (await menese.sendSolTransaction(\"5xK2abc...\", 500_000_000)) {\n  case (#ok(txHash)) { \u002F* success — txHash is the Solana TX signature *\u002F };\n  case (#err(e)) { \u002F* handle error *\u002F };\n};\n\n\u002F\u002F Example: send XRP (FLAT return — check .success, not #ok)\nlet r = await menese.sendXrpAutonomous(\"rDestAddr...\", \"10.5\", null);\nif (r.success) { \u002F* r.txHash, r.explorerUrl *\u002F }\nelse { \u002F* r.message has error *\u002F };\n```\n\n### Tool 3b: ICRC-2 Approve & TransferFrom ($0.05 client \u002F $0.10 agent)\n\nICRC-2 adds ERC-20-style `approve` + `transferFrom` to ICP tokens. Use when building escrow, payment splitters, or any pattern where a canister needs to spend tokens on behalf of users.\n\n| Operation | Function | Params | Return |\n|-----------|----------|--------|--------|\n| Approve spender | `approveICRC2` | `(spender:Principal, amount:Nat, expiresAt:?Nat64, ledgerId:Text)` | `Result\u003CApproveResult, Text>` |\n| Check allowance | `getICRC2Allowance` | `(owner:Principal, spender:Principal, ledgerId:Text)` | `Result\u003CAllowance, Text>` — FREE |\n| TransferFrom | `transferFromICRC2` | `(from:Principal, to:Principal, amount:Nat, ledgerId:Text)` | `Result\u003CTransferFromResult, Text>` |\n\n```motoko\n\u002F\u002F Approve MeneseSDK canister to spend 100 ckUSDC on your behalf\nlet ckUSDC = \"xevnm-gaaaa-aaaar-qafnq-cai\";\nlet sdk = Principal.fromText(\"urs2a-ziaaa-aaaad-aembq-cai\");\nlet r = await menese.approveICRC2(sdk, 100_000_000, null, ckUSDC);  \u002F\u002F 100 ckUSDC (6 dec)\n\n\u002F\u002F Check remaining allowance (FREE)\nlet allowance = await menese.getICRC2Allowance(myPrincipal, sdk, ckUSDC);\n\n\u002F\u002F Transfer from (requires prior approval)\nlet t = await menese.transferFromICRC2(userPrincipal, treasuryPrincipal, 50_000_000, ckUSDC);\n```\n\n### Tool 4: Swap on DEXes ($0.075 client \u002F $0.15 agent)\n\n| DEX | Chain | Function | Key Details |\n|-----|-------|----------|-------------|\n| Raydium | Solana | `swapRaydiumApiUser` | 8 params, FLAT return |\n| Uniswap V3 | EVM | `swapTokens`, `swapTokensMultiHop` | Pass quoteId or rpc+chainId |\n| Uniswap shortcuts | EVM | `swapETHForUSDC`, `swapUSDCForETH` | Quick ETH↔USDC |\n| ICPSwap\u002FKongSwap | ICP | `executeICPDexSwap(SwapRequest)` | Auto-routes best price |\n| Cetus | SUI | `executeSuiSwap(network, from, to, amountIn, minOut)` | Network: `#mainnet` |\n| Minswap | Cardano | `executeMinswapSwap(tokenIn, tokenOut, amount, slippage)` | Float slippage % |\n| XRP DEX | XRP | `xrpSwap(destAmount, sendMax, paths, slipBps)` | Use xrpFindPaths first |\n\n**Always get a quote first (FREE)**:\n- Raydium: `getRaydiumQuote(inputMint, outputMint, amount, slipBps)`\n- Uniswap: `getTokenQuote(from, to, amountIn, rpc)`\n- ICP: `getICPDexQuote(tokenIn, tokenOut, amountIn, slipPct)` → `AggregatedQuote` (compares ICPSwap vs KongSwap)\n- SUI: `getSuiSwapQuote(network, from, to, amountIn, slipBps)`\n- Cardano: `getMinswapQuote(tokenIn, tokenOut, amountIn, slipPct)`\n- XRP: `xrpFindPaths(destAmount, sourceCurrencies)`\n\n```motoko\n\u002F\u002F Example: swap 1 SOL → USDC on Raydium\nlet SOL = \"So11111111111111111111111111111111111111112\";\nlet USDC = \"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v\";\n\nlet result = await menese.swapRaydiumApiUser(\n  SOL, USDC,\n  1_000_000_000,  \u002F\u002F 1 SOL in lamports\n  150,            \u002F\u002F 1.5% slippage\n  true,           \u002F\u002F wrapSol: input is native SOL\n  false,          \u002F\u002F unwrapSol: output is USDC not SOL\n  null, null      \u002F\u002F auto-detect ATAs\n);\n\u002F\u002F FLAT record — access directly:\n\u002F\u002F result.txSignature, result.outputAmount, result.priceImpactPct\n```\n\n```motoko\n\u002F\u002F Example: swap on ICP DEX (auto-routes to ICPSwap or KongSwap)\nlet swapReq : Menese.SwapRequest = {\n  tokenIn = \"ryjl3-tyaaa-aaaaa-aaaba-cai\";  \u002F\u002F ICP ledger\n  tokenOut = \"mxzaz-hqaaa-aaaar-qaada-cai\";  \u002F\u002F ckUSDC\n  amountIn = 100_000_000;  \u002F\u002F 1 ICP\n  minAmountOut = 0;\n  slippagePct = 1.0;\n  preferredDex = null;  \u002F\u002F auto-pick best price\n};\nlet result = await menese.executeICPDexSwap(swapReq);\n```\n\n### Tool 5: Bridge ETH↔SOL ($0.10 client \u002F $0.20 agent)\n\n| Direction | Function | Params |\n|-----------|----------|--------|\n| ETH→SOL | `quickUltrafastEthToSol` | `(ethWei:Nat)` |\n| USDC→SOL | `quickUltrafastUsdcToSol` | `(usdc:Nat)` |\n| ETH→Token | `quickUltrafastEthToToken` | `(ethWei:Nat, outputMint, slipBps:Nat)` |\n| SOL→ETH | `quickSolToEth` | `(solLamports:Nat64, slipBps:Nat)` |\n| USDC SOL→ETH | `quickUsdcBridgeSolToEth` | `(usdc:Nat64)` |\n| CCTP (any) | `quickCctpBridge` | `(srcChainId, usdc, outputToken, fast, slipBps, ethRpc)` |\n\n```motoko\n\u002F\u002F Example: bridge 0.1 ETH to Solana\nlet result = await menese.quickUltrafastEthToSol(100_000_000_000_000_000);  \u002F\u002F 0.1 ETH in wei\n\u002F\u002F Result\u003CText, Text> — ok = status text\n```\n\n### Tool 6: DeFi — Aave V3 ($0.10 agent)\n\n| Operation | Function | Params |\n|-----------|----------|--------|\n| Supply ETH | `aaveSupplyEth` | `(wei:Nat, rpc, ?quoteId)` → `Result\u003CSupplyEthResult, Text>` |\n| Withdraw ETH | `aaveWithdrawEth` | `(wei:Nat, rpc, ?quoteId)` → `Result\u003CWithdrawEthResult, Text>` |\n| Supply ERC-20 | `aaveSupplyToken` | `(tokenAddr, amount:Nat, rpc, ?quoteId)` |\n| Withdraw ERC-20 | `aaveWithdrawToken` | `(tokenAddr, amount:Nat, rpc, ?quoteId)` |\n| Read aWETH bal | `getAWethBalance` | `(user, rpc)` → FREE |\n| Read aToken bal | `getATokenBalance` | `(aTokenAddr, user, rpc)` → FREE |\n\n```motoko\n\u002F\u002F Supply 0.5 ETH to Aave → receive aWETH (~2-3% APY)\nlet r = await menese.aaveSupplyEth(500_000_000_000_000_000, ethRpc, null);\nswitch (r) {\n  case (#ok(res)) { \u002F* res.txHash, res.aTokenAddress *\u002F };\n  case (#err(e)) { \u002F* error *\u002F };\n};\n```\n\n### Tool 7: DeFi — Lido Staking ($0.10 agent)\n\n| Operation | Function | Return |\n|-----------|----------|--------|\n| Stake ETH→stETH | `stakeEthForStEth(wei, rpc, ?quoteId)` | `Result\u003CStakeResult, Text>` |\n| Wrap stETH→wstETH | `wrapStEth(amount, rpc, ?quoteId)` | `Result\u003CWrapResult, Text>` |\n| Unwrap wstETH→stETH | `unwrapWstEth(amount, rpc, ?quoteId)` | `Result\u003CUnwrapResult, Text>` |\n| Read stETH bal | `getStEthBalance(user, rpc)` | FREE |\n| Read wstETH bal | `getWstEthBalance(user, rpc)` | FREE |\n\n```motoko\n\u002F\u002F Stake 1 ETH with Lido (~3-4% APY), then wrap for DeFi composability\nignore await menese.stakeEthForStEth(1_000_000_000_000_000_000, ethRpc, null);\nignore await menese.wrapStEth(1_000_000_000_000_000_000, ethRpc, null);\n```\n\n### Tool 8: DeFi — Uniswap V3 Liquidity ($0.10 agent)\n\n| Operation | Function |\n|-----------|----------|\n| Add ETH+Token LP | `addLiquidityETH(tokenSymbol, tokenAmt, ethAmt, slipBps, rpc, ?quoteId)` |\n| Add Token+Token LP | `addLiquidity(tokenA, tokenB, amtA, amtB, slipBps, rpc, ?quoteId)` |\n| Remove ETH LP | `removeLiquidityETH(tokenSymbol, lpAmt, slipBps, feeOnTransfer, rpc, ?quoteId)` |\n| Remove Token LP | `removeLiquidity(tokenA, tokenB, lpAmt, slipBps, rpc, ?quoteId)` |\n| Read reserves | `getPoolReserves(tokenA, tokenB, rpc)` — FREE |\n| Get pair addr | `getPairAddress(tokenA, tokenB, rpc)` — FREE |\n\n### Tool 9: Custom EVM Contract Calls\n\n| Operation | Function | Cost |\n|-----------|----------|------|\n| Read (view) | `callEvmContractRead(contract, selector4byte, argsHexes, rpc)` | FREE |\n| Write (tx) | `callEvmContractWrite(contract, selector, args, rpc, chainId, value, ?quoteId)` | $0.10 |\n\nSelector = first 4 bytes of `keccak256(\"functionName(type1,type2)\")`, hex-encoded, no `0x` prefix.\n\n```motoko\n\u002F\u002F Read Chainlink ETH\u002FUSD price (FREE)\nlet result = await menese.callEvmContractRead(\n  \"0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419\",  \u002F\u002F ETH\u002FUSD feed\n  \"feaf968c\",  \u002F\u002F latestRoundData()\n  [], ethRpc\n);\n```\n\n### Tool 10: Strategy Engine (rule creation FREE, execution per-action pricing)\n\n| Operation | Function | Cost |\n|-----------|----------|------|\n| Create rule | `addStrategyRule(Rule)` | FREE |\n| List rules | `getMyStrategyRules()` | FREE |\n| Update status | `updateStrategyRuleStatus(ruleId, status)` | FREE |\n| Delete rule | `deleteStrategyRule(ruleId)` | FREE |\n| View logs | `getStrategyLogs()` | FREE |\n| Init automation | `initAutomation()` | FREE |\n\nRule types: `#DCA`, `#StopLoss`, `#TakeProfit`, `#Rebalance`, `#Scheduled`, `#APYMigration`, `#LiquidityProvision`, `#VolatilityTrigger`.\n\nRule statuses: `#Active`, `#Paused`, `#Cancelled`, `#Executed`, `#Executing`, `#Failed`, `#Draft`, `#Confirmed`, `#Ready`.\n\n### Tool 11: Solana ATA \u002F XRP Trustlines (setup)\n\n| Operation | Function | Cost |\n|-----------|----------|------|\n| Create Solana ATA | `createMySolanaAtaForMint(mint, ata)` | Send pricing |\n| Create ATA (custom program) | `createMySolanaAtaForMintWithProgram(mint, ata, programId)` | Send pricing |\n| Set XRP trustline | `xrpSetTrustline(currency, issuer, limit)` | Send pricing |\n| Read XRP trustlines | `xrpGetAccountLines()` | FREE |\n| Get Solana ATA | `getMySolanaAta(mint)` | FREE |\n\n### Tool 12: Developer\u002FBilling\n\n| Operation | Function | Cost |\n|-----------|----------|------|\n| Register canister | `registerDeveloperCanister(Principal, appName)` | FREE |\n| Get dev key | `getMyDeveloperKey()` | FREE |\n| Regenerate key | `regenerateDeveloperKey()` | FREE |\n| Validate key | `validateDeveloperKey(key)` | FREE |\n| Check account | `getMyGatewayAccount()` → `UserAccount` | FREE |\n| Check dev account | `getMyDeveloperAccount()` → `?DeveloperAccountV3` | FREE |\n| Deposit credits | `depositGatewayCredits(currency, amount)` | ICP cost |\n\n### Tool 13: Utility\n\n| Operation | Function | Cost |\n|-----------|----------|------|\n| BTC max send | `getBitcoinMaxSendAmount(?feeRate)` → `{maxAmount, fee, utxoCount}` | FREE |\n| LTC max send | `getLitecoinMaxSendAmount(?feeRate)` → `{maxAmount, fee, utxoCount}` | FREE |\n| Health check | `health()` | FREE |\n| Version | `version()` | FREE |\n\n### Tool 14: ICP DEX LP Management ($0.10 agent)\n\nManage liquidity positions on ICPSwap and KongSwap. The SDK aggregates both DEXes.\n\n| Operation | Function | Cost |\n|-----------|----------|------|\n| List pools | `getICPDexPools()` → `[PoolInfo]` | FREE |\n| List tokens | `getICPDexTokens()` → `[DexToken]` | FREE |\n| View positions | `getICPLPPositions()` → `[LPPosition]` | FREE |\n| Add liquidity | `addICPLiquidity(AddLiquidityRequest)` → `Result\u003CAddLiquidityResult, Text>` | $0.10 |\n| Remove liquidity | `removeICPLiquidity(RemoveLiquidityRequest)` → `Result\u003CRemoveLiquidityResult, Text>` | $0.10 |\n\n**Types:**\n\n```\nAddLiquidityRequest = { poolId:Text, dex:{#ICPSwap|#KongSwap}, token0:Text, token1:Text, token0Amount:Nat, token1Amount:Nat, slippagePct:Float }\nRemoveLiquidityRequest = { poolId:Text, dex:{#ICPSwap|#KongSwap}, lpTokens:Nat, slippagePct:Float }\nLPPosition = { poolId, dex, token0, token1, token0Symbol, token1Symbol, liquidity:Nat, token0Amount, token1Amount, unclaimedFees:?(Nat,Nat), valueUsd:?Nat }\nPoolInfo = { poolId, dex, token0, token1, token0Symbol, token1Symbol, reserve0, reserve1, fee, tvl:?Nat, apr:?Float, volume24h:?Nat }\nDexToken = { canisterId, symbol, name, decimals:Nat8, fee:Nat, standard:{#ICRC1|#ICRC2|#DIP20}, logo:?Text, category:?Text, availableOn:[DexId] }\n```\n\n**Well-known pools:** ICP\u002FckUSDC, ckBTC\u002FICP, ICP\u002FckETH, ckUSDT\u002FckUSDC, CHAT\u002FICP (on both ICPSwap and KongSwap).\n\n```motoko\n\u002F\u002F Discover pools, then add liquidity\nlet pools = await menese.getICPDexPools();\n\u002F\u002F Find ICP\u002FckUSDC pool\nlet pool = Array.find\u003CDexTypes.PoolInfo>(pools, func(p) { p.token0Symbol == \"ICP\" and p.token1Symbol == \"ckUSDC\" });\n\nswitch (pool) {\n  case (?p) {\n    let req : DexTypes.AddLiquidityRequest = {\n      poolId = p.poolId;\n      dex = p.dex;\n      token0 = \"ryjl3-tyaaa-aaaaa-aaaba-cai\";  \u002F\u002F ICP ledger\n      token1 = \"xevnm-gaaaa-aaaar-qafnq-cai\";  \u002F\u002F ckUSDC\n      token0Amount = 100_000_000;  \u002F\u002F 1 ICP\n      token1Amount = 10_000_000;   \u002F\u002F 10 ckUSDC\n      slippagePct = 1.0;\n    };\n    let result = await menese.addICPLiquidity(req);\n  };\n  case null { \u002F* pool not found *\u002F };\n};\n\n\u002F\u002F View positions\nlet positions = await menese.getICPLPPositions();\n\u002F\u002F Remove liquidity\nlet removeReq : DexTypes.RemoveLiquidityRequest = {\n  poolId = positions[0].poolId;\n  dex = positions[0].dex;\n  lpTokens = positions[0].liquidity;  \u002F\u002F Remove all\n  slippagePct = 1.0;\n};\nlet removed = await menese.removeICPLiquidity(removeReq);\n```\n\n### Tool 15: ICP AI Rebalancer (FREE)\n\nAI-powered portfolio rebalancing recommendations using Herfindahl-Hirschman Index diversification scoring, impermanent loss estimation, and risk-adjusted APY analysis.\n\n| Operation | Function | Cost |\n|-----------|----------|------|\n| Get recommendations | `getICPRebalanceRecommendations(preferences, tokenBalances, pools?)` → `[RebalanceRecommendation]` | FREE |\n\n**Types:**\n\n```\nRebalancePreferences = { targetCategories:[Text], riskTolerance:Text, minApy:?Float, maxImpermanentLoss:?Float, autoCompound:Bool }\n  targetCategories: [\"stablecoin\", \"defi\", \"lst\", \"yield\", \"wrapped\", \"meme\", \"ecosystem\"]\n  riskTolerance: \"conservative\" | \"moderate\" | \"aggressive\"\n\nRebalanceRecommendation = { id, action:{#Swap|#AddLiquidity|#RemoveLiquidity|#Compound}, fromToken, toToken, fromSymbol, toSymbol, amount:Nat, reason:Text, estimatedApy:?Float, currentApy:?Float, impermanentLossRisk:{#Low|#Medium|#High}, confidence:Float, estimatedGasUsd:?Float }\n```\n\n```motoko\n\u002F\u002F Get rebalancing recommendations for your ICP portfolio\nlet prefs : DexTypes.RebalancePreferences = {\n  targetCategories = [\"stablecoin\", \"defi\", \"lst\"];\n  riskTolerance = \"moderate\";\n  minApy = ?5.0;        \u002F\u002F Only suggest >5% APY\n  maxImpermanentLoss = ?10.0;  \u002F\u002F Max 10% IL risk\n  autoCompound = true;\n};\n\n\u002F\u002F Pass current balances: [(canisterId, amount)]\nlet balances = [\n  (\"ryjl3-tyaaa-aaaaa-aaaba-cai\", 500_000_000),  \u002F\u002F 5 ICP\n  (\"xevnm-gaaaa-aaaar-qafnq-cai\", 100_000_000),  \u002F\u002F 100 ckUSDC\n  (\"mxzaz-hqaaa-aaaar-qaada-cai\", 50_000),        \u002F\u002F 0.0005 ckBTC\n];\n\nlet recommendations = await menese.getICPRebalanceRecommendations(prefs, balances, null);\nfor (rec in recommendations.vals()) {\n  Debug.print(rec.reason # \" | Confidence: \" # Float.toText(rec.confidence));\n  \u002F\u002F e.g., \"Swap 2 ICP → ckUSDC and add to ICP\u002FckUSDC pool for 12.5% APY | Confidence: 0.85\"\n};\n```\n\n---\n\n## Combining Tools — Practical Automation Examples\n\nThe real power is combining these tools. Below are complete patterns showing how tools work together.\n\n### Example 1: DCA Bot (Timer + Balance + Swap)\n\nBuy USDC with SOL every hour if balance exceeds threshold.\n\n```motoko\n\u002F\u002F Tools used: getMySolanaBalance (FREE) + swapRaydiumApiUser ($0.075)\nfunc dcaCycle() : async () {\n  let balance = switch (await menese.getMySolanaBalance()) {\n    case (#ok(v)) v; case (#err(_)) return;\n  };\n  if (balance \u003C 500_000_000) return;  \u002F\u002F \u003C 0.5 SOL, skip\n\n  let swapAmt = balance - 50_000_000;  \u002F\u002F Keep 0.05 SOL for rent\n  let _ = await menese.swapRaydiumApiUser(\n    \"So11111111111111111111111111111111111111112\",  \u002F\u002F SOL\n    \"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v\",  \u002F\u002F USDC\n    swapAmt, 150, true, false, null, null\n  );\n};\n\n\u002F\u002F Run every hour\nlet timerId = Timer.recurringTimer\u003Csystem>(#seconds(3600), dcaCycle);\n```\n\n### Example 2: Stop-Loss via Strategy Engine\n\nSet a stop-loss rule that auto-sells when price drops. No timer needed — MeneseSDK evaluates.\n\n```motoko\n\u002F\u002F Tool used: addStrategyRule (FREE to create, execution costs per action)\nlet rule : Menese.Rule = {\n  id = 0;\n  ruleType = #StopLoss;\n  status = #Active;\n  chainType = #Solana;\n  triggerPrice = 120_000_000;  \u002F\u002F Trigger at this price level\n  sizePct = 100;  \u002F\u002F Sell 100% of position\n  positionId = 0;\n  createdAt = Time.now();\n  dcaConfig = null; lpConfig = null; scheduledConfig = null;\n  apyMigrationConfig = null; volatilityConfig = null;\n  swapAmountLamports = ?1_000_000_000;  \u002F\u002F 1 SOL\n  swapAmountWei = null;\n};\nlet ruleId = await menese.addStrategyRule(rule);\n```\n\n### Example 3: Take-Profit + Stop-Loss Combo\n\nSet both on the same position — whichever triggers first wins.\n\n```motoko\n\u002F\u002F Tools: addStrategyRule × 2\n\u002F\u002F Take-profit at 200\nlet tp : Menese.Rule = { \u002F* ... *\u002F ruleType = #TakeProfit; triggerPrice = 200_000_000; sizePct = 50; \u002F* sell half *\u002F \u002F* ... *\u002F };\nlet tpId = await menese.addStrategyRule(tp);\n\n\u002F\u002F Stop-loss at 100\nlet sl : Menese.Rule = { \u002F* ... *\u002F ruleType = #StopLoss; triggerPrice = 100_000_000; sizePct = 100; \u002F* sell all *\u002F \u002F* ... *\u002F };\nlet slId = await menese.addStrategyRule(sl);\n\n\u002F\u002F When one triggers, cancel the other\n\u002F\u002F Check via getMyStrategyRules() or getStrategyLogs() in your timer\n```\n\n### Example 4: DCA via Strategy Engine (no custom timer)\n\nLet MeneseSDK handle the scheduling internally.\n\n```motoko\n\u002F\u002F Tool: addStrategyRule with DCA config\nlet dca : Menese.Rule = {\n  id = 0;\n  ruleType = #DCA;\n  status = #Active;\n  chainType = #Solana;\n  triggerPrice = 0; sizePct = 100; positionId = 0;\n  createdAt = Time.now();\n  dcaConfig = ?{\n    amountPerInterval = 100_000_000;  \u002F\u002F 0.1 SOL per buy\n    currentInterval = 0;\n    intervalSeconds = 3600;  \u002F\u002F Every hour\n    lastExecutedAt = 0;\n    maxIntervals = 168;  \u002F\u002F Run for 1 week (168 hours)\n    targetToken = \"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v\";  \u002F\u002F Buy USDC\n    totalSpent = 0;\n  };\n  lpConfig = null; scheduledConfig = null;\n  apyMigrationConfig = null; volatilityConfig = null;\n  swapAmountLamports = ?100_000_000;\n  swapAmountWei = null;\n};\nignore await menese.addStrategyRule(dca);\n```\n\n### Example 5: Multi-Chain Sweep (Balance + Send across chains)\n\nCheck all balances, sweep any above threshold to treasury.\n\n```motoko\n\u002F\u002F Tools: getAllBalances (FREE) + sendSolTransaction + sendICP + sendEvmNativeTokenAutonomous\nfunc sweepCycle() : async () {\n  let bals = await menese.getAllBalances();\n\n  \u002F\u002F Sweep SOL if > 1 SOL\n  switch (bals.solana) {\n    case (#ok(lamports)) {\n      if (lamports > 1_000_000_000) {\n        ignore await menese.sendSolTransaction(solTreasury, lamports - 50_000_000);\n      };\n    };\n    case (#err(_)) {};\n  };\n\n  \u002F\u002F Sweep ICP if > 1 ICP\n  switch (bals.icp) {\n    case (#ok(e8s)) {\n      if (e8s > 100_000_000) {\n        ignore await menese.sendICP(Principal.fromText(icpTreasury), e8s - 100_000);\n      };\n    };\n    case (#err(_)) {};\n  };\n\n  \u002F\u002F Sweep ETH if > 0.1 ETH\n  switch (await menese.getMyEvmBalance(ethRpc)) {\n    case (#ok(wei)) {\n      if (wei > 100_000_000_000_000_000) {\n        ignore await menese.sendEvmNativeTokenAutonomous(\n          ethTreasury, wei - 50_000_000_000_000_000, ethRpc, 1, null\n        );\n      };\n    };\n    case (#err(_)) {};\n  };\n};\n```\n\n### Example 6: DeFi Yield Rebalancer (Aave + Lido + LP)\n\nAllocate idle ETH across DeFi protocols on a timer.\n\n```motoko\n\u002F\u002F Tools: getMyEvmBalance + getAWethBalance + getStEthBalance (all FREE)\n\u002F\u002F        + aaveSupplyEth + stakeEthForStEth + wrapStEth ($0.10 each)\n\nfunc rebalanceCycle() : async () {\n  let evmAddr = (await menese.getMyEvmAddress()).evmAddress;  \u002F\u002F Cached ideally\n  let ethBal = switch (await menese.getMyEvmBalance(ethRpc)) { case (#ok(v)) v; case _ 0 };\n  let aaveBal = switch (await menese.getAWethBalance(evmAddr, ethRpc)) { case (#ok(v)) v; case _ 0 };\n  let lidoBal = switch (await menese.getStEthBalance(evmAddr, ethRpc)) { case (#ok(v)) v; case _ 0 };\n\n  let reserve = 50_000_000_000_000_000;  \u002F\u002F 0.05 ETH for gas\n  if (ethBal \u003C= reserve) return;\n  let deployable = ethBal - reserve;\n\n  \u002F\u002F 50% Aave, 50% Lido\n  let aaveTarget = deployable \u002F 2;\n  let lidoTarget = deployable \u002F 2;\n\n  if (aaveTarget > aaveBal and aaveTarget - aaveBal > 10_000_000_000_000_000) {\n    ignore await menese.aaveSupplyEth(aaveTarget - aaveBal, ethRpc, null);\n  };\n  if (lidoTarget > lidoBal and lidoTarget - lidoBal > 10_000_000_000_000_000) {\n    ignore await menese.stakeEthForStEth(lidoTarget - lidoBal, ethRpc, null);\n    ignore await menese.wrapStEth(lidoTarget - lidoBal, ethRpc, null);\n  };\n};\n\n\u002F\u002F Run every 6 hours\nlet timerId = Timer.recurringTimer\u003Csystem>(#seconds(21600), rebalanceCycle);\n```\n\n### Example 7: Cross-Chain Arbitrage (Bridge + Swap)\n\nMove funds between Ethereum and Solana to capture price differences.\n\n```motoko\n\u002F\u002F Tools: getTokenQuote (FREE) + getRaydiumQuote (FREE)\n\u002F\u002F        + quickUltrafastEthToSol ($0.10) + swapRaydiumApiUser ($0.075)\n\n\u002F\u002F 1. Check ETH USDC price on Uniswap\nlet ethQuote = await menese.getTokenQuote(\"USDC\", \"WETH\", 1000_000_000, ethRpc);\n\n\u002F\u002F 2. Check SOL USDC price on Raydium\nlet solQuote = await menese.getRaydiumQuote(USDC_MINT, SOL_MINT, 1000_000_000, 100);\n\n\u002F\u002F 3. If profitable, bridge and swap\n\u002F\u002F Bridge ETH → SOL: quickUltrafastEthToSol\n\u002F\u002F Swap on Raydium: swapRaydiumApiUser\n\u002F\u002F Bridge back: quickSolToEth\n```\n\n### Example 8: Merchant Payment Flow (Address + Balance + Sweep)\n\nAccept payments and auto-sweep to treasury.\n\n```motoko\n\u002F\u002F Tools: getMySolanaAddress (FREE, cached) + getMySolanaBalance (FREE)\n\u002F\u002F        + sendSolTransaction ($0.05)\n\n\u002F\u002F 1. Show payment address to customer (from cache)\nlet payAddr = cachedAddresses.solana;\n\n\u002F\u002F 2. Periodically check if payment arrived (FREE)\nlet bal = switch (await menese.getMySolanaBalance()) { case (#ok(v)) v; case _ 0 };\nif (bal >= invoiceAmount) {\n  \u002F\u002F 3. Mark paid, sweep to treasury\n  ignore await menese.sendSolTransaction(treasury, bal - 50_000_000);\n};\n```\n\n### Example 9: Scheduled Weekly Swap (Strategy Engine)\n\nUse `#Scheduled` rule type for time-based operations without custom timers.\n\n```motoko\nlet weekly : Menese.Rule = {\n  id = 0;\n  ruleType = #Scheduled;\n  status = #Active;\n  chainType = #Solana;\n  triggerPrice = 0; sizePct = 100; positionId = 0;\n  createdAt = Time.now();\n  dcaConfig = null;\n  scheduledConfig = ?{};  \u002F\u002F SDK handles scheduling details\n  lpConfig = null; apyMigrationConfig = null; volatilityConfig = null;\n  swapAmountLamports = ?500_000_000;  \u002F\u002F 0.5 SOL\n  swapAmountWei = null;\n};\nignore await menese.addStrategyRule(weekly);\n```\n\n### Example 10: Monitor + React to Volatility\n\nUse `#VolatilityTrigger` or custom timer with price feeds.\n\n```motoko\n\u002F\u002F Strategy engine approach:\nlet volRule : Menese.Rule = {\n  id = 0;\n  ruleType = #VolatilityTrigger;\n  status = #Active;\n  chainType = #EVM;\n  triggerPrice = 0; sizePct = 50; positionId = 0;\n  createdAt = Time.now();\n  dcaConfig = null; lpConfig = null; scheduledConfig = null;\n  apyMigrationConfig = null;\n  volatilityConfig = ?{};  \u002F\u002F SDK evaluates volatility conditions\n  swapAmountLamports = null;\n  swapAmountWei = ?500_000_000_000_000_000;  \u002F\u002F 0.5 ETH\n};\n\n\u002F\u002F Custom approach: read Chainlink price feed + react\nfunc checkVolatility() : async () {\n  let price = await menese.callEvmContractRead(\n    \"0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419\",  \u002F\u002F ETH\u002FUSD Chainlink\n    \"feaf968c\", [], ethRpc\n  );\n  \u002F\u002F Parse price, compare to threshold, execute swap if needed\n};\n```\n\n---\n\n## Unit Conversion Quick Reference\n\n| Chain | Unit | Decimals | 1 Token = |\n|-------|------|----------|-----------|\n| Solana | lamports | 9 | 1,000,000,000 |\n| ICP | e8s | 8 | 100,000,000 |\n| Bitcoin | satoshis | 8 | 100,000,000 |\n| Litecoin | litoshis | 8 | 100,000,000 |\n| EVM | wei | 18 | 10^18 |\n| XRP | drops (Text) | 6 | \"1.0\" |\n| SUI | mist | 9 | 1,000,000,000 |\n| TON | nanotons | 9 | 1,000,000,000 |\n| Cardano | lovelace | 6 | 1,000,000 |\n| Aptos | octas | 8 | 100,000,000 |\n| NEAR | yoctoNEAR | 24 | 10^24 |\n| Tron | sun | 6 | 1,000,000 |\n| CloakCoin | units | 6 | 1,000,000 |\n| THORChain | units | 8 | 100,000,000 |\n\n---\n\n## Common Pitfalls\n\n1. **Wrong field names** — `evmAddress` not `address`, `suiAddress` not `address`, `nonBounceable` not `address`, `implicitAccountId` not `accountId`, `base58Address` not `base58`\n2. **Flat vs variant returns** — XRP and TON send return FLAT records (check `.success`). Raydium swap also returns FLAT. Everything else uses `Result\u003CT, Text>` with `#ok\u002F#err`.\n3. **Litecoin ≠ Bitcoin return type** — Litecoin = `SendResult` (`.txHash`), Bitcoin = `SendResultBtcLtc` (`.txid` + `.fee`)\n4. **CloakCoin = 6 decimals**, never 8\n5. **EVM needs your RPC** — configure endpoints before any EVM operation\n6. **XRP amount is Text** — pass `\"1.5\"` not `1500000`\n7. **Cache addresses** — deterministic per principal, fetch once and store\n8. **Always keep a reserve** — leave min balance for rent\u002Ffees (0.05 SOL, 0.001 ICP, 0.05 ETH)\n9. **Get quotes before swaps** — all quote functions are FREE\n10. **Strategy rules are FREE to create** — you only pay when execution happens\n\n---\n\n## Pricing Summary\n\n| Operation | Client Mode | Agent Mode |\n|-----------|------------|------------|\n| Addresses\u002FBalances\u002FQuotes | FREE | FREE |\n| Strategy rule CRUD | FREE | FREE |\n| Send\u002FTransfer | $0.05 | $0.10 |\n| DEX Swap | $0.075 | $0.15 |\n| Bridge | $0.10 | $0.20 |\n| DeFi (Aave\u002FLido\u002FLP\u002FCustom) | — | $0.10 |\n\n| Tier | Price | Actions\u002FMonth |\n|------|-------|---------------|\n| Free | $0 | 5 (lifetime) |\n| Developer | $35\u002Fmo | 1,000 |\n| Pro | $99\u002Fmo | 5,000 |\n| Enterprise | $249\u002Fmo | Unlimited |\n\n---\n\n## Files in This Skill\n\n| File | Purpose |\n|------|---------|\n| `SKILL.md` | This guide — all tools, examples, best practices |\n| `WalletBot.mo` | ICP canister wrapping MeneseSDK (production use) |\n| `scripts\u002Fwallet_commands.py` | Python CLI for dfx calls (prototyping\u002Ftesting) |\n| `references\u002Fapi-surface.md` | Full API — every type definition and function signature |\n| `references\u002Fautomation.md` | Deep dive — timer bots, DeFi yield, strategy patterns, custom contracts |\n","# Multichain Protocol — MeneseSDK Wallet Skill\n\nOperate across **19 blockchains** from a single ICP canister or CLI: Solana, Ethereum, Bitcoin, Arbitrum, Base, Polygon, BSC, Optimism, ICP, XRP, SUI, TON, Cardano, Aptos, NEAR, Tron, Litecoin, CloakCoin, THORChain.\n\n**Powered by Menese Protocol** | **Canister ID (mainnet):** `urs2a-ziaaa-aaaad-aembq-cai`\n\n---\n\n## Pricing\n\n**First 5 transactions are FREE** — no signup, no credit card, just install and go.\n\nAfter the free tier, transaction signing is charged per action via your DeveloperKey (`msk_*`). Read-only operations (balances, addresses, pool queries) are always free.\n\n---\n\n## Quickstart (2 minutes)\n\n### Step 1: Install dfx (ICP SDK)\n\nIf you don't have `dfx` installed, run this single command:\n\n```bash\nsh -ci \"$(curl -fsSL https:\u002F\u002Finternetcomputer.org\u002Finstall.sh)\"\n```\n\nVerify it works:\n```bash\ndfx --version\n```\n\nThat's it. No accounts needed, no wallets to set up — dfx handles everything.\n\n### Step 2: Install the skill\n\n```bash\nclawhub install multichain-protocol\n```\n\nOr manually: copy `SKILL.md` + `wallet_commands.py` to your workspace.\n\n### Step 3: Create an ICP identity (if you don't have one)\n\n```bash\ndfx identity new my-wallet\ndfx identity use my-wallet\n```\n\n### Step 4: Try it — your first 5 sends are free\n\nAsk your bot:\n```\n\"show my wallet addresses\"\n\"what's my SOL balance?\"\n\"send 0.1 ETH to 0xABC...\"\n\"swap 100 USDC to SOL on Raydium\"\n\"set up a DCA: buy $50 of BTC every day\"\n```\n\n### Step 5 (optional): Deploy your own canister for production\n\nFor multi-user, automation, and timers — deploy `WalletBot.mo` as your own ICP canister.\n\n---\n\n## Two Integration Approaches\n\n| | Canister (Recommended) | CLI (Quick) |\n|---|---|---|\n| **Flow** | User → ClawdBot → Your Canister → MeneseSDK | User → ClawdBot → `dfx canister call` → MeneseSDK |\n| **Setup** | Deploy `WalletBot.mo`, register with SDK | Copy `scripts\u002Fwallet_commands.py`, done |\n| **Best for** | Multi-user, automation, timers, production | Single-user, prototyping, testing |\n| **Automation** | ICP timers for DCA\u002Frebalance\u002Fbots | None (manual only) |\n\n---\n\n## Best Practice: Cache Addresses\n\nAddresses are **deterministic** — the same principal always gets the same addresses on every chain. Fetch once, cache forever.\n\n```motoko\n\u002F\u002F Canister pattern — cache in stable var\nstable var cachedAddresses : ?AddressBook = null;\n\npublic shared func getAddresses() : async AddressBook {\n  switch (cachedAddresses) {\n    case (?addrs) { addrs };  \u002F\u002F Return cached — no inter-canister call\n    case null {\n      let sol = await menese.getMySolanaAddress();\n      let evm = await menese.getMyEvmAddress();\n      \u002F\u002F ... fetch all chains once ...\n      let addrs = { solana = sol.address; evm = evm.evmAddress; \u002F* ... *\u002F };\n      cachedAddresses := ?addrs;\n      addrs;\n    };\n  };\n};\n```\n\n```python\n# CLI pattern — fetch once, store in file\nimport json, os\nCACHE_FILE = \"addresses_cache.json\"\n\ndef get_addresses():\n    if os.path.exists(CACHE_FILE):\n        return json.load(open(CACHE_FILE))\n    addrs = fetch_all_addresses()  # dfx calls\n    json.dump(addrs, open(CACHE_FILE, \"w\"))\n    return addrs\n```\n\n**Why**: Saves inter-canister call latency + cycles. Addresses never change for a given principal.\n\n---\n\n## EVM Chains — Bring Your Own RPC\n\nAll EVM operations (ETH, Arbitrum, Base, Polygon, BSC, Optimism) require **your own RPC endpoint**. MeneseSDK does not manage EVM RPCs.\n\n| Chain | Chain ID | Free Public RPC |\n|-------|----------|----------------|\n| Ethereum | 1 | `https:\u002F\u002Feth.llamarpc.com` |\n| Arbitrum | 42161 | `https:\u002F\u002Farb1.arbitrum.io\u002Frpc` |\n| Base | 8453 | `https:\u002F\u002Fmainnet.base.org` |\n| Polygon | 137 | `https:\u002F\u002Fpolygon-rpc.com` |\n| BSC | 56 | `https:\u002F\u002Fbsc-dataseed1.binance.org` |\n| Optimism | 10 | `https:\u002F\u002Fmainnet.optimism.io` |\n\nUse Alchemy\u002FInfura for production reliability.\n\n---\n\n## Complete Tool Reference\n\nEvery operation available, organized by category. Each tool shows the function, parameters, return type, cost, and a usage example.\n\n### Tool 1: Get Addresses (FREE)\n\nDeterministic per-principal. **Cache after first call.**\n\n| Chain | Function | Field to Extract |\n|-------|----------|-----------------|\n| Solana | `getMySolanaAddress` | `.address` |\n| EVM (all 6) | `getMyEvmAddress` | `.evmAddress` (NOT `.address`) |\n| Bitcoin | `getMyBitcoinAddress` | `.bech32Address` |\n| Litecoin | `getMyLitecoinAddress` | `.bech32Address` |\n| SUI | `getMySuiAddress` | `.suiAddress` (NOT `.address`) |\n| XRP | `getMyXrpAddress` | `.classicAddress` |\n| TON | `getMyTonAddress` | `.nonBounceable` (NOT `.address`) |\n| Cardano | `getMyCardanoAddress` | `.bech32Address` |\n| Aptos | `getMyAptosAddress` | `.address` |\n| NEAR | `getMyNearAddress` | `.implicitAccountId` (NOT `.accountId`) |\n| Tron | `getTronAddress` | `.base58Address` (NOT `.base58`) |\n| CloakCoin | `getMyCloakAddress` | `.base58Address` |\n| THORChain | `getMyThorAddress` | `.bech32Address` |\n\n**Batch**: `getAllAddresses()` — all chains in one call.\n**Solana ATA**: `getMySolanaAta(mintBase58)` — get associated token account for an SPL token.\n\n```motoko\n\u002F\u002F Example: get SOL address\nlet info = await menese.getMySolanaAddress();\nlet myAddress = info.address;  \u002F\u002F \"5xK2abc...\"\n```\n\n```bash\n# CLI\ndfx canister call urs2a-ziaaa-aaaad-aembq-cai getMySolanaAddress --network ic --query\n```\n\n### Tool 2: Check Balances (FREE)\n\n| Chain | Function | Returns | Unit |\n|-------|----------|---------|------|\n| Solana | `getMySolanaBalance` | `Result\u003CNat64, Text>` | lamports (÷10^9) |\n| ICP | `getICPBalance` | `Result\u003CNat64, Text>` | e8s (÷10^8) |\n| ICP (for addr) | `getICPBalanceFor(principal)` | `Result\u003CNat64, Text>` | e8s (÷10^8) |\n| Bitcoin | `getBitcoinBalance` | `Nat64` | satoshis (÷10^8) |\n| Litecoin | `getLitecoinBalance` | `Nat64` | litoshis (÷10^8) |\n| EVM | `getMyEvmBalance(rpcUrl)` | `Result\u003CNat, Text>` | wei (÷10^18) |\n| XRP | `getMyXrpBalance` | `Result\u003CText, Text>` | drops as text |\n| SUI | `getMySuiBalance` | `Nat64` | mist (÷10^9) |\n| TON | `getMyTonBalance` | `Result\u003CNat64, Text>` | nanotons (÷10^9) |\n| Cardano | `getCardanoBalance` | `Result\u003CNat64, Text>` | lovelace (÷10^6) |\n| Aptos | `getAptosBalance` | `Result\u003CNat64, Text>` | octas (÷10^8) |\n| NEAR | `getMyNearBalance` | `Nat` | yoctoNEAR (÷10^24) |\n| THORChain | `getThorBalance` | `[{amount, denom}]` | units (÷10^8) |\n| CloakCoin | `getCloakBalance` | `Result\u003C{address, balance, utxoCount}, Text>` | units (÷10^6) |\n| Tron | `getTrxBalance(address)` | `Result\u003CNat64, Text>` | sun (÷10^6) |\n| ICRC-1 tokens | `getICRC1Balance(ledgerId)` | `Result\u003CNat, Text>` | smallest unit |\n| ICRC-1 (for addr) | `getICRC1BalanceFor(principal, ledgerId)` | `Result\u003CNat, Text>` | smallest unit |\n| ICRC-1 info | `getICRC1TokenInfo(ledgerId)` | `Result\u003CTokenInfo, Text>` | name, symbol, decimals |\n| ICP tokens list | `getSupportedICPTokens()` | `[{name,symbol,canisterId,type_,category}]` | query |\n| TRC-20 tokens | `getMyTrc20Balance(contract)` | `Result\u003CNat, Text>` | smallest unit |\n\n**Batch**: `getAllBalances()` — parallel fetch across all chains.\n\n**Performance tip**: For high-frequency reads, query chain RPCs directly using cached addresses. MeneseSDK is best for signing; your own RPC is faster for reads.\n\n```motoko\n\u002F\u002F Example: check SOL balance, convert to human-readable\nswitch (await menese.getMySolanaBalance()) {\n  case (#ok(lamports)) { \u002F* lamports \u002F 1_000_000_000 = SOL *\u002F };\n  case (#err(e)) { \u002F* handle error *\u002F };\n};\n```\n\n### Tool 3: Send Tokens ($0.05 client \u002F $0.10 agent)\n\n**Return types differ by chain** — getting this wrong causes runtime errors.\n\n| Chain | Function | Params | Return |\n|-------|----------|--------|--------|\n| Solana | `sendSolTransaction` | `(to, lamports:Nat64)` | `Result\u003CText, Text>` |\n| ICP | `sendICP` | `(to:Principal, e8s:Nat64)` | `Result\u003CSendICPResult, Text>` |\n| ICRC-1 | `sendICRC1` | `(to:Principal, amount:Nat, ledger:Text)` | `Result\u003CSendICRC1Result, Text>` |\n| Bitcoin | `sendBitcoin` | `(to, sats:Nat64)` | `Result\u003CSendResultBtcLtc, Text>` |\n| Litecoin | `sendLitecoin` | `(to, litoshis:Nat64)` | `Result\u003CSendResult, Text>` (NOT BtcLtc!) |\n| EVM | `sendEvmNativeTokenAutonomous` | `(to, wei:Nat, rpc, chainId:Nat, ?quoteId)` | `Result\u003CSendResultEvm, Text>` |\n| XRP | `sendXrpAutonomous` | `(to, amountXrp:Text, ?destTag:Nat32)` | **FLAT** `SendResultXrp` |\n| SUI | `sendSui` | `(to, mist:Nat64)` | `Result\u003CSendResult, Text>` |\n| TON | `sendTonSimple` | `(to, nanotons:Nat64)` | **FLAT** `SendResultTon` |\n| Aptos | `sendAptos` | `(to, octas:Nat64)` | `Result\u003CSendResult, Text>` |\n| NEAR | `sendNearTransfer` | `(to, yocto:Nat)` | `Result\u003CText, Text>` |\n| Tron | `sendTrx` | `(to, sun:Nat64)` | `Result\u003CText, Text>` |\n| Cardano | `sendCardanoTransaction` | `(to, lovelace:Nat64)` | `Result\u003CText, Text>` |\n| CloakCoin | `sendCloak` | `(to, amount:Nat64)` | `Result\u003CSendResultCloak, Text>` |\n| THORChain | `sendThor` | `(to, amount:Nat64, memo:Text)` | `Result\u003CText, Text>` |\n| SPL Token | `transferSplToken` | `(amount:Nat64, srcAta, dstAta)` | `TransferAndSendResult` |\n| XRP IOU | `sendXrpIOU` | `(dest, currency, issuer, amount, ?tag)` | `SendResultXrp` |\n| TRC-20 | `sendTrc20` | `(contract, to, amount:Nat, feeLimit:Nat64)` | `Result\u003CText, Text>` |\n\n**Variant extras**: `sendBitcoinDynamicFee`, `sendBitcoinWithFee`, `sendLitecoinWithFee`, `sendSuiMax`, `sendTon` (with bounce\u002Fcomment), `sendTonWithComment`.\n\n```motoko\n\u002F\u002F Example: send 0.5 SOL\nswitch (await menese.sendSolTransaction(\"5xK2abc...\", 500_000_000)) {\n  case (#ok(txHash)) { \u002F* success — txHash is the Solana TX signature *\u002F };\n  case (#err(e)) { \u002F* handle error *\u002F };\n};\n\n\u002F\u002F Example: send XRP (FLAT return — check .success, not #ok)\nlet r = await menese.sendXrpAutonomous(\"rDestAddr...\", \"10.5\", null);\nif (r.success) { \u002F* r.txHash, r.explorerUrl *\u002F }\nelse { \u002F* r.message has error *\u002F };\n```\n\n### Tool 3b: ICRC-2 Approve & TransferFrom ($0.05 client \u002F $0.10 agent)\n\nICRC-2 adds ERC-20-style `approve` + `transferFrom` to ICP tokens. Use when building escrow, payment splitters, or any pattern where a canister needs to spend tokens on behalf of users.\n\n| Operation | Function | Params | Return |\n|-----------|----------|--------|--------|\n| Approve spender | `approveICRC2` | `(spender:Principal, amount:Nat, expiresAt:?Nat64, ledgerId:Text)` | `Result\u003CApproveResult, Text>` |\n| Check allowance | `getICRC2Allowance` | `(owner:Principal, spender:Principal, ledgerId:Text)` | `Result\u003CAllowance, Text>` — FREE |\n| TransferFrom | `transferFromICRC2` | `(from:Principal, to:Principal, amount:Nat, ledgerId:Text)` | `Result\u003CTransferFromResult, Text>` |\n\n```motoko\n\u002F\u002F Approve MeneseSDK canister to spend 100 ckUSDC on your behalf\nlet ckUSDC = \"xevnm-gaaaa-aaaar-qafnq-cai\";\nlet sdk = Principal.fromText(\"urs2a-ziaaa-aaaad-aembq-cai\");\nlet r = await menese.approveICRC2(sdk, 100_000_000, null, ckUSDC);  \u002F\u002F 100 ckUSDC (6 dec)\n\n\u002F\u002F Check remaining allowance (FREE)\nlet allowance = await menese.getICRC2Allowance(myPrincipal, sdk, ckUSDC);\n\n\u002F\u002F Transfer from (requires prior approval)\nlet t = await menese.transferFromICRC2(userPrincipal, treasuryPrincipal, 50_000_000, ckUSDC);\n```\n\n### Tool 4: Swap on DEXes ($0.075 client \u002F $0.15 agent)\n\n| DEX | Chain | Function | Key Details |\n|-----|-------|----------|-------------|\n| Raydium | Solana | `swapRaydiumApiUser` | 8 params, FLAT return |\n| Uniswap V3 | EVM | `swapTokens`, `swapTokensMultiHop` | Pass quoteId or rpc+chainId |\n| Uniswap shortcuts | EVM | `swapETHForUSDC`, `swapUSDCForETH` | Quick ETH↔USDC |\n| ICPSwap\u002FKongSwap | ICP | `executeICPDexSwap(SwapRequest)` | Auto-routes best price |\n| Cetus | SUI | `executeSuiSwap(network, from, to, amountIn, minOut)` | Network: `#mainnet` |\n| Minswap | Cardano | `executeMinswapSwap(tokenIn, tokenOut, amount, slippage)` | Float slippage % |\n| XRP DEX | XRP | `xrpSwap(destAmount, sendMax, paths, slipBps)` | Use xrpFindPaths first |\n\n**Always get a quote first (FREE)**:\n- Raydium: `getRaydiumQuote(inputMint, outputMint, amount, slipBps)`\n- Uniswap: `getTokenQuote(from, to, amountIn, rpc)`\n- ICP: `getICPDexQuote(tokenIn, tokenOut, amountIn, slipPct)` → `AggregatedQuote` (compares ICPSwap vs KongSwap)\n- SUI: `getSuiSwapQuote(network, from, to, amountIn, slipBps)`\n- Cardano: `getMinswapQuote(tokenIn, tokenOut, amountIn, slipPct)`\n- XRP: `xrpFindPaths(destAmount, sourceCurrencies)`\n\n```motoko\n\u002F\u002F Example: swap 1 SOL → USDC on Raydium\nlet SOL = \"So11111111111111111111111111111111111111112\";\nlet USDC = \"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v\";\n\nlet result = await menese.swapRaydiumApiUser(\n  SOL, USDC,\n  1_000_000_000,  \u002F\u002F 1 SOL in lamports\n  150,            \u002F\u002F 1.5% slippage\n  true,           \u002F\u002F wrapSol: input is native SOL\n  false,          \u002F\u002F unwrapSol: output is USDC not SOL\n  null, null      \u002F\u002F auto-detect ATAs\n);\n\u002F\u002F FLAT record — access directly:\n\u002F\u002F result.txSignature, result.outputAmount, result.priceImpactPct\n```\n\n```motoko\n\u002F\u002F Example: swap on ICP DEX (auto-routes to ICPSwap or KongSwap)\nlet swapReq : Menese.SwapRequest = {\n  tokenIn = \"ryjl3-tyaaa-aaaaa-aaaba-cai\";  \u002F\u002F ICP ledger\n  tokenOut = \"mxzaz-hqaaa-aaaar-qaada-cai\";  \u002F\u002F ckUSDC\n  amountIn = 100_000_000;  \u002F\u002F 1 ICP\n  minAmountOut = 0;\n  slippagePct = 1.0;\n  preferredDex = null;  \u002F\u002F auto-pick best price\n};\nlet result = await menese.executeICPDexSwap(swapReq);\n```\n\n### Tool 5: Bridge ETH↔SOL ($0.10 client \u002F $0.20 agent)\n\n| Direction | Function | Params |\n|-----------|----------|--------|\n| ETH→SOL | `quickUltrafastEthToSol` | `(ethWei:Nat)` |\n| USDC→SOL | `quickUltrafastUsdcToSol` | `(usdc:Nat)` |\n| ETH→Token | `quickUltrafastEthToToken` | `(ethWei:Nat, outputMint, slipBps:Nat)` |\n| SOL→ETH | `quickSolToEth` | `(solLamports:Nat64, slipBps:Nat)` |\n| USDC SOL→ETH | `quickUsdcBridgeSolToEth` | `(usdc:Nat64)` |\n| CCTP (any) | `quickCctpBridge` | `(srcChainId, usdc, outputToken, fast, slipBps, ethRpc)` |\n\n```motoko\n\u002F\u002F Example: bridge 0.1 ETH to Solana\nlet result = await menese.quickUltrafastEthToSol(100_000_000_000_000_000);  \u002F\u002F 0.1 ETH in wei\n\u002F\u002F Result\u003CText, Text> — ok = status text\n```\n\n### Tool 6: DeFi — Aave V3 ($0.10 agent)\n\n| Operation | Function | Params |\n|-----------|----------|--------|\n| Supply ETH | `aaveSupplyEth` | `(wei:Nat, rpc, ?quoteId)` → `Result\u003CSupplyEthResult, Text>` |\n| Withdraw ETH | `aaveWithdrawEth` | `(wei:Nat, rpc, ?quoteId)` → `Result\u003CWithdrawEthResult, Text>` |\n| Supply ERC-20 | `aaveSupplyToken` | `(tokenAddr, amount:Nat, rpc, ?quoteId)` |\n| Withdraw ERC-20 | `aaveWithdrawToken` | `(tokenAddr, amount:Nat, rpc, ?quoteId)` |\n| Read aWETH bal | `getAWethBalance` | `(user, rpc)` → FREE |\n| Read aToken bal | `getATokenBalance` | `(aTokenAddr, user, rpc)` → FREE |\n\n```motoko\n\u002F\u002F Supply 0.5 ETH to Aave → receive aWETH (~2-3% APY)\nlet r = await menese.aaveSupplyEth(500_000_000_000_000_000, ethRpc, null);\nswitch (r) {\n  case (#ok(res)) { \u002F* res.txHash, res.aTokenAddress *\u002F };\n  case (#err(e)) { \u002F* error *\u002F };\n};\n```\n\n### Tool 7: DeFi — Lido Staking ($0.10 agent)\n\n| Operation | Function | Return |\n|-----------|----------|--------|\n| Stake ETH→stETH | `stakeEthForStEth(wei, rpc, ?quoteId)` | `Result\u003CStakeResult, Text>` |\n| Wrap stETH→wstETH | `wrapStEth(amount, rpc, ?quoteId)` | `Result\u003CWrapResult, Text>` |\n| Unwrap wstETH→stETH | `unwrapWstEth(amount, rpc, ?quoteId)` | `Result\u003CUnwrapResult, Text>` |\n| Read stETH bal | `getStEthBalance(user, rpc)` | FREE |\n| Read wstETH bal | `getWstEthBalance(user, rpc)` | FREE |\n\n```motoko\n\u002F\u002F Stake 1 ETH with Lido (~3-4% APY), then wrap for DeFi composability\nignore await menese.stakeEthForStEth(1_000_000_000_000_000_000, ethRpc, null);\nignore await menese.wrapStEth(1_000_000_000_000_000_000, ethRpc, null);\n```\n\n### Tool 8: DeFi — Uniswap V3 Liquidity ($0.10 agent)\n\n| Operation | Function |\n|-----------|----------|\n| Add ETH+Token LP | `addLiquidityETH(tokenSymbol, tokenAmt, ethAmt, slipBps, rpc, ?quoteId)` |\n| Add Token+Token LP | `addLiquidity(tokenA, tokenB, amtA, amtB, slipBps, rpc, ?quoteId)` |\n| Remove ETH LP | `removeLiquidityETH(tokenSymbol, lpAmt, slipBps, feeOnTransfer, rpc, ?quoteId)` |\n| Remove Token LP | `removeLiquidity(tokenA, tokenB, lpAmt, slipBps, rpc, ?quoteId)` |\n| Read reserves | `getPoolReserves(tokenA, tokenB, rpc)` — FREE |\n| Get pair addr | `getPairAddress(tokenA, tokenB, rpc)` — FREE |\n\n### Tool 9: Custom EVM Contract Calls\n\n| Operation | Function | Cost |\n|-----------|----------|------|\n| Read (view) | `callEvmContractRead(contract, selector4byte, argsHexes, rpc)` | FREE |\n| Write (tx) | `callEvmContractWrite(contract, selector, args, rpc, chainId, value, ?quoteId)` | $0.10 |\n\nSelector = first 4 bytes of `keccak256(\"functionName(type1,type2)\")`, hex-encoded, no `0x` prefix.\n\n```motoko\n\u002F\u002F Read Chainlink ETH\u002FUSD price (FREE)\nlet result = await menese.callEvmContractRead(\n  \"0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419\",  \u002F\u002F ETH\u002FUSD feed\n  \"feaf968c\",  \u002F\u002F latestRoundData()\n  [], ethRpc\n);\n```\n\n### Tool 10: Strategy Engine (rule creation FREE, execution per-action pricing)\n\n| Operation | Function | Cost |\n|-----------|----------|------|\n| Create rule | `addStrategyRule(Rule)` | FREE |\n| List rules | `getMyStrategyRules()` | FREE |\n| Update status | `updateStrategyRuleStatus(ruleId, status)` | FREE |\n| Delete rule | `deleteStrategyRule(ruleId)` | FREE |\n| View logs | `getStrategyLogs()` | FREE |\n| Init automation | `initAutomation()` | FREE |\n\nRule types: `#DCA`, `#StopLoss`, `#TakeProfit`, `#Rebalance`, `#Scheduled`, `#APYMigration`, `#LiquidityProvision`, `#VolatilityTrigger`.\n\nRule statuses: `#Active`, `#Paused`, `#Cancelled`, `#Executed`, `#Executing`, `#Failed`, `#Draft`, `#Confirmed`, `#Ready`.\n\n### Tool 11: Solana ATA \u002F XRP Trustlines (setup)\n\n| Operation | Function | Cost |\n|-----------|----------|------|\n| Create Solana ATA | `createMySolanaAtaForMint(mint, ata)` | Send pricing |\n| Create ATA (custom program) | `createMySolanaAtaForMintWithProgram(mint, ata, programId)` | Send pricing |\n| Set XRP trustline | `xrpSetTrustline(currency, issuer, limit)` | Send pricing |\n| Read XRP trustlines | `xrpGetAccountLines()` | FREE |\n| Get Solana ATA | `getMySolanaAta(mint)` | FREE |\n\n### Tool 12: Developer\u002FBilling\n\n| Operation | Function | Cost |\n|-----------|----------|------|\n| Register canister | `registerDeveloperCanister(Principal, appName)` | FREE |\n| Get dev key | `getMyDeveloperKey()` | FREE |\n| Regenerate key | `regenerateDeveloperKey()` | FREE |\n| Validate key | `validateDeveloperKey(key)` | FREE |\n| Check account | `getMyGatewayAccount()` → `UserAccount` | FREE |\n| Check dev account | `getMyDeveloperAccount()` → `?DeveloperAccountV3` | FREE |\n| Deposit credits | `depositGatewayCredits(currency, amount)` | ICP cost |\n\n### Tool 13: Utility\n\n| Operation | Function | Cost |\n|-----------|----------|------|\n| BTC max send | `getBitcoinMaxSendAmount(?feeRate)` → `{maxAmount, fee, utxoCount}` | FREE |\n| LTC max send | `getLitecoinMaxSendAmount(?feeRate)` → `{maxAmount, fee, utxoCount}` | FREE |\n| Health check | `health()` | FREE |\n| Version | `version()` | FREE |\n\n### Tool 14: ICP DEX LP Management ($0.10 agent)\n\nManage liquidity positions on ICPSwap and KongSwap. The SDK aggregates both DEXes.\n\n| Operation | Function | Cost |\n|-----------|----------|------|\n| List pools | `getICPDexPools()` → `[PoolInfo]` | FREE |\n| List tokens | `getICPDexTokens()` → `[DexToken]` | FREE |\n| View positions | `getICPLPPositions()` → `[LPPosition]` | FREE |\n| Add liquidity | `addICPLiquidity(AddLiquidityRequest)` → `Result\u003CAddLiquidityResult, Text>` | $0.10 |\n| Remove liquidity | `removeICPLiquidity(RemoveLiquidityRequest)` → `Result\u003CRemoveLiquidityResult, Text>` | $0.10 |\n\n**Types:**\n\n```\nAddLiquidityRequest = { poolId:Text, dex:{#ICPSwap|#KongSwap}, token0:Text, token1:Text, token0Amount:Nat, token1Amount:Nat, slippagePct:Float }\nRemoveLiquidityRequest = { poolId:Text, dex:{#ICPSwap|#KongSwap}, lpTokens:Nat, slippagePct:Float }\nLPPosition = { poolId, dex, token0, token1, token0Symbol, token1Symbol, liquidity:Nat, token0Amount, token1Amount, unclaimedFees:?(Nat,Nat), valueUsd:?Nat }\nPoolInfo = { poolId, dex, token0, token1, token0Symbol, token1Symbol, reserve0, reserve1, fee, tvl:?Nat, apr:?Float, volume24h:?Nat }\nDexToken = { canisterId, symbol, name, decimals:Nat8, fee:Nat, standard:{#ICRC1|#ICRC2|#DIP20}, logo:?Text, category:?Text, availableOn:[DexId] }\n```\n\n**Well-known pools:** ICP\u002FckUSDC, ckBTC\u002FICP, ICP\u002FckETH, ckUSDT\u002FckUSDC, CHAT\u002FICP (on both ICPSwap and KongSwap).\n\n```motoko\n\u002F\u002F Discover pools, then add liquidity\nlet pools = await menese.getICPDexPools();\n\u002F\u002F Find ICP\u002FckUSDC pool\nlet pool = Array.find\u003CDexTypes.PoolInfo>(pools, func(p) { p.token0Symbol == \"ICP\" and p.token1Symbol == \"ckUSDC\" });\n\nswitch (pool) {\n  case (?p) {\n    let req : DexTypes.AddLiquidityRequest = {\n      poolId = p.poolId;\n      dex = p.dex;\n      token0 = \"ryjl3-tyaaa-aaaaa-aaaba-cai\";  \u002F\u002F ICP ledger\n      token1 = \"xevnm-gaaaa-aaaar-qafnq-cai\";  \u002F\u002F ckUSDC\n      token0Amount = 100_000_000;  \u002F\u002F 1 ICP\n      token1Amount = 10_000_000;   \u002F\u002F 10 ckUSDC\n      slippagePct = 1.0;\n    };\n    let result = await menese.addICPLiquidity(req);\n  };\n  case null { \u002F* pool not found *\u002F };\n};\n\n\u002F\u002F View positions\nlet positions = await menese.getICPLPPositions();\n\u002F\u002F Remove liquidity\nlet removeReq : DexTypes.RemoveLiquidityRequest = {\n  poolId = positions[0].poolId;\n  dex = positions[0].dex;\n  lpTokens = positions[0].liquidity;  \u002F\u002F Remove all\n  slippagePct = 1.0;\n};\nlet removed = await menese.removeICPLiquidity(removeReq);\n```\n\n### Tool 15: ICP AI Rebalancer (FREE)\n\nAI-powered portfolio rebalancing recommendations using Herfindahl-Hirschman Index diversification scoring, impermanent loss estimation, and risk-adjusted APY analysis.\n\n| Operation | Function | Cost |\n|-----------|----------|------|\n| Get recommendations | `getICPRebalanceRecommendations(preferences, tokenBalances, pools?)` → `[RebalanceRecommendation]` | FREE |\n\n**Types:**\n\n```\nRebalancePreferences = { targetCategories:[Text], riskTolerance:Text, minApy:?Float, maxImpermanentLoss:?Float, autoCompound:Bool }\n  targetCategories: [\"stablecoin\", \"defi\", \"lst\", \"yield\", \"wrapped\", \"meme\", \"ecosystem\"]\n  riskTolerance: \"conservative\" | \"moderate\" | \"aggressive\"\n\nRebalanceRecommendation = { id, action:{#Swap|#AddLiquidity|#RemoveLiquidity|#Compound}, fromToken, toToken, fromSymbol, toSymbol, amount:Nat, reason:Text, estimatedApy:?Float, currentApy:?Float, impermanentLossRisk:{#Low|#Medium|#High}, confidence:Float, estimatedGasUsd:?Float }\n```\n\n```motoko\n\u002F\u002F Get rebalancing recommendations for your ICP portfolio\nlet prefs : DexTypes.RebalancePreferences = {\n  targetCategories = [\"stablecoin\", \"defi\", \"lst\"];\n  riskTolerance = \"moderate\";\n  minApy = ?5.0;        \u002F\u002F Only suggest >5% APY\n  maxImpermanentLoss = ?10.0;  \u002F\u002F Max 10% IL risk\n  autoCompound = true;\n};\n\n\u002F\u002F Pass current balances: [(canisterId, amount)]\nlet balances = [\n  (\"ryjl3-tyaaa-aaaaa-aaaba-cai\", 500_000_000),  \u002F\u002F 5 ICP\n  (\"xevnm-gaaaa-aaaar-qafnq-cai\", 100_000_000),  \u002F\u002F 100 ckUSDC\n  (\"mxzaz-hqaaa-aaaar-qaada-cai\", 50_000),        \u002F\u002F 0.0005 ckBTC\n];\n\nlet recommendations = await menese.getICPRebalanceRecommendations(prefs, balances, null);\nfor (rec in recommendations.vals()) {\n  Debug.print(rec.reason # \" | Confidence: \" # Float.toText(rec.confidence));\n  \u002F\u002F e.g., \"Swap 2 ICP → ckUSDC and add to ICP\u002FckUSDC pool for 12.5% APY | Confidence: 0.85\"\n};\n```\n\n---\n\n## Combining Tools — Practical Automation Examples\n\nThe real power is combining these tools. Below are complete patterns showing how tools work together.\n\n### Example 1: DCA Bot (Timer + Balance + Swap)\n\nBuy USDC with SOL every hour if balance exceeds threshold.\n\n```motoko\n\u002F\u002F Tools used: getMySolanaBalance (FREE) + swapRaydiumApiUser ($0.075)\nfunc dcaCycle() : async () {\n  let balance = switch (await menese.getMySolanaBalance()) {\n    case (#ok(v)) v; case (#err(_)) return;\n  };\n  if (balance \u003C 500_000_000) return;  \u002F\u002F \u003C 0.5 SOL, skip\n\n  let swapAmt = balance - 50_000_000;  \u002F\u002F Keep 0.05 SOL for rent\n  let _ = await menese.swapRaydiumApiUser(\n    \"So11111111111111111111111111111111111111112\",  \u002F\u002F SOL\n    \"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v\",  \u002F\u002F USDC\n    swapAmt, 150, true, false, null, null\n  );\n};\n\n\u002F\u002F Run every hour\nlet timerId = Timer.recurringTimer\u003Csystem>(#seconds(3600), dcaCycle);\n```\n\n### Example 2: Stop-Loss via Strategy Engine\n\nSet a stop-loss rule that auto-sells when price drops. No timer needed — MeneseSDK evaluates.\n\n```motoko\n\u002F\u002F Tool used: addStrategyRule (FREE to create, execution costs per action)\nlet rule : Menese.Rule = {\n  id = 0;\n  ruleType = #StopLoss;\n  status = #Active;\n  chainType = #Solana;\n  triggerPrice = 120_000_000;  \u002F\u002F Trigger at this price level\n  sizePct = 100;  \u002F\u002F Sell 100% of position\n  positionId = 0;\n  createdAt = Time.now();\n  dcaConfig = null; lpConfig = null; scheduledConfig = null;\n  apyMigrationConfig = null; volatilityConfig = null;\n  swapAmountLamports = ?1_000_000_000;  \u002F\u002F 1 SOL\n  swapAmountWei = null;\n};\nlet ruleId = await menese.addStrategyRule(rule);\n```\n\n### Example 3: Take-Profit + Stop-Loss Combo\n\nSet both on the same position — whichever triggers first wins.\n\n```motoko\n\u002F\u002F Tools: addStrategyRule × 2\n\u002F\u002F Take-profit at 200\nlet tp : Menese.Rule = { \u002F* ... *\u002F ruleType = #TakeProfit; triggerPrice = 200_000_000; sizePct = 50; \u002F* sell half *\u002F \u002F* ... *\u002F };\nlet tpId = await menese.addStrategyRule(tp);\n\n\u002F\u002F Stop-loss at 100\nlet sl : Menese.Rule = { \u002F* ... *\u002F ruleType = #StopLoss; triggerPrice = 100_000_000; sizePct = 100; \u002F* sell all *\u002F \u002F* ... *\u002F };\nlet slId = await menese.addStrategyRule(sl);\n\n\u002F\u002F When one triggers, cancel the other\n\u002F\u002F Check via getMyStrategyRules() or getStrategyLogs() in your timer\n```\n\n### Example 4: DCA via Strategy Engine (no custom timer)\n\nLet MeneseSDK handle the scheduling internally.\n\n```motoko\n\u002F\u002F Tool: addStrategyRule with DCA config\nlet dca : Menese.Rule = {\n  id = 0;\n  ruleType = #DCA;\n  status = #Active;\n  chainType = #Solana;\n  triggerPrice = 0; sizePct = 100; positionId = 0;\n  createdAt = Time.now();\n  dcaConfig = ?{\n    amountPerInterval = 100_000_000;  \u002F\u002F 0.1 SOL per buy\n    currentInterval = 0;\n    intervalSeconds = 3600;  \u002F\u002F Every hour\n    lastExecutedAt = 0;\n    maxIntervals = 168;  \u002F\u002F Run for 1 week (168 hours)\n    targetToken = \"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v\";  \u002F\u002F Buy USDC\n    totalSpent = 0;\n  };\n  lpConfig = null; scheduledConfig = null;\n  apyMigrationConfig = null; volatilityConfig = null;\n  swapAmountLamports = ?100_000_000;\n  swapAmountWei = null;\n};\nignore await menese.addStrategyRule(dca);\n```\n\n### Example 5: Multi-Chain Sweep (Balance + Send across chains)\n\nCheck all balances, sweep any above threshold to treasury.\n\n```motoko\n\u002F\u002F Tools: getAllBalances (FREE) + sendSolTransaction + sendICP + sendEvmNativeTokenAutonomous\nfunc sweepCycle() : async () {\n  let bals = await menese.getAllBalances();\n\n  \u002F\u002F Sweep SOL if > 1 SOL\n  switch (bals.solana) {\n    case (#ok(lamports)) {\n      if (lamports > 1_000_000_000) {\n        ignore await menese.sendSolTransaction(solTreasury, lamports - 50_000_000);\n      };\n    };\n    case (#err(_)) {};\n  };\n\n  \u002F\u002F Sweep ICP if > 1 ICP\n  switch (bals.icp) {\n    case (#ok(e8s)) {\n      if (e8s > 100_000_000) {\n        ignore await menese.sendICP(Principal.fromText(icpTreasury), e8s - 100_000);\n      };\n    };\n    case (#err(_)) {};\n  };\n\n  \u002F\u002F Sweep ETH if > 0.1 ETH\n  switch (await menese.getMyEvmBalance(ethRpc)) {\n    case (#ok(wei)) {\n      if (wei > 100_000_000_000_000_000) {\n        ignore await menese.sendEvmNativeTokenAutonomous(\n          ethTreasury, wei - 50_000_000_000_000_000, ethRpc, 1, null\n        );\n      };\n    };\n    case (#err(_)) {};\n  };\n};\n```\n\n### Example 6: DeFi Yield Rebalancer (Aave + Lido + LP)\n\nAllocate idle ETH across DeFi protocols on a timer.\n\n```motoko\n\u002F\u002F Tools: getMyEvmBalance + getAWethBalance + getStEthBalance (all FREE)\n\u002F\u002F        + aaveSupplyEth + stakeEthForStEth + wrapStEth ($0.10 each)\n\nfunc rebalanceCycle() : async () {\n  let evmAddr = (await menese.getMyEvmAddress()).evmAddress;  \u002F\u002F Cached ideally\n  let ethBal = switch (await menese.getMyEvmBalance(ethRpc)) { case (#ok(v)) v; case _ 0 };\n  let aaveBal = switch (await menese.getAWethBalance(evmAddr, ethRpc)) { case (#ok(v)) v; case _ 0 };\n  let lidoBal = switch (await menese.getStEthBalance(evmAddr, ethRpc)) { case (#ok(v)) v; case _ 0 };\n\n  let reserve = 50_000_000_000_000_000;  \u002F\u002F 0.05 ETH for gas\n  if (ethBal \u003C= reserve) return;\n  let deployable = ethBal - reserve;\n\n  \u002F\u002F 50% Aave, 50% Lido\n  let aaveTarget = deployable \u002F 2;\n  let lidoTarget = deployable \u002F 2;\n\n  if (aaveTarget > aaveBal and aaveTarget - aaveBal > 10_000_000_000_000_000) {\n    ignore await menese.aaveSupplyEth(aaveTarget - aaveBal, ethRpc, null);\n  };\n  if (lidoTarget > lidoBal and lidoTarget - lidoBal > 10_000_000_000_000_000) {\n    ignore await menese.stakeEthForStEth(lidoTarget - lidoBal, ethRpc, null);\n    ignore await menese.wrapStEth(lidoTarget - lidoBal, ethRpc, null);\n  };\n};\n\n\u002F\u002F Run every 6 hours\nlet timerId = Timer.recurringTimer\u003Csystem>(#seconds(21600), rebalanceCycle);\n```\n\n### Example 7: Cross-Chain Arbitrage (Bridge + Swap)\n\nMove funds between Ethereum and Solana to capture price differences.\n\n```motoko\n\u002F\u002F Tools: getTokenQuote (FREE) + getRaydiumQuote (FREE)\n\u002F\u002F        + quickUltrafastEthToSol ($0.10) + swapRaydiumApiUser ($0.075)\n\n\u002F\u002F 1. Check ETH USDC price on Uniswap\nlet ethQuote = await menese.getTokenQuote(\"USDC\", \"WETH\", 1000_000_000, ethRpc);\n\n\u002F\u002F 2. Check SOL USDC price on Raydium\nlet solQuote = await menese.getRaydiumQuote(USDC_MINT, SOL_MINT, 1000_000_000, 100);\n\n\u002F\u002F 3. If profitable, bridge and swap\n\u002F\u002F Bridge ETH → SOL: quickUltrafastEthToSol\n\u002F\u002F Swap on Raydium: swapRaydiumApiUser\n\u002F\u002F Bridge back: quickSolToEth\n```\n\n### Example 8: Merchant Payment Flow (Address + Balance + Sweep)\n\nAccept payments and auto-sweep to treasury.\n\n```motoko\n\u002F\u002F Tools: getMySolanaAddress (FREE, cached) + getMySolanaBalance (FREE)\n\u002F\u002F        + sendSolTransaction ($0.05)\n\n\u002F\u002F 1. Show payment address to customer (from cache)\nlet payAddr = cachedAddresses.solana;\n\n\u002F\u002F 2. Periodically check if payment arrived (FREE)\nlet bal = switch (await menese.getMySolanaBalance()) { case (#ok(v)) v; case _ 0 };\nif (bal >= invoiceAmount) {\n  \u002F\u002F 3. Mark paid, sweep to treasury\n  ignore await menese.sendSolTransaction(treasury, bal - 50_000_000);\n};\n```\n\n### Example 9: Scheduled Weekly Swap (Strategy Engine)\n\nUse `#Scheduled` rule type for time-based operations without custom timers.\n\n```motoko\nlet weekly : Menese.Rule = {\n  id = 0;\n  ruleType = #Scheduled;\n  status = #Active;\n  chainType = #Solana;\n  triggerPrice = 0; sizePct = 100; positionId = 0;\n  createdAt = Time.now();\n  dcaConfig = null;\n  scheduledConfig = ?{};  \u002F\u002F SDK handles scheduling details\n  lpConfig = null; apyMigrationConfig = null; volatilityConfig = null;\n  swapAmountLamports = ?500_000_000;  \u002F\u002F 0.5 SOL\n  swapAmountWei = null;\n};\nignore await menese.addStrategyRule(weekly);\n```\n\n### Example 10: Monitor + React to Volatility\n\nUse `#VolatilityTrigger` or custom timer with price feeds.\n\n```motoko\n\u002F\u002F Strategy engine approach:\nlet volRule : Menese.Rule = {\n  id = 0;\n  ruleType = #VolatilityTrigger;\n  status = #Active;\n  chainType = #EVM;\n  triggerPrice = 0; sizePct = 50; positionId = 0;\n  createdAt = Time.now();\n  dcaConfig = null; lpConfig = null; scheduledConfig = null;\n  apyMigrationConfig = null;\n  volatilityConfig = ?{};  \u002F\u002F SDK evaluates volatility conditions\n  swapAmountLamports = null;\n  swapAmountWei = ?500_000_000_000_000_000;  \u002F\u002F 0.5 ETH\n};\n\n\u002F\u002F Custom approach: read Chainlink price feed + react\nfunc checkVolatility() : async () {\n  let price = await menese.callEvmContractRead(\n    \"0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419\",  \u002F\u002F ETH\u002FUSD Chainlink\n    \"feaf968c\", [], ethRpc\n  );\n  \u002F\u002F Parse price, compare to threshold, execute swap if needed\n};\n```\n\n---\n\n## Unit Conversion Quick Reference\n\n| Chain | Unit | Decimals | 1 Token = |\n|-------|------|----------|-----------|\n| Solana | lamports | 9 | 1,000,000,000 |\n| ICP | e8s | 8 | 100,000,000 |\n| Bitcoin | satoshis | 8 | 100,000,000 |\n| Litecoin | litoshis | 8 | 100,000,000 |\n| EVM | wei | 18 | 10^18 |\n| XRP | drops (Text) | 6 | \"1.0\" |\n| SUI | mist | 9 | 1,000,000,000 |\n| TON | nanotons | 9 | 1,000,000,000 |\n| Cardano | lovelace | 6 | 1,000,000 |\n| Aptos | octas | 8 | 100,000,000 |\n| NEAR | yoctoNEAR | 24 | 10^24 |\n| Tron | sun | 6 | 1,000,000 |\n| CloakCoin | units | 6 | 1,000,000 |\n| THORChain | units | 8 | 100,000,000 |\n\n---\n\n## Common Pitfalls\n\n1. **Wrong field names** — `evmAddress` not `address`, `suiAddress` not `address`, `nonBounceable` not `address`, `implicitAccountId` not `accountId`, `base58Address` not `base58`\n2. **Flat vs variant returns** — XRP and TON send return FLAT records (check `.success`). Raydium swap also returns FLAT. Everything else uses `Result\u003CT, Text>` with `#ok\u002F#err`.\n3. **Litecoin ≠ Bitcoin return type** — Litecoin = `SendResult` (`.txHash`), Bitcoin = `SendResultBtcLtc` (`.txid` + `.fee`)\n4. **CloakCoin = 6 decimals**, never 8\n5. **EVM needs your RPC** — configure endpoints before any EVM operation\n6. **XRP amount is Text** — pass `\"1.5\"` not `1500000`\n7. **Cache addresses** — deterministic per principal, fetch once and store\n8. **Always keep a reserve** — leave min balance for rent\u002Ffees (0.05 SOL, 0.001 ICP, 0.05 ETH)\n9. **Get quotes before swaps** — all quote functions are FREE\n10. **Strategy rules are FREE to create** — you only pay when execution happens\n\n---\n\n## Pricing Summary\n\n| Operation | Client Mode | Agent Mode |\n|-----------|------------|------------|\n| Addresses\u002FBalances\u002FQuotes | FREE | FREE |\n| Strategy rule CRUD | FREE | FREE |\n| Send\u002FTransfer | $0.05 | $0.10 |\n| DEX Swap | $0.075 | $0.15 |\n| Bridge | $0.10 | $0.20 |\n| DeFi (Aave\u002FLido\u002FLP\u002FCustom) | — | $0.10 |\n\n| Tier | Price | Actions\u002FMonth |\n|------|-------|---------------|\n| Free | $0 | 5 (lifetime) |\n| Developer | $35\u002Fmo | 1,000 |\n| Pro | $99\u002Fmo | 5,000 |\n| Enterprise | $249\u002Fmo | Unlimited |\n\n---\n\n## Files in This Skill\n\n| File | Purpose |\n|------|---------|\n| `SKILL.md` | This guide — all tools, examples, best practices |\n| `WalletBot.mo` | ICP canister wrapping MeneseSDK (production use) |\n| `scripts\u002Fwallet_commands.py` | Python CLI for dfx calls (prototyping\u002Ftesting) |\n| `references\u002Fapi-surface.md` | Full API — every type definition and function signature |\n| `references\u002Fautomation.md` | Deep dive — timer bots, DeFi yield, strategy patterns, custom contracts |\n",{"name":5,"version":24,"metadata":25,"description":7},"1.0.0",{"openclaw":26},{"tags":27,"emoji":34,"author":35,"license":15,"requires":36},[28,29,30,31,32,33],"crypto","wallet","defi","multi-chain","icp","payments","🌐","Menese Protocol Team",{"bins":37},[38,42],{"name":39,"check":40,"install":41},"dfx","dfx --version","sh -ci \"$(curl -fsSL https:\u002F\u002Finternetcomputer.org\u002Finstall.sh)\"",{"name":43,"check":44,"install":45},"python3","python3 --version","apt install -y python3 || brew install python3","main","f9d3fe7cf9ac8f1ea63a0d96e98e1f510a3814db","skills\u002Fkyounesmercatura\u002Fmultichain-protocol",1,"https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills","https:\u002F\u002Fgithub.com\u002Fjavimosch","intrane.fr","Building robust, open-source infrastructure for the commons. AI-leveraged, self-hosted, built to last.","2026-06-07 03:34:58",{"source":8,"skillName":5,"commands":56,"prompt":66,"zipAvailable":67},[57,60,63],{"tool":58,"command":59},"npx","npx skills add javimosch\u002Fopen-claw-skills --skill multichain-protocol",{"tool":61,"command":62},"bunx","bunx skills add javimosch\u002Fopen-claw-skills --skill multichain-protocol",{"tool":64,"command":65},"pnpm","pnpm dlx skills add javimosch\u002Fopen-claw-skills --skill multichain-protocol","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fkyounesmercatura\u002Fmultichain-protocol\u002FSKILL.md",true,[],[70,78,85,92,99,106],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":77},"01M778GGXG2VQ0YF31W2MKGMQZ","crowd-prompting","A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzzadrian\u002Fcrowd-prompting\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":77},"01M778G7BH8SBJ9FJ6C3G7CB1K","ceaser","Interact with the Ceaser privacy protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- shield, unshield, note management, and protocol queries. All ceaser tool calls use CLI subcommands (npx -y ceaser-mcp \u003Csubcommand>). Ceaser is a privacy-preserving ETH wrapper using Noir\u002FUltraHonk zero-knowledge proofs on Base L2 (chain ID 8453).","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyra-v21\u002Fceaser\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":77},"01M778FYCJQZWFKKX5FYMK3S47","ceaser-send","Fully automated private ETH transfer via Ceaser Protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- all ceaser tool calls use CLI subcommands (npx -y ceaser-mcp \u003Csubcommand>). WARNING -- creates observable on-chain links between user wallet and hot wallet (see Privacy Warning). Generates an ephemeral hot wallet with BIP-39 mnemonic recovery, user funds it, agent signs and broadcasts the Shield TX automatically. Exactly one manual step required (funding the hot wallet with ETH). Uses Noir\u002FUltraHonk zero-knowledge proofs.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyra-v21\u002Fceaser-send\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":77},"01M778FQQNSEYA3HJKZBPQ4M9Z","dilemm-ai","Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyori\u002Fdilemm-ai\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":77},"01M778FGVZX7QA2TF9BFMM37FY","moldium","Post and manage content on the Moldium blog platform. Triggered by \"post to Moldium\", \"write a blog post\", \"publish an article\", etc.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyom45\u002Fmoldium\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":77},"01M778F88D8PQ9MQ0KNW2TJ8ZH","arxiv-paper-reviews","Interact with arXiv Crawler API to fetch papers, read reviews, submit comments, search papers, and import papers. Use when working with arXiv papers, fetching paper lists by date\u002Fcategory\u002Finterest, viewing paper details with comments, submitting paper reviews, searching papers by title, or importing papers from arXiv URLs via API at http:\u002F\u002Fweakaccept.top:8000\u002F.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Farxiv-paper-reviews\u002FSKILL.md",[],[]]