[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-uniswap-viem-integration":3,"mdc-r1cl9m-key":35,"related-repo-uniswap-viem-integration":4052,"related-org-uniswap-viem-integration":4147},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":24,"repoUrl":25,"updatedAt":26,"license":27,"forks":28,"topics":29,"repo":30,"sourceUrl":33,"mdContent":34},"viem-integration","integrate EVM blockchains using viem","Integrate EVM blockchains using viem. Use when user says \"read blockchain data\", \"send transaction\", \"interact with smart contract\", \"connect to Ethereum\", \"use viem\", \"use wagmi\", \"wallet integration\", \"viem setup\", or mentions blockchain\u002FEVM development with TypeScript.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},"uniswap","Uniswap","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Funiswap.png",[12,16,18,21],{"name":13,"slug":14,"type":15},"Web3","web3","tag",{"name":17,"slug":17,"type":15},"viem",{"name":19,"slug":20,"type":15},"API Development","api-development",{"name":22,"slug":23,"type":15},"Ethereum","ethereum",215,"https:\u002F\u002Fgithub.com\u002FUniswap\u002Funiswap-ai","2026-07-17T06:05:37.847482","MIT",35,[],{"repoUrl":25,"stars":24,"forks":28,"topics":31,"description":32},[],"AI tools for building on Uniswap — skills, plugins, and agents for any coding agent.","https:\u002F\u002Fgithub.com\u002FUniswap\u002Funiswap-ai\u002Ftree\u002FHEAD\u002Fpackages\u002Fplugins\u002Funiswap-viem\u002Fskills\u002Fviem-integration","---\nname: viem-integration\ndescription: Integrate EVM blockchains using viem. Use when user says \"read blockchain data\", \"send transaction\", \"interact with smart contract\", \"connect to Ethereum\", \"use viem\", \"use wagmi\", \"wallet integration\", \"viem setup\", or mentions blockchain\u002FEVM development with TypeScript.\nallowed-tools: Read, Write, Edit, Glob, Grep, Bash(npm:*), Bash(npx:*), WebFetch, Task(subagent_type:viem-integration-expert)\nmodel: opus\nlicense: MIT\nmetadata:\n  author: uniswap\n  version: '1.0.0'\n---\n\n# viem Integration\n\nIntegrate EVM blockchains using viem for TypeScript\u002FJavaScript applications.\n\n## Quick Decision Guide\n\n| Building...                | Use This                       |\n| -------------------------- | ------------------------------ |\n| Node.js script\u002Fbackend     | viem with http transport       |\n| React\u002FNext.js frontend     | wagmi hooks (built on viem)    |\n| Real-time event monitoring | viem with webSocket transport  |\n| Browser wallet integration | wagmi or viem custom transport |\n\n## Installation\n\n```bash\n# Core library\nnpm install viem\n\n# For React apps, also install wagmi\nnpm install wagmi viem @tanstack\u002Freact-query\n```\n\n## Core Concepts\n\n### Clients\n\nviem uses two client types:\n\n| Client           | Purpose              | Example Use                              |\n| ---------------- | -------------------- | ---------------------------------------- |\n| **PublicClient** | Read-only operations | Get balances, read contracts, fetch logs |\n| **WalletClient** | Write operations     | Send transactions, sign messages         |\n\n### Transports\n\n| Transport     | Use Case                          |\n| ------------- | --------------------------------- |\n| `http()`      | Standard RPC calls (most common)  |\n| `webSocket()` | Real-time event subscriptions     |\n| `custom()`    | Browser wallets (window.ethereum) |\n\n### Chains\n\nviem includes 50+ chain definitions. Import from `viem\u002Fchains`:\n\n```typescript\nimport { mainnet, arbitrum, optimism, base, polygon } from 'viem\u002Fchains';\n```\n\n---\n\n## Input Validation Rules\n\nBefore interpolating ANY user-provided value into generated TypeScript code:\n\n- **Ethereum addresses**: MUST match `^0x[a-fA-F0-9]{40}$` — use viem's `isAddress()` for validation\n- **Chain IDs**: MUST be from viem's supported chain definitions\n- **Private keys**: MUST NEVER be hardcoded — always use `process.env.PRIVATE_KEY` with runtime validation\n- **RPC URLs**: MUST use `https:\u002F\u002F` or `wss:\u002F\u002F` protocols only\n- **ABI inputs**: Validate types match expected Solidity types before encoding\n\n## Quick Start Examples\n\n### Read Balance\n\n```typescript\nimport { createPublicClient, http, formatEther } from 'viem';\nimport { mainnet } from 'viem\u002Fchains';\n\nconst client = createPublicClient({\n  chain: mainnet,\n  transport: http(),\n});\n\nconst balance = await client.getBalance({\n  address: '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045',\n});\n\nconsole.log(`Balance: ${formatEther(balance)} ETH`);\n```\n\n### Read Contract\n\n```typescript\nimport { createPublicClient, http, parseAbi } from 'viem';\nimport { mainnet } from 'viem\u002Fchains';\n\nconst client = createPublicClient({\n  chain: mainnet,\n  transport: http(),\n});\n\nconst abi = parseAbi([\n  'function balanceOf(address) view returns (uint256)',\n  'function decimals() view returns (uint8)',\n]);\n\nconst balance = await client.readContract({\n  address: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', \u002F\u002F USDC\n  abi,\n  functionName: 'balanceOf',\n  args: ['0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045'],\n});\n```\n\n### Send Transaction\n\n```typescript\nimport { createWalletClient, http, parseEther } from 'viem';\nimport { privateKeyToAccount } from 'viem\u002Faccounts';\nimport { mainnet } from 'viem\u002Fchains';\n\nconst account = privateKeyToAccount(process.env.PRIVATE_KEY as `0x${string}`);\n\nconst client = createWalletClient({\n  account,\n  chain: mainnet,\n  transport: http(),\n});\n\nconst hash = await client.sendTransaction({\n  to: '0x...',\n  value: parseEther('0.1'),\n});\n\nconsole.log(`Transaction hash: ${hash}`);\n```\n\n### Write to Contract\n\n```typescript\nimport { createWalletClient, createPublicClient, http, parseAbi, parseUnits } from 'viem';\nimport { privateKeyToAccount } from 'viem\u002Faccounts';\nimport { mainnet } from 'viem\u002Fchains';\n\nconst account = privateKeyToAccount(process.env.PRIVATE_KEY as `0x${string}`);\n\nconst walletClient = createWalletClient({\n  account,\n  chain: mainnet,\n  transport: http(),\n});\n\nconst publicClient = createPublicClient({\n  chain: mainnet,\n  transport: http(),\n});\n\nconst abi = parseAbi(['function transfer(address to, uint256 amount) returns (bool)']);\n\n\u002F\u002F Simulate first to catch errors\nconst { request } = await publicClient.simulateContract({\n  address: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',\n  abi,\n  functionName: 'transfer',\n  args: ['0x...', parseUnits('100', 6)],\n  account,\n});\n\n\u002F\u002F Execute the transaction\nconst hash = await walletClient.writeContract(request);\n\n\u002F\u002F Wait for confirmation\nconst receipt = await publicClient.waitForTransactionReceipt({ hash });\nconsole.log(`Confirmed in block ${receipt.blockNumber}`);\n```\n\n---\n\n## Reference Documentation\n\nFor deeper coverage of specific topics:\n\n| Topic                            | Reference File                                                 |\n| -------------------------------- | -------------------------------------------------------------- |\n| Client setup, transports, chains | [Clients & Transports](.\u002Freferences\u002Fclients-and-transports.md) |\n| Reading blockchain data          | [Reading Data](.\u002Freferences\u002Freading-data.md)                   |\n| Sending transactions             | [Writing Transactions](.\u002Freferences\u002Fwriting-transactions.md)   |\n| Private keys, HD wallets         | [Accounts & Keys](.\u002Freferences\u002Faccounts-and-keys.md)           |\n| ABI handling, multicall          | [Contract Patterns](.\u002Freferences\u002Fcontract-patterns.md)         |\n| React\u002Fwagmi hooks                | [Wagmi React](.\u002Freferences\u002Fwagmi-react.md)                     |\n\n---\n\n## Related Plugins\n\nOnce you're comfortable with viem basics, the **uniswap-trading** plugin provides comprehensive Uniswap swap integration:\n\n- Uniswap Trading API integration\n- Universal Router SDK usage\n- Token swap implementations\n\nInstall it with: `claude plugin add @uniswap\u002Funiswap-trading`\n\n---\n\n## Common Utilities\n\n### Unit Conversion\n\n```typescript\nimport { parseEther, formatEther, parseUnits, formatUnits } from 'viem';\n\n\u002F\u002F ETH\nparseEther('1.5'); \u002F\u002F 1500000000000000000n (wei)\nformatEther(1500000000000000000n); \u002F\u002F \"1.5\"\n\n\u002F\u002F Tokens (e.g., USDC with 6 decimals)\nparseUnits('100', 6); \u002F\u002F 100000000n\nformatUnits(100000000n, 6); \u002F\u002F \"100\"\n```\n\n### Address Utilities\n\n```typescript\nimport { getAddress, isAddress } from 'viem';\n\nisAddress('0x...'); \u002F\u002F true\u002Ffalse\ngetAddress('0x...'); \u002F\u002F checksummed address\n```\n\n### Hashing\n\n```typescript\nimport { keccak256, toHex } from 'viem';\n\nkeccak256(toHex('hello')); \u002F\u002F 0x1c8aff950685c2ed4bc3174f3472287b56d9517b9c948127319a09a7a36deac8\n```\n\n---\n\n## Error Handling\n\nviem throws typed errors that can be caught and handled:\n\n```typescript\nimport { ContractFunctionExecutionError, InsufficientFundsError } from 'viem'\n\ntry {\n  await client.writeContract(...)\n} catch (error) {\n  if (error instanceof ContractFunctionExecutionError) {\n    console.error('Contract call failed:', error.shortMessage)\n  }\n  if (error instanceof InsufficientFundsError) {\n    console.error('Not enough ETH for gas')\n  }\n}\n```\n\n---\n\n## Resources\n\n- [viem Documentation](https:\u002F\u002Fviem.sh)\n- [wagmi Documentation](https:\u002F\u002Fwagmi.sh)\n- [viem GitHub](https:\u002F\u002Fgithub.com\u002Fwevm\u002Fviem)\n- [wagmi GitHub](https:\u002F\u002Fgithub.com\u002Fwevm\u002Fwagmi)\n",{"data":36,"body":41},{"name":4,"description":6,"allowed-tools":37,"model":38,"license":27,"metadata":39},"Read, Write, Edit, Glob, Grep, Bash(npm:*), Bash(npx:*), WebFetch, Task(subagent_type:viem-integration-expert)","opus",{"author":8,"version":40},"1.0.0",{"type":42,"children":43},"root",[44,52,58,65,145,151,242,248,255,260,330,336,409,415,428,524,528,534,539,634,640,646,1032,1038,1496,1502,2025,2031,2945,2948,2954,2959,3084,3087,3093,3105,3123,3134,3137,3143,3149,3410,3416,3553,3559,3670,3673,3679,3684,3993,3996,4002,4046],{"type":45,"tag":46,"props":47,"children":48},"element","h1",{"id":4},[49],{"type":50,"value":51},"text","viem Integration",{"type":45,"tag":53,"props":54,"children":55},"p",{},[56],{"type":50,"value":57},"Integrate EVM blockchains using viem for TypeScript\u002FJavaScript applications.",{"type":45,"tag":59,"props":60,"children":62},"h2",{"id":61},"quick-decision-guide",[63],{"type":50,"value":64},"Quick Decision Guide",{"type":45,"tag":66,"props":67,"children":68},"table",{},[69,88],{"type":45,"tag":70,"props":71,"children":72},"thead",{},[73],{"type":45,"tag":74,"props":75,"children":76},"tr",{},[77,83],{"type":45,"tag":78,"props":79,"children":80},"th",{},[81],{"type":50,"value":82},"Building...",{"type":45,"tag":78,"props":84,"children":85},{},[86],{"type":50,"value":87},"Use This",{"type":45,"tag":89,"props":90,"children":91},"tbody",{},[92,106,119,132],{"type":45,"tag":74,"props":93,"children":94},{},[95,101],{"type":45,"tag":96,"props":97,"children":98},"td",{},[99],{"type":50,"value":100},"Node.js script\u002Fbackend",{"type":45,"tag":96,"props":102,"children":103},{},[104],{"type":50,"value":105},"viem with http transport",{"type":45,"tag":74,"props":107,"children":108},{},[109,114],{"type":45,"tag":96,"props":110,"children":111},{},[112],{"type":50,"value":113},"React\u002FNext.js frontend",{"type":45,"tag":96,"props":115,"children":116},{},[117],{"type":50,"value":118},"wagmi hooks (built on viem)",{"type":45,"tag":74,"props":120,"children":121},{},[122,127],{"type":45,"tag":96,"props":123,"children":124},{},[125],{"type":50,"value":126},"Real-time event monitoring",{"type":45,"tag":96,"props":128,"children":129},{},[130],{"type":50,"value":131},"viem with webSocket transport",{"type":45,"tag":74,"props":133,"children":134},{},[135,140],{"type":45,"tag":96,"props":136,"children":137},{},[138],{"type":50,"value":139},"Browser wallet integration",{"type":45,"tag":96,"props":141,"children":142},{},[143],{"type":50,"value":144},"wagmi or viem custom transport",{"type":45,"tag":59,"props":146,"children":148},{"id":147},"installation",[149],{"type":50,"value":150},"Installation",{"type":45,"tag":152,"props":153,"children":158},"pre",{"className":154,"code":155,"language":156,"meta":157,"style":157},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","# Core library\nnpm install viem\n\n# For React apps, also install wagmi\nnpm install wagmi viem @tanstack\u002Freact-query\n","bash","",[159],{"type":45,"tag":160,"props":161,"children":162},"code",{"__ignoreMap":157},[163,175,196,206,215],{"type":45,"tag":164,"props":165,"children":168},"span",{"class":166,"line":167},"line",1,[169],{"type":45,"tag":164,"props":170,"children":172},{"style":171},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[173],{"type":50,"value":174},"# Core library\n",{"type":45,"tag":164,"props":176,"children":178},{"class":166,"line":177},2,[179,185,191],{"type":45,"tag":164,"props":180,"children":182},{"style":181},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[183],{"type":50,"value":184},"npm",{"type":45,"tag":164,"props":186,"children":188},{"style":187},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[189],{"type":50,"value":190}," install",{"type":45,"tag":164,"props":192,"children":193},{"style":187},[194],{"type":50,"value":195}," viem\n",{"type":45,"tag":164,"props":197,"children":199},{"class":166,"line":198},3,[200],{"type":45,"tag":164,"props":201,"children":203},{"emptyLinePlaceholder":202},true,[204],{"type":50,"value":205},"\n",{"type":45,"tag":164,"props":207,"children":209},{"class":166,"line":208},4,[210],{"type":45,"tag":164,"props":211,"children":212},{"style":171},[213],{"type":50,"value":214},"# For React apps, also install wagmi\n",{"type":45,"tag":164,"props":216,"children":218},{"class":166,"line":217},5,[219,223,227,232,237],{"type":45,"tag":164,"props":220,"children":221},{"style":181},[222],{"type":50,"value":184},{"type":45,"tag":164,"props":224,"children":225},{"style":187},[226],{"type":50,"value":190},{"type":45,"tag":164,"props":228,"children":229},{"style":187},[230],{"type":50,"value":231}," wagmi",{"type":45,"tag":164,"props":233,"children":234},{"style":187},[235],{"type":50,"value":236}," viem",{"type":45,"tag":164,"props":238,"children":239},{"style":187},[240],{"type":50,"value":241}," @tanstack\u002Freact-query\n",{"type":45,"tag":59,"props":243,"children":245},{"id":244},"core-concepts",[246],{"type":50,"value":247},"Core Concepts",{"type":45,"tag":249,"props":250,"children":252},"h3",{"id":251},"clients",[253],{"type":50,"value":254},"Clients",{"type":45,"tag":53,"props":256,"children":257},{},[258],{"type":50,"value":259},"viem uses two client types:",{"type":45,"tag":66,"props":261,"children":262},{},[263,284],{"type":45,"tag":70,"props":264,"children":265},{},[266],{"type":45,"tag":74,"props":267,"children":268},{},[269,274,279],{"type":45,"tag":78,"props":270,"children":271},{},[272],{"type":50,"value":273},"Client",{"type":45,"tag":78,"props":275,"children":276},{},[277],{"type":50,"value":278},"Purpose",{"type":45,"tag":78,"props":280,"children":281},{},[282],{"type":50,"value":283},"Example Use",{"type":45,"tag":89,"props":285,"children":286},{},[287,309],{"type":45,"tag":74,"props":288,"children":289},{},[290,299,304],{"type":45,"tag":96,"props":291,"children":292},{},[293],{"type":45,"tag":294,"props":295,"children":296},"strong",{},[297],{"type":50,"value":298},"PublicClient",{"type":45,"tag":96,"props":300,"children":301},{},[302],{"type":50,"value":303},"Read-only operations",{"type":45,"tag":96,"props":305,"children":306},{},[307],{"type":50,"value":308},"Get balances, read contracts, fetch logs",{"type":45,"tag":74,"props":310,"children":311},{},[312,320,325],{"type":45,"tag":96,"props":313,"children":314},{},[315],{"type":45,"tag":294,"props":316,"children":317},{},[318],{"type":50,"value":319},"WalletClient",{"type":45,"tag":96,"props":321,"children":322},{},[323],{"type":50,"value":324},"Write operations",{"type":45,"tag":96,"props":326,"children":327},{},[328],{"type":50,"value":329},"Send transactions, sign messages",{"type":45,"tag":249,"props":331,"children":333},{"id":332},"transports",[334],{"type":50,"value":335},"Transports",{"type":45,"tag":66,"props":337,"children":338},{},[339,355],{"type":45,"tag":70,"props":340,"children":341},{},[342],{"type":45,"tag":74,"props":343,"children":344},{},[345,350],{"type":45,"tag":78,"props":346,"children":347},{},[348],{"type":50,"value":349},"Transport",{"type":45,"tag":78,"props":351,"children":352},{},[353],{"type":50,"value":354},"Use Case",{"type":45,"tag":89,"props":356,"children":357},{},[358,375,392],{"type":45,"tag":74,"props":359,"children":360},{},[361,370],{"type":45,"tag":96,"props":362,"children":363},{},[364],{"type":45,"tag":160,"props":365,"children":367},{"className":366},[],[368],{"type":50,"value":369},"http()",{"type":45,"tag":96,"props":371,"children":372},{},[373],{"type":50,"value":374},"Standard RPC calls (most common)",{"type":45,"tag":74,"props":376,"children":377},{},[378,387],{"type":45,"tag":96,"props":379,"children":380},{},[381],{"type":45,"tag":160,"props":382,"children":384},{"className":383},[],[385],{"type":50,"value":386},"webSocket()",{"type":45,"tag":96,"props":388,"children":389},{},[390],{"type":50,"value":391},"Real-time event subscriptions",{"type":45,"tag":74,"props":393,"children":394},{},[395,404],{"type":45,"tag":96,"props":396,"children":397},{},[398],{"type":45,"tag":160,"props":399,"children":401},{"className":400},[],[402],{"type":50,"value":403},"custom()",{"type":45,"tag":96,"props":405,"children":406},{},[407],{"type":50,"value":408},"Browser wallets (window.ethereum)",{"type":45,"tag":249,"props":410,"children":412},{"id":411},"chains",[413],{"type":50,"value":414},"Chains",{"type":45,"tag":53,"props":416,"children":417},{},[418,420,426],{"type":50,"value":419},"viem includes 50+ chain definitions. Import from ",{"type":45,"tag":160,"props":421,"children":423},{"className":422},[],[424],{"type":50,"value":425},"viem\u002Fchains",{"type":50,"value":427},":",{"type":45,"tag":152,"props":429,"children":433},{"className":430,"code":431,"language":432,"meta":157,"style":157},"language-typescript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { mainnet, arbitrum, optimism, base, polygon } from 'viem\u002Fchains';\n","typescript",[434],{"type":45,"tag":160,"props":435,"children":436},{"__ignoreMap":157},[437],{"type":45,"tag":164,"props":438,"children":439},{"class":166,"line":167},[440,446,452,458,463,468,472,477,481,486,490,495,500,505,510,514,519],{"type":45,"tag":164,"props":441,"children":443},{"style":442},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[444],{"type":50,"value":445},"import",{"type":45,"tag":164,"props":447,"children":449},{"style":448},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[450],{"type":50,"value":451}," {",{"type":45,"tag":164,"props":453,"children":455},{"style":454},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[456],{"type":50,"value":457}," mainnet",{"type":45,"tag":164,"props":459,"children":460},{"style":448},[461],{"type":50,"value":462},",",{"type":45,"tag":164,"props":464,"children":465},{"style":454},[466],{"type":50,"value":467}," arbitrum",{"type":45,"tag":164,"props":469,"children":470},{"style":448},[471],{"type":50,"value":462},{"type":45,"tag":164,"props":473,"children":474},{"style":454},[475],{"type":50,"value":476}," optimism",{"type":45,"tag":164,"props":478,"children":479},{"style":448},[480],{"type":50,"value":462},{"type":45,"tag":164,"props":482,"children":483},{"style":454},[484],{"type":50,"value":485}," base",{"type":45,"tag":164,"props":487,"children":488},{"style":448},[489],{"type":50,"value":462},{"type":45,"tag":164,"props":491,"children":492},{"style":454},[493],{"type":50,"value":494}," polygon",{"type":45,"tag":164,"props":496,"children":497},{"style":448},[498],{"type":50,"value":499}," }",{"type":45,"tag":164,"props":501,"children":502},{"style":442},[503],{"type":50,"value":504}," from",{"type":45,"tag":164,"props":506,"children":507},{"style":448},[508],{"type":50,"value":509}," '",{"type":45,"tag":164,"props":511,"children":512},{"style":187},[513],{"type":50,"value":425},{"type":45,"tag":164,"props":515,"children":516},{"style":448},[517],{"type":50,"value":518},"'",{"type":45,"tag":164,"props":520,"children":521},{"style":448},[522],{"type":50,"value":523},";\n",{"type":45,"tag":525,"props":526,"children":527},"hr",{},[],{"type":45,"tag":59,"props":529,"children":531},{"id":530},"input-validation-rules",[532],{"type":50,"value":533},"Input Validation Rules",{"type":45,"tag":53,"props":535,"children":536},{},[537],{"type":50,"value":538},"Before interpolating ANY user-provided value into generated TypeScript code:",{"type":45,"tag":540,"props":541,"children":542},"ul",{},[543,570,580,598,624],{"type":45,"tag":544,"props":545,"children":546},"li",{},[547,552,554,560,562,568],{"type":45,"tag":294,"props":548,"children":549},{},[550],{"type":50,"value":551},"Ethereum addresses",{"type":50,"value":553},": MUST match ",{"type":45,"tag":160,"props":555,"children":557},{"className":556},[],[558],{"type":50,"value":559},"^0x[a-fA-F0-9]{40}$",{"type":50,"value":561}," — use viem's ",{"type":45,"tag":160,"props":563,"children":565},{"className":564},[],[566],{"type":50,"value":567},"isAddress()",{"type":50,"value":569}," for validation",{"type":45,"tag":544,"props":571,"children":572},{},[573,578],{"type":45,"tag":294,"props":574,"children":575},{},[576],{"type":50,"value":577},"Chain IDs",{"type":50,"value":579},": MUST be from viem's supported chain definitions",{"type":45,"tag":544,"props":581,"children":582},{},[583,588,590,596],{"type":45,"tag":294,"props":584,"children":585},{},[586],{"type":50,"value":587},"Private keys",{"type":50,"value":589},": MUST NEVER be hardcoded — always use ",{"type":45,"tag":160,"props":591,"children":593},{"className":592},[],[594],{"type":50,"value":595},"process.env.PRIVATE_KEY",{"type":50,"value":597}," with runtime validation",{"type":45,"tag":544,"props":599,"children":600},{},[601,606,608,614,616,622],{"type":45,"tag":294,"props":602,"children":603},{},[604],{"type":50,"value":605},"RPC URLs",{"type":50,"value":607},": MUST use ",{"type":45,"tag":160,"props":609,"children":611},{"className":610},[],[612],{"type":50,"value":613},"https:\u002F\u002F",{"type":50,"value":615}," or ",{"type":45,"tag":160,"props":617,"children":619},{"className":618},[],[620],{"type":50,"value":621},"wss:\u002F\u002F",{"type":50,"value":623}," protocols only",{"type":45,"tag":544,"props":625,"children":626},{},[627,632],{"type":45,"tag":294,"props":628,"children":629},{},[630],{"type":50,"value":631},"ABI inputs",{"type":50,"value":633},": Validate types match expected Solidity types before encoding",{"type":45,"tag":59,"props":635,"children":637},{"id":636},"quick-start-examples",[638],{"type":50,"value":639},"Quick Start Examples",{"type":45,"tag":249,"props":641,"children":643},{"id":642},"read-balance",[644],{"type":50,"value":645},"Read Balance",{"type":45,"tag":152,"props":647,"children":649},{"className":430,"code":648,"language":432,"meta":157,"style":157},"import { createPublicClient, http, formatEther } from 'viem';\nimport { mainnet } from 'viem\u002Fchains';\n\nconst client = createPublicClient({\n  chain: mainnet,\n  transport: http(),\n});\n\nconst balance = await client.getBalance({\n  address: '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045',\n});\n\nconsole.log(`Balance: ${formatEther(balance)} ETH`);\n",[650],{"type":45,"tag":160,"props":651,"children":652},{"__ignoreMap":157},[653,711,750,757,791,813,839,857,865,910,940,956,964],{"type":45,"tag":164,"props":654,"children":655},{"class":166,"line":167},[656,660,664,669,673,678,682,687,691,695,699,703,707],{"type":45,"tag":164,"props":657,"children":658},{"style":442},[659],{"type":50,"value":445},{"type":45,"tag":164,"props":661,"children":662},{"style":448},[663],{"type":50,"value":451},{"type":45,"tag":164,"props":665,"children":666},{"style":454},[667],{"type":50,"value":668}," createPublicClient",{"type":45,"tag":164,"props":670,"children":671},{"style":448},[672],{"type":50,"value":462},{"type":45,"tag":164,"props":674,"children":675},{"style":454},[676],{"type":50,"value":677}," http",{"type":45,"tag":164,"props":679,"children":680},{"style":448},[681],{"type":50,"value":462},{"type":45,"tag":164,"props":683,"children":684},{"style":454},[685],{"type":50,"value":686}," formatEther",{"type":45,"tag":164,"props":688,"children":689},{"style":448},[690],{"type":50,"value":499},{"type":45,"tag":164,"props":692,"children":693},{"style":442},[694],{"type":50,"value":504},{"type":45,"tag":164,"props":696,"children":697},{"style":448},[698],{"type":50,"value":509},{"type":45,"tag":164,"props":700,"children":701},{"style":187},[702],{"type":50,"value":17},{"type":45,"tag":164,"props":704,"children":705},{"style":448},[706],{"type":50,"value":518},{"type":45,"tag":164,"props":708,"children":709},{"style":448},[710],{"type":50,"value":523},{"type":45,"tag":164,"props":712,"children":713},{"class":166,"line":177},[714,718,722,726,730,734,738,742,746],{"type":45,"tag":164,"props":715,"children":716},{"style":442},[717],{"type":50,"value":445},{"type":45,"tag":164,"props":719,"children":720},{"style":448},[721],{"type":50,"value":451},{"type":45,"tag":164,"props":723,"children":724},{"style":454},[725],{"type":50,"value":457},{"type":45,"tag":164,"props":727,"children":728},{"style":448},[729],{"type":50,"value":499},{"type":45,"tag":164,"props":731,"children":732},{"style":442},[733],{"type":50,"value":504},{"type":45,"tag":164,"props":735,"children":736},{"style":448},[737],{"type":50,"value":509},{"type":45,"tag":164,"props":739,"children":740},{"style":187},[741],{"type":50,"value":425},{"type":45,"tag":164,"props":743,"children":744},{"style":448},[745],{"type":50,"value":518},{"type":45,"tag":164,"props":747,"children":748},{"style":448},[749],{"type":50,"value":523},{"type":45,"tag":164,"props":751,"children":752},{"class":166,"line":198},[753],{"type":45,"tag":164,"props":754,"children":755},{"emptyLinePlaceholder":202},[756],{"type":50,"value":205},{"type":45,"tag":164,"props":758,"children":759},{"class":166,"line":208},[760,766,771,776,781,786],{"type":45,"tag":164,"props":761,"children":763},{"style":762},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[764],{"type":50,"value":765},"const",{"type":45,"tag":164,"props":767,"children":768},{"style":454},[769],{"type":50,"value":770}," client ",{"type":45,"tag":164,"props":772,"children":773},{"style":448},[774],{"type":50,"value":775},"=",{"type":45,"tag":164,"props":777,"children":779},{"style":778},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[780],{"type":50,"value":668},{"type":45,"tag":164,"props":782,"children":783},{"style":454},[784],{"type":50,"value":785},"(",{"type":45,"tag":164,"props":787,"children":788},{"style":448},[789],{"type":50,"value":790},"{\n",{"type":45,"tag":164,"props":792,"children":793},{"class":166,"line":217},[794,800,804,808],{"type":45,"tag":164,"props":795,"children":797},{"style":796},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[798],{"type":50,"value":799},"  chain",{"type":45,"tag":164,"props":801,"children":802},{"style":448},[803],{"type":50,"value":427},{"type":45,"tag":164,"props":805,"children":806},{"style":454},[807],{"type":50,"value":457},{"type":45,"tag":164,"props":809,"children":810},{"style":448},[811],{"type":50,"value":812},",\n",{"type":45,"tag":164,"props":814,"children":816},{"class":166,"line":815},6,[817,822,826,830,835],{"type":45,"tag":164,"props":818,"children":819},{"style":796},[820],{"type":50,"value":821},"  transport",{"type":45,"tag":164,"props":823,"children":824},{"style":448},[825],{"type":50,"value":427},{"type":45,"tag":164,"props":827,"children":828},{"style":778},[829],{"type":50,"value":677},{"type":45,"tag":164,"props":831,"children":832},{"style":454},[833],{"type":50,"value":834},"()",{"type":45,"tag":164,"props":836,"children":837},{"style":448},[838],{"type":50,"value":812},{"type":45,"tag":164,"props":840,"children":842},{"class":166,"line":841},7,[843,848,853],{"type":45,"tag":164,"props":844,"children":845},{"style":448},[846],{"type":50,"value":847},"}",{"type":45,"tag":164,"props":849,"children":850},{"style":454},[851],{"type":50,"value":852},")",{"type":45,"tag":164,"props":854,"children":855},{"style":448},[856],{"type":50,"value":523},{"type":45,"tag":164,"props":858,"children":860},{"class":166,"line":859},8,[861],{"type":45,"tag":164,"props":862,"children":863},{"emptyLinePlaceholder":202},[864],{"type":50,"value":205},{"type":45,"tag":164,"props":866,"children":868},{"class":166,"line":867},9,[869,873,878,882,887,892,897,902,906],{"type":45,"tag":164,"props":870,"children":871},{"style":762},[872],{"type":50,"value":765},{"type":45,"tag":164,"props":874,"children":875},{"style":454},[876],{"type":50,"value":877}," balance ",{"type":45,"tag":164,"props":879,"children":880},{"style":448},[881],{"type":50,"value":775},{"type":45,"tag":164,"props":883,"children":884},{"style":442},[885],{"type":50,"value":886}," await",{"type":45,"tag":164,"props":888,"children":889},{"style":454},[890],{"type":50,"value":891}," client",{"type":45,"tag":164,"props":893,"children":894},{"style":448},[895],{"type":50,"value":896},".",{"type":45,"tag":164,"props":898,"children":899},{"style":778},[900],{"type":50,"value":901},"getBalance",{"type":45,"tag":164,"props":903,"children":904},{"style":454},[905],{"type":50,"value":785},{"type":45,"tag":164,"props":907,"children":908},{"style":448},[909],{"type":50,"value":790},{"type":45,"tag":164,"props":911,"children":913},{"class":166,"line":912},10,[914,919,923,927,932,936],{"type":45,"tag":164,"props":915,"children":916},{"style":796},[917],{"type":50,"value":918},"  address",{"type":45,"tag":164,"props":920,"children":921},{"style":448},[922],{"type":50,"value":427},{"type":45,"tag":164,"props":924,"children":925},{"style":448},[926],{"type":50,"value":509},{"type":45,"tag":164,"props":928,"children":929},{"style":187},[930],{"type":50,"value":931},"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",{"type":45,"tag":164,"props":933,"children":934},{"style":448},[935],{"type":50,"value":518},{"type":45,"tag":164,"props":937,"children":938},{"style":448},[939],{"type":50,"value":812},{"type":45,"tag":164,"props":941,"children":943},{"class":166,"line":942},11,[944,948,952],{"type":45,"tag":164,"props":945,"children":946},{"style":448},[947],{"type":50,"value":847},{"type":45,"tag":164,"props":949,"children":950},{"style":454},[951],{"type":50,"value":852},{"type":45,"tag":164,"props":953,"children":954},{"style":448},[955],{"type":50,"value":523},{"type":45,"tag":164,"props":957,"children":959},{"class":166,"line":958},12,[960],{"type":45,"tag":164,"props":961,"children":962},{"emptyLinePlaceholder":202},[963],{"type":50,"value":205},{"type":45,"tag":164,"props":965,"children":967},{"class":166,"line":966},13,[968,973,977,982,986,991,996,1001,1006,1011,1015,1020,1024,1028],{"type":45,"tag":164,"props":969,"children":970},{"style":454},[971],{"type":50,"value":972},"console",{"type":45,"tag":164,"props":974,"children":975},{"style":448},[976],{"type":50,"value":896},{"type":45,"tag":164,"props":978,"children":979},{"style":778},[980],{"type":50,"value":981},"log",{"type":45,"tag":164,"props":983,"children":984},{"style":454},[985],{"type":50,"value":785},{"type":45,"tag":164,"props":987,"children":988},{"style":448},[989],{"type":50,"value":990},"`",{"type":45,"tag":164,"props":992,"children":993},{"style":187},[994],{"type":50,"value":995},"Balance: ",{"type":45,"tag":164,"props":997,"children":998},{"style":448},[999],{"type":50,"value":1000},"${",{"type":45,"tag":164,"props":1002,"children":1003},{"style":778},[1004],{"type":50,"value":1005},"formatEther",{"type":45,"tag":164,"props":1007,"children":1008},{"style":454},[1009],{"type":50,"value":1010},"(balance)",{"type":45,"tag":164,"props":1012,"children":1013},{"style":448},[1014],{"type":50,"value":847},{"type":45,"tag":164,"props":1016,"children":1017},{"style":187},[1018],{"type":50,"value":1019}," ETH",{"type":45,"tag":164,"props":1021,"children":1022},{"style":448},[1023],{"type":50,"value":990},{"type":45,"tag":164,"props":1025,"children":1026},{"style":454},[1027],{"type":50,"value":852},{"type":45,"tag":164,"props":1029,"children":1030},{"style":448},[1031],{"type":50,"value":523},{"type":45,"tag":249,"props":1033,"children":1035},{"id":1034},"read-contract",[1036],{"type":50,"value":1037},"Read Contract",{"type":45,"tag":152,"props":1039,"children":1041},{"className":430,"code":1040,"language":432,"meta":157,"style":157},"import { createPublicClient, http, parseAbi } from 'viem';\nimport { mainnet } from 'viem\u002Fchains';\n\nconst client = createPublicClient({\n  chain: mainnet,\n  transport: http(),\n});\n\nconst abi = parseAbi([\n  'function balanceOf(address) view returns (uint256)',\n  'function decimals() view returns (uint8)',\n]);\n\nconst balance = await client.readContract({\n  address: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', \u002F\u002F USDC\n  abi,\n  functionName: 'balanceOf',\n  args: ['0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045'],\n});\n",[1042],{"type":45,"tag":160,"props":1043,"children":1044},{"__ignoreMap":157},[1045,1101,1140,1147,1174,1193,1216,1231,1238,1263,1284,1304,1316,1323,1364,1398,1411,1441,1480],{"type":45,"tag":164,"props":1046,"children":1047},{"class":166,"line":167},[1048,1052,1056,1060,1064,1068,1072,1077,1081,1085,1089,1093,1097],{"type":45,"tag":164,"props":1049,"children":1050},{"style":442},[1051],{"type":50,"value":445},{"type":45,"tag":164,"props":1053,"children":1054},{"style":448},[1055],{"type":50,"value":451},{"type":45,"tag":164,"props":1057,"children":1058},{"style":454},[1059],{"type":50,"value":668},{"type":45,"tag":164,"props":1061,"children":1062},{"style":448},[1063],{"type":50,"value":462},{"type":45,"tag":164,"props":1065,"children":1066},{"style":454},[1067],{"type":50,"value":677},{"type":45,"tag":164,"props":1069,"children":1070},{"style":448},[1071],{"type":50,"value":462},{"type":45,"tag":164,"props":1073,"children":1074},{"style":454},[1075],{"type":50,"value":1076}," parseAbi",{"type":45,"tag":164,"props":1078,"children":1079},{"style":448},[1080],{"type":50,"value":499},{"type":45,"tag":164,"props":1082,"children":1083},{"style":442},[1084],{"type":50,"value":504},{"type":45,"tag":164,"props":1086,"children":1087},{"style":448},[1088],{"type":50,"value":509},{"type":45,"tag":164,"props":1090,"children":1091},{"style":187},[1092],{"type":50,"value":17},{"type":45,"tag":164,"props":1094,"children":1095},{"style":448},[1096],{"type":50,"value":518},{"type":45,"tag":164,"props":1098,"children":1099},{"style":448},[1100],{"type":50,"value":523},{"type":45,"tag":164,"props":1102,"children":1103},{"class":166,"line":177},[1104,1108,1112,1116,1120,1124,1128,1132,1136],{"type":45,"tag":164,"props":1105,"children":1106},{"style":442},[1107],{"type":50,"value":445},{"type":45,"tag":164,"props":1109,"children":1110},{"style":448},[1111],{"type":50,"value":451},{"type":45,"tag":164,"props":1113,"children":1114},{"style":454},[1115],{"type":50,"value":457},{"type":45,"tag":164,"props":1117,"children":1118},{"style":448},[1119],{"type":50,"value":499},{"type":45,"tag":164,"props":1121,"children":1122},{"style":442},[1123],{"type":50,"value":504},{"type":45,"tag":164,"props":1125,"children":1126},{"style":448},[1127],{"type":50,"value":509},{"type":45,"tag":164,"props":1129,"children":1130},{"style":187},[1131],{"type":50,"value":425},{"type":45,"tag":164,"props":1133,"children":1134},{"style":448},[1135],{"type":50,"value":518},{"type":45,"tag":164,"props":1137,"children":1138},{"style":448},[1139],{"type":50,"value":523},{"type":45,"tag":164,"props":1141,"children":1142},{"class":166,"line":198},[1143],{"type":45,"tag":164,"props":1144,"children":1145},{"emptyLinePlaceholder":202},[1146],{"type":50,"value":205},{"type":45,"tag":164,"props":1148,"children":1149},{"class":166,"line":208},[1150,1154,1158,1162,1166,1170],{"type":45,"tag":164,"props":1151,"children":1152},{"style":762},[1153],{"type":50,"value":765},{"type":45,"tag":164,"props":1155,"children":1156},{"style":454},[1157],{"type":50,"value":770},{"type":45,"tag":164,"props":1159,"children":1160},{"style":448},[1161],{"type":50,"value":775},{"type":45,"tag":164,"props":1163,"children":1164},{"style":778},[1165],{"type":50,"value":668},{"type":45,"tag":164,"props":1167,"children":1168},{"style":454},[1169],{"type":50,"value":785},{"type":45,"tag":164,"props":1171,"children":1172},{"style":448},[1173],{"type":50,"value":790},{"type":45,"tag":164,"props":1175,"children":1176},{"class":166,"line":217},[1177,1181,1185,1189],{"type":45,"tag":164,"props":1178,"children":1179},{"style":796},[1180],{"type":50,"value":799},{"type":45,"tag":164,"props":1182,"children":1183},{"style":448},[1184],{"type":50,"value":427},{"type":45,"tag":164,"props":1186,"children":1187},{"style":454},[1188],{"type":50,"value":457},{"type":45,"tag":164,"props":1190,"children":1191},{"style":448},[1192],{"type":50,"value":812},{"type":45,"tag":164,"props":1194,"children":1195},{"class":166,"line":815},[1196,1200,1204,1208,1212],{"type":45,"tag":164,"props":1197,"children":1198},{"style":796},[1199],{"type":50,"value":821},{"type":45,"tag":164,"props":1201,"children":1202},{"style":448},[1203],{"type":50,"value":427},{"type":45,"tag":164,"props":1205,"children":1206},{"style":778},[1207],{"type":50,"value":677},{"type":45,"tag":164,"props":1209,"children":1210},{"style":454},[1211],{"type":50,"value":834},{"type":45,"tag":164,"props":1213,"children":1214},{"style":448},[1215],{"type":50,"value":812},{"type":45,"tag":164,"props":1217,"children":1218},{"class":166,"line":841},[1219,1223,1227],{"type":45,"tag":164,"props":1220,"children":1221},{"style":448},[1222],{"type":50,"value":847},{"type":45,"tag":164,"props":1224,"children":1225},{"style":454},[1226],{"type":50,"value":852},{"type":45,"tag":164,"props":1228,"children":1229},{"style":448},[1230],{"type":50,"value":523},{"type":45,"tag":164,"props":1232,"children":1233},{"class":166,"line":859},[1234],{"type":45,"tag":164,"props":1235,"children":1236},{"emptyLinePlaceholder":202},[1237],{"type":50,"value":205},{"type":45,"tag":164,"props":1239,"children":1240},{"class":166,"line":867},[1241,1245,1250,1254,1258],{"type":45,"tag":164,"props":1242,"children":1243},{"style":762},[1244],{"type":50,"value":765},{"type":45,"tag":164,"props":1246,"children":1247},{"style":454},[1248],{"type":50,"value":1249}," abi ",{"type":45,"tag":164,"props":1251,"children":1252},{"style":448},[1253],{"type":50,"value":775},{"type":45,"tag":164,"props":1255,"children":1256},{"style":778},[1257],{"type":50,"value":1076},{"type":45,"tag":164,"props":1259,"children":1260},{"style":454},[1261],{"type":50,"value":1262},"([\n",{"type":45,"tag":164,"props":1264,"children":1265},{"class":166,"line":912},[1266,1271,1276,1280],{"type":45,"tag":164,"props":1267,"children":1268},{"style":448},[1269],{"type":50,"value":1270},"  '",{"type":45,"tag":164,"props":1272,"children":1273},{"style":187},[1274],{"type":50,"value":1275},"function balanceOf(address) view returns (uint256)",{"type":45,"tag":164,"props":1277,"children":1278},{"style":448},[1279],{"type":50,"value":518},{"type":45,"tag":164,"props":1281,"children":1282},{"style":448},[1283],{"type":50,"value":812},{"type":45,"tag":164,"props":1285,"children":1286},{"class":166,"line":942},[1287,1291,1296,1300],{"type":45,"tag":164,"props":1288,"children":1289},{"style":448},[1290],{"type":50,"value":1270},{"type":45,"tag":164,"props":1292,"children":1293},{"style":187},[1294],{"type":50,"value":1295},"function decimals() view returns (uint8)",{"type":45,"tag":164,"props":1297,"children":1298},{"style":448},[1299],{"type":50,"value":518},{"type":45,"tag":164,"props":1301,"children":1302},{"style":448},[1303],{"type":50,"value":812},{"type":45,"tag":164,"props":1305,"children":1306},{"class":166,"line":958},[1307,1312],{"type":45,"tag":164,"props":1308,"children":1309},{"style":454},[1310],{"type":50,"value":1311},"])",{"type":45,"tag":164,"props":1313,"children":1314},{"style":448},[1315],{"type":50,"value":523},{"type":45,"tag":164,"props":1317,"children":1318},{"class":166,"line":966},[1319],{"type":45,"tag":164,"props":1320,"children":1321},{"emptyLinePlaceholder":202},[1322],{"type":50,"value":205},{"type":45,"tag":164,"props":1324,"children":1326},{"class":166,"line":1325},14,[1327,1331,1335,1339,1343,1347,1351,1356,1360],{"type":45,"tag":164,"props":1328,"children":1329},{"style":762},[1330],{"type":50,"value":765},{"type":45,"tag":164,"props":1332,"children":1333},{"style":454},[1334],{"type":50,"value":877},{"type":45,"tag":164,"props":1336,"children":1337},{"style":448},[1338],{"type":50,"value":775},{"type":45,"tag":164,"props":1340,"children":1341},{"style":442},[1342],{"type":50,"value":886},{"type":45,"tag":164,"props":1344,"children":1345},{"style":454},[1346],{"type":50,"value":891},{"type":45,"tag":164,"props":1348,"children":1349},{"style":448},[1350],{"type":50,"value":896},{"type":45,"tag":164,"props":1352,"children":1353},{"style":778},[1354],{"type":50,"value":1355},"readContract",{"type":45,"tag":164,"props":1357,"children":1358},{"style":454},[1359],{"type":50,"value":785},{"type":45,"tag":164,"props":1361,"children":1362},{"style":448},[1363],{"type":50,"value":790},{"type":45,"tag":164,"props":1365,"children":1367},{"class":166,"line":1366},15,[1368,1372,1376,1380,1385,1389,1393],{"type":45,"tag":164,"props":1369,"children":1370},{"style":796},[1371],{"type":50,"value":918},{"type":45,"tag":164,"props":1373,"children":1374},{"style":448},[1375],{"type":50,"value":427},{"type":45,"tag":164,"props":1377,"children":1378},{"style":448},[1379],{"type":50,"value":509},{"type":45,"tag":164,"props":1381,"children":1382},{"style":187},[1383],{"type":50,"value":1384},"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",{"type":45,"tag":164,"props":1386,"children":1387},{"style":448},[1388],{"type":50,"value":518},{"type":45,"tag":164,"props":1390,"children":1391},{"style":448},[1392],{"type":50,"value":462},{"type":45,"tag":164,"props":1394,"children":1395},{"style":171},[1396],{"type":50,"value":1397}," \u002F\u002F USDC\n",{"type":45,"tag":164,"props":1399,"children":1401},{"class":166,"line":1400},16,[1402,1407],{"type":45,"tag":164,"props":1403,"children":1404},{"style":454},[1405],{"type":50,"value":1406},"  abi",{"type":45,"tag":164,"props":1408,"children":1409},{"style":448},[1410],{"type":50,"value":812},{"type":45,"tag":164,"props":1412,"children":1414},{"class":166,"line":1413},17,[1415,1420,1424,1428,1433,1437],{"type":45,"tag":164,"props":1416,"children":1417},{"style":796},[1418],{"type":50,"value":1419},"  functionName",{"type":45,"tag":164,"props":1421,"children":1422},{"style":448},[1423],{"type":50,"value":427},{"type":45,"tag":164,"props":1425,"children":1426},{"style":448},[1427],{"type":50,"value":509},{"type":45,"tag":164,"props":1429,"children":1430},{"style":187},[1431],{"type":50,"value":1432},"balanceOf",{"type":45,"tag":164,"props":1434,"children":1435},{"style":448},[1436],{"type":50,"value":518},{"type":45,"tag":164,"props":1438,"children":1439},{"style":448},[1440],{"type":50,"value":812},{"type":45,"tag":164,"props":1442,"children":1444},{"class":166,"line":1443},18,[1445,1450,1454,1459,1463,1467,1471,1476],{"type":45,"tag":164,"props":1446,"children":1447},{"style":796},[1448],{"type":50,"value":1449},"  args",{"type":45,"tag":164,"props":1451,"children":1452},{"style":448},[1453],{"type":50,"value":427},{"type":45,"tag":164,"props":1455,"children":1456},{"style":454},[1457],{"type":50,"value":1458}," [",{"type":45,"tag":164,"props":1460,"children":1461},{"style":448},[1462],{"type":50,"value":518},{"type":45,"tag":164,"props":1464,"children":1465},{"style":187},[1466],{"type":50,"value":931},{"type":45,"tag":164,"props":1468,"children":1469},{"style":448},[1470],{"type":50,"value":518},{"type":45,"tag":164,"props":1472,"children":1473},{"style":454},[1474],{"type":50,"value":1475},"]",{"type":45,"tag":164,"props":1477,"children":1478},{"style":448},[1479],{"type":50,"value":812},{"type":45,"tag":164,"props":1481,"children":1483},{"class":166,"line":1482},19,[1484,1488,1492],{"type":45,"tag":164,"props":1485,"children":1486},{"style":448},[1487],{"type":50,"value":847},{"type":45,"tag":164,"props":1489,"children":1490},{"style":454},[1491],{"type":50,"value":852},{"type":45,"tag":164,"props":1493,"children":1494},{"style":448},[1495],{"type":50,"value":523},{"type":45,"tag":249,"props":1497,"children":1499},{"id":1498},"send-transaction",[1500],{"type":50,"value":1501},"Send Transaction",{"type":45,"tag":152,"props":1503,"children":1505},{"className":430,"code":1504,"language":432,"meta":157,"style":157},"import { createWalletClient, http, parseEther } from 'viem';\nimport { privateKeyToAccount } from 'viem\u002Faccounts';\nimport { mainnet } from 'viem\u002Fchains';\n\nconst account = privateKeyToAccount(process.env.PRIVATE_KEY as `0x${string}`);\n\nconst client = createWalletClient({\n  account,\n  chain: mainnet,\n  transport: http(),\n});\n\nconst hash = await client.sendTransaction({\n  to: '0x...',\n  value: parseEther('0.1'),\n});\n\nconsole.log(`Transaction hash: ${hash}`);\n",[1506],{"type":45,"tag":160,"props":1507,"children":1508},{"__ignoreMap":157},[1509,1566,1607,1646,1653,1733,1740,1767,1779,1798,1821,1836,1843,1884,1913,1954,1969,1976],{"type":45,"tag":164,"props":1510,"children":1511},{"class":166,"line":167},[1512,1516,1520,1525,1529,1533,1537,1542,1546,1550,1554,1558,1562],{"type":45,"tag":164,"props":1513,"children":1514},{"style":442},[1515],{"type":50,"value":445},{"type":45,"tag":164,"props":1517,"children":1518},{"style":448},[1519],{"type":50,"value":451},{"type":45,"tag":164,"props":1521,"children":1522},{"style":454},[1523],{"type":50,"value":1524}," createWalletClient",{"type":45,"tag":164,"props":1526,"children":1527},{"style":448},[1528],{"type":50,"value":462},{"type":45,"tag":164,"props":1530,"children":1531},{"style":454},[1532],{"type":50,"value":677},{"type":45,"tag":164,"props":1534,"children":1535},{"style":448},[1536],{"type":50,"value":462},{"type":45,"tag":164,"props":1538,"children":1539},{"style":454},[1540],{"type":50,"value":1541}," parseEther",{"type":45,"tag":164,"props":1543,"children":1544},{"style":448},[1545],{"type":50,"value":499},{"type":45,"tag":164,"props":1547,"children":1548},{"style":442},[1549],{"type":50,"value":504},{"type":45,"tag":164,"props":1551,"children":1552},{"style":448},[1553],{"type":50,"value":509},{"type":45,"tag":164,"props":1555,"children":1556},{"style":187},[1557],{"type":50,"value":17},{"type":45,"tag":164,"props":1559,"children":1560},{"style":448},[1561],{"type":50,"value":518},{"type":45,"tag":164,"props":1563,"children":1564},{"style":448},[1565],{"type":50,"value":523},{"type":45,"tag":164,"props":1567,"children":1568},{"class":166,"line":177},[1569,1573,1577,1582,1586,1590,1594,1599,1603],{"type":45,"tag":164,"props":1570,"children":1571},{"style":442},[1572],{"type":50,"value":445},{"type":45,"tag":164,"props":1574,"children":1575},{"style":448},[1576],{"type":50,"value":451},{"type":45,"tag":164,"props":1578,"children":1579},{"style":454},[1580],{"type":50,"value":1581}," privateKeyToAccount",{"type":45,"tag":164,"props":1583,"children":1584},{"style":448},[1585],{"type":50,"value":499},{"type":45,"tag":164,"props":1587,"children":1588},{"style":442},[1589],{"type":50,"value":504},{"type":45,"tag":164,"props":1591,"children":1592},{"style":448},[1593],{"type":50,"value":509},{"type":45,"tag":164,"props":1595,"children":1596},{"style":187},[1597],{"type":50,"value":1598},"viem\u002Faccounts",{"type":45,"tag":164,"props":1600,"children":1601},{"style":448},[1602],{"type":50,"value":518},{"type":45,"tag":164,"props":1604,"children":1605},{"style":448},[1606],{"type":50,"value":523},{"type":45,"tag":164,"props":1608,"children":1609},{"class":166,"line":198},[1610,1614,1618,1622,1626,1630,1634,1638,1642],{"type":45,"tag":164,"props":1611,"children":1612},{"style":442},[1613],{"type":50,"value":445},{"type":45,"tag":164,"props":1615,"children":1616},{"style":448},[1617],{"type":50,"value":451},{"type":45,"tag":164,"props":1619,"children":1620},{"style":454},[1621],{"type":50,"value":457},{"type":45,"tag":164,"props":1623,"children":1624},{"style":448},[1625],{"type":50,"value":499},{"type":45,"tag":164,"props":1627,"children":1628},{"style":442},[1629],{"type":50,"value":504},{"type":45,"tag":164,"props":1631,"children":1632},{"style":448},[1633],{"type":50,"value":509},{"type":45,"tag":164,"props":1635,"children":1636},{"style":187},[1637],{"type":50,"value":425},{"type":45,"tag":164,"props":1639,"children":1640},{"style":448},[1641],{"type":50,"value":518},{"type":45,"tag":164,"props":1643,"children":1644},{"style":448},[1645],{"type":50,"value":523},{"type":45,"tag":164,"props":1647,"children":1648},{"class":166,"line":208},[1649],{"type":45,"tag":164,"props":1650,"children":1651},{"emptyLinePlaceholder":202},[1652],{"type":50,"value":205},{"type":45,"tag":164,"props":1654,"children":1655},{"class":166,"line":217},[1656,1660,1665,1669,1673,1678,1682,1687,1691,1696,1701,1706,1711,1715,1720,1725,1729],{"type":45,"tag":164,"props":1657,"children":1658},{"style":762},[1659],{"type":50,"value":765},{"type":45,"tag":164,"props":1661,"children":1662},{"style":454},[1663],{"type":50,"value":1664}," account ",{"type":45,"tag":164,"props":1666,"children":1667},{"style":448},[1668],{"type":50,"value":775},{"type":45,"tag":164,"props":1670,"children":1671},{"style":778},[1672],{"type":50,"value":1581},{"type":45,"tag":164,"props":1674,"children":1675},{"style":454},[1676],{"type":50,"value":1677},"(process",{"type":45,"tag":164,"props":1679,"children":1680},{"style":448},[1681],{"type":50,"value":896},{"type":45,"tag":164,"props":1683,"children":1684},{"style":454},[1685],{"type":50,"value":1686},"env",{"type":45,"tag":164,"props":1688,"children":1689},{"style":448},[1690],{"type":50,"value":896},{"type":45,"tag":164,"props":1692,"children":1693},{"style":454},[1694],{"type":50,"value":1695},"PRIVATE_KEY ",{"type":45,"tag":164,"props":1697,"children":1698},{"style":442},[1699],{"type":50,"value":1700},"as",{"type":45,"tag":164,"props":1702,"children":1703},{"style":448},[1704],{"type":50,"value":1705}," `",{"type":45,"tag":164,"props":1707,"children":1708},{"style":187},[1709],{"type":50,"value":1710},"0x",{"type":45,"tag":164,"props":1712,"children":1713},{"style":448},[1714],{"type":50,"value":1000},{"type":45,"tag":164,"props":1716,"children":1717},{"style":181},[1718],{"type":50,"value":1719},"string",{"type":45,"tag":164,"props":1721,"children":1722},{"style":448},[1723],{"type":50,"value":1724},"}`",{"type":45,"tag":164,"props":1726,"children":1727},{"style":454},[1728],{"type":50,"value":852},{"type":45,"tag":164,"props":1730,"children":1731},{"style":448},[1732],{"type":50,"value":523},{"type":45,"tag":164,"props":1734,"children":1735},{"class":166,"line":815},[1736],{"type":45,"tag":164,"props":1737,"children":1738},{"emptyLinePlaceholder":202},[1739],{"type":50,"value":205},{"type":45,"tag":164,"props":1741,"children":1742},{"class":166,"line":841},[1743,1747,1751,1755,1759,1763],{"type":45,"tag":164,"props":1744,"children":1745},{"style":762},[1746],{"type":50,"value":765},{"type":45,"tag":164,"props":1748,"children":1749},{"style":454},[1750],{"type":50,"value":770},{"type":45,"tag":164,"props":1752,"children":1753},{"style":448},[1754],{"type":50,"value":775},{"type":45,"tag":164,"props":1756,"children":1757},{"style":778},[1758],{"type":50,"value":1524},{"type":45,"tag":164,"props":1760,"children":1761},{"style":454},[1762],{"type":50,"value":785},{"type":45,"tag":164,"props":1764,"children":1765},{"style":448},[1766],{"type":50,"value":790},{"type":45,"tag":164,"props":1768,"children":1769},{"class":166,"line":859},[1770,1775],{"type":45,"tag":164,"props":1771,"children":1772},{"style":454},[1773],{"type":50,"value":1774},"  account",{"type":45,"tag":164,"props":1776,"children":1777},{"style":448},[1778],{"type":50,"value":812},{"type":45,"tag":164,"props":1780,"children":1781},{"class":166,"line":867},[1782,1786,1790,1794],{"type":45,"tag":164,"props":1783,"children":1784},{"style":796},[1785],{"type":50,"value":799},{"type":45,"tag":164,"props":1787,"children":1788},{"style":448},[1789],{"type":50,"value":427},{"type":45,"tag":164,"props":1791,"children":1792},{"style":454},[1793],{"type":50,"value":457},{"type":45,"tag":164,"props":1795,"children":1796},{"style":448},[1797],{"type":50,"value":812},{"type":45,"tag":164,"props":1799,"children":1800},{"class":166,"line":912},[1801,1805,1809,1813,1817],{"type":45,"tag":164,"props":1802,"children":1803},{"style":796},[1804],{"type":50,"value":821},{"type":45,"tag":164,"props":1806,"children":1807},{"style":448},[1808],{"type":50,"value":427},{"type":45,"tag":164,"props":1810,"children":1811},{"style":778},[1812],{"type":50,"value":677},{"type":45,"tag":164,"props":1814,"children":1815},{"style":454},[1816],{"type":50,"value":834},{"type":45,"tag":164,"props":1818,"children":1819},{"style":448},[1820],{"type":50,"value":812},{"type":45,"tag":164,"props":1822,"children":1823},{"class":166,"line":942},[1824,1828,1832],{"type":45,"tag":164,"props":1825,"children":1826},{"style":448},[1827],{"type":50,"value":847},{"type":45,"tag":164,"props":1829,"children":1830},{"style":454},[1831],{"type":50,"value":852},{"type":45,"tag":164,"props":1833,"children":1834},{"style":448},[1835],{"type":50,"value":523},{"type":45,"tag":164,"props":1837,"children":1838},{"class":166,"line":958},[1839],{"type":45,"tag":164,"props":1840,"children":1841},{"emptyLinePlaceholder":202},[1842],{"type":50,"value":205},{"type":45,"tag":164,"props":1844,"children":1845},{"class":166,"line":966},[1846,1850,1855,1859,1863,1867,1871,1876,1880],{"type":45,"tag":164,"props":1847,"children":1848},{"style":762},[1849],{"type":50,"value":765},{"type":45,"tag":164,"props":1851,"children":1852},{"style":454},[1853],{"type":50,"value":1854}," hash ",{"type":45,"tag":164,"props":1856,"children":1857},{"style":448},[1858],{"type":50,"value":775},{"type":45,"tag":164,"props":1860,"children":1861},{"style":442},[1862],{"type":50,"value":886},{"type":45,"tag":164,"props":1864,"children":1865},{"style":454},[1866],{"type":50,"value":891},{"type":45,"tag":164,"props":1868,"children":1869},{"style":448},[1870],{"type":50,"value":896},{"type":45,"tag":164,"props":1872,"children":1873},{"style":778},[1874],{"type":50,"value":1875},"sendTransaction",{"type":45,"tag":164,"props":1877,"children":1878},{"style":454},[1879],{"type":50,"value":785},{"type":45,"tag":164,"props":1881,"children":1882},{"style":448},[1883],{"type":50,"value":790},{"type":45,"tag":164,"props":1885,"children":1886},{"class":166,"line":1325},[1887,1892,1896,1900,1905,1909],{"type":45,"tag":164,"props":1888,"children":1889},{"style":796},[1890],{"type":50,"value":1891},"  to",{"type":45,"tag":164,"props":1893,"children":1894},{"style":448},[1895],{"type":50,"value":427},{"type":45,"tag":164,"props":1897,"children":1898},{"style":448},[1899],{"type":50,"value":509},{"type":45,"tag":164,"props":1901,"children":1902},{"style":187},[1903],{"type":50,"value":1904},"0x...",{"type":45,"tag":164,"props":1906,"children":1907},{"style":448},[1908],{"type":50,"value":518},{"type":45,"tag":164,"props":1910,"children":1911},{"style":448},[1912],{"type":50,"value":812},{"type":45,"tag":164,"props":1914,"children":1915},{"class":166,"line":1366},[1916,1921,1925,1929,1933,1937,1942,1946,1950],{"type":45,"tag":164,"props":1917,"children":1918},{"style":796},[1919],{"type":50,"value":1920},"  value",{"type":45,"tag":164,"props":1922,"children":1923},{"style":448},[1924],{"type":50,"value":427},{"type":45,"tag":164,"props":1926,"children":1927},{"style":778},[1928],{"type":50,"value":1541},{"type":45,"tag":164,"props":1930,"children":1931},{"style":454},[1932],{"type":50,"value":785},{"type":45,"tag":164,"props":1934,"children":1935},{"style":448},[1936],{"type":50,"value":518},{"type":45,"tag":164,"props":1938,"children":1939},{"style":187},[1940],{"type":50,"value":1941},"0.1",{"type":45,"tag":164,"props":1943,"children":1944},{"style":448},[1945],{"type":50,"value":518},{"type":45,"tag":164,"props":1947,"children":1948},{"style":454},[1949],{"type":50,"value":852},{"type":45,"tag":164,"props":1951,"children":1952},{"style":448},[1953],{"type":50,"value":812},{"type":45,"tag":164,"props":1955,"children":1956},{"class":166,"line":1400},[1957,1961,1965],{"type":45,"tag":164,"props":1958,"children":1959},{"style":448},[1960],{"type":50,"value":847},{"type":45,"tag":164,"props":1962,"children":1963},{"style":454},[1964],{"type":50,"value":852},{"type":45,"tag":164,"props":1966,"children":1967},{"style":448},[1968],{"type":50,"value":523},{"type":45,"tag":164,"props":1970,"children":1971},{"class":166,"line":1413},[1972],{"type":45,"tag":164,"props":1973,"children":1974},{"emptyLinePlaceholder":202},[1975],{"type":50,"value":205},{"type":45,"tag":164,"props":1977,"children":1978},{"class":166,"line":1443},[1979,1983,1987,1991,1995,1999,2004,2008,2013,2017,2021],{"type":45,"tag":164,"props":1980,"children":1981},{"style":454},[1982],{"type":50,"value":972},{"type":45,"tag":164,"props":1984,"children":1985},{"style":448},[1986],{"type":50,"value":896},{"type":45,"tag":164,"props":1988,"children":1989},{"style":778},[1990],{"type":50,"value":981},{"type":45,"tag":164,"props":1992,"children":1993},{"style":454},[1994],{"type":50,"value":785},{"type":45,"tag":164,"props":1996,"children":1997},{"style":448},[1998],{"type":50,"value":990},{"type":45,"tag":164,"props":2000,"children":2001},{"style":187},[2002],{"type":50,"value":2003},"Transaction hash: ",{"type":45,"tag":164,"props":2005,"children":2006},{"style":448},[2007],{"type":50,"value":1000},{"type":45,"tag":164,"props":2009,"children":2010},{"style":454},[2011],{"type":50,"value":2012},"hash",{"type":45,"tag":164,"props":2014,"children":2015},{"style":448},[2016],{"type":50,"value":1724},{"type":45,"tag":164,"props":2018,"children":2019},{"style":454},[2020],{"type":50,"value":852},{"type":45,"tag":164,"props":2022,"children":2023},{"style":448},[2024],{"type":50,"value":523},{"type":45,"tag":249,"props":2026,"children":2028},{"id":2027},"write-to-contract",[2029],{"type":50,"value":2030},"Write to Contract",{"type":45,"tag":152,"props":2032,"children":2034},{"className":430,"code":2033,"language":432,"meta":157,"style":157},"import { createWalletClient, createPublicClient, http, parseAbi, parseUnits } from 'viem';\nimport { privateKeyToAccount } from 'viem\u002Faccounts';\nimport { mainnet } from 'viem\u002Fchains';\n\nconst account = privateKeyToAccount(process.env.PRIVATE_KEY as `0x${string}`);\n\nconst walletClient = createWalletClient({\n  account,\n  chain: mainnet,\n  transport: http(),\n});\n\nconst publicClient = createPublicClient({\n  chain: mainnet,\n  transport: http(),\n});\n\nconst abi = parseAbi(['function transfer(address to, uint256 amount) returns (bool)']);\n\n\u002F\u002F Simulate first to catch errors\nconst { request } = await publicClient.simulateContract({\n  address: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',\n  abi,\n  functionName: 'transfer',\n  args: ['0x...', parseUnits('100', 6)],\n  account,\n});\n\n\u002F\u002F Execute the transaction\nconst hash = await walletClient.writeContract(request);\n\n\u002F\u002F Wait for confirmation\nconst receipt = await publicClient.waitForTransactionReceipt({ hash });\nconsole.log(`Confirmed in block ${receipt.blockNumber}`);\n",[2035],{"type":45,"tag":160,"props":2036,"children":2037},{"__ignoreMap":157},[2038,2110,2149,2188,2195,2266,2273,2301,2312,2331,2354,2369,2376,2404,2423,2446,2461,2468,2513,2520,2529,2581,2609,2621,2650,2722,2734,2750,2758,2767,2810,2818,2827,2886],{"type":45,"tag":164,"props":2039,"children":2040},{"class":166,"line":167},[2041,2045,2049,2053,2057,2061,2065,2069,2073,2077,2081,2086,2090,2094,2098,2102,2106],{"type":45,"tag":164,"props":2042,"children":2043},{"style":442},[2044],{"type":50,"value":445},{"type":45,"tag":164,"props":2046,"children":2047},{"style":448},[2048],{"type":50,"value":451},{"type":45,"tag":164,"props":2050,"children":2051},{"style":454},[2052],{"type":50,"value":1524},{"type":45,"tag":164,"props":2054,"children":2055},{"style":448},[2056],{"type":50,"value":462},{"type":45,"tag":164,"props":2058,"children":2059},{"style":454},[2060],{"type":50,"value":668},{"type":45,"tag":164,"props":2062,"children":2063},{"style":448},[2064],{"type":50,"value":462},{"type":45,"tag":164,"props":2066,"children":2067},{"style":454},[2068],{"type":50,"value":677},{"type":45,"tag":164,"props":2070,"children":2071},{"style":448},[2072],{"type":50,"value":462},{"type":45,"tag":164,"props":2074,"children":2075},{"style":454},[2076],{"type":50,"value":1076},{"type":45,"tag":164,"props":2078,"children":2079},{"style":448},[2080],{"type":50,"value":462},{"type":45,"tag":164,"props":2082,"children":2083},{"style":454},[2084],{"type":50,"value":2085}," parseUnits",{"type":45,"tag":164,"props":2087,"children":2088},{"style":448},[2089],{"type":50,"value":499},{"type":45,"tag":164,"props":2091,"children":2092},{"style":442},[2093],{"type":50,"value":504},{"type":45,"tag":164,"props":2095,"children":2096},{"style":448},[2097],{"type":50,"value":509},{"type":45,"tag":164,"props":2099,"children":2100},{"style":187},[2101],{"type":50,"value":17},{"type":45,"tag":164,"props":2103,"children":2104},{"style":448},[2105],{"type":50,"value":518},{"type":45,"tag":164,"props":2107,"children":2108},{"style":448},[2109],{"type":50,"value":523},{"type":45,"tag":164,"props":2111,"children":2112},{"class":166,"line":177},[2113,2117,2121,2125,2129,2133,2137,2141,2145],{"type":45,"tag":164,"props":2114,"children":2115},{"style":442},[2116],{"type":50,"value":445},{"type":45,"tag":164,"props":2118,"children":2119},{"style":448},[2120],{"type":50,"value":451},{"type":45,"tag":164,"props":2122,"children":2123},{"style":454},[2124],{"type":50,"value":1581},{"type":45,"tag":164,"props":2126,"children":2127},{"style":448},[2128],{"type":50,"value":499},{"type":45,"tag":164,"props":2130,"children":2131},{"style":442},[2132],{"type":50,"value":504},{"type":45,"tag":164,"props":2134,"children":2135},{"style":448},[2136],{"type":50,"value":509},{"type":45,"tag":164,"props":2138,"children":2139},{"style":187},[2140],{"type":50,"value":1598},{"type":45,"tag":164,"props":2142,"children":2143},{"style":448},[2144],{"type":50,"value":518},{"type":45,"tag":164,"props":2146,"children":2147},{"style":448},[2148],{"type":50,"value":523},{"type":45,"tag":164,"props":2150,"children":2151},{"class":166,"line":198},[2152,2156,2160,2164,2168,2172,2176,2180,2184],{"type":45,"tag":164,"props":2153,"children":2154},{"style":442},[2155],{"type":50,"value":445},{"type":45,"tag":164,"props":2157,"children":2158},{"style":448},[2159],{"type":50,"value":451},{"type":45,"tag":164,"props":2161,"children":2162},{"style":454},[2163],{"type":50,"value":457},{"type":45,"tag":164,"props":2165,"children":2166},{"style":448},[2167],{"type":50,"value":499},{"type":45,"tag":164,"props":2169,"children":2170},{"style":442},[2171],{"type":50,"value":504},{"type":45,"tag":164,"props":2173,"children":2174},{"style":448},[2175],{"type":50,"value":509},{"type":45,"tag":164,"props":2177,"children":2178},{"style":187},[2179],{"type":50,"value":425},{"type":45,"tag":164,"props":2181,"children":2182},{"style":448},[2183],{"type":50,"value":518},{"type":45,"tag":164,"props":2185,"children":2186},{"style":448},[2187],{"type":50,"value":523},{"type":45,"tag":164,"props":2189,"children":2190},{"class":166,"line":208},[2191],{"type":45,"tag":164,"props":2192,"children":2193},{"emptyLinePlaceholder":202},[2194],{"type":50,"value":205},{"type":45,"tag":164,"props":2196,"children":2197},{"class":166,"line":217},[2198,2202,2206,2210,2214,2218,2222,2226,2230,2234,2238,2242,2246,2250,2254,2258,2262],{"type":45,"tag":164,"props":2199,"children":2200},{"style":762},[2201],{"type":50,"value":765},{"type":45,"tag":164,"props":2203,"children":2204},{"style":454},[2205],{"type":50,"value":1664},{"type":45,"tag":164,"props":2207,"children":2208},{"style":448},[2209],{"type":50,"value":775},{"type":45,"tag":164,"props":2211,"children":2212},{"style":778},[2213],{"type":50,"value":1581},{"type":45,"tag":164,"props":2215,"children":2216},{"style":454},[2217],{"type":50,"value":1677},{"type":45,"tag":164,"props":2219,"children":2220},{"style":448},[2221],{"type":50,"value":896},{"type":45,"tag":164,"props":2223,"children":2224},{"style":454},[2225],{"type":50,"value":1686},{"type":45,"tag":164,"props":2227,"children":2228},{"style":448},[2229],{"type":50,"value":896},{"type":45,"tag":164,"props":2231,"children":2232},{"style":454},[2233],{"type":50,"value":1695},{"type":45,"tag":164,"props":2235,"children":2236},{"style":442},[2237],{"type":50,"value":1700},{"type":45,"tag":164,"props":2239,"children":2240},{"style":448},[2241],{"type":50,"value":1705},{"type":45,"tag":164,"props":2243,"children":2244},{"style":187},[2245],{"type":50,"value":1710},{"type":45,"tag":164,"props":2247,"children":2248},{"style":448},[2249],{"type":50,"value":1000},{"type":45,"tag":164,"props":2251,"children":2252},{"style":181},[2253],{"type":50,"value":1719},{"type":45,"tag":164,"props":2255,"children":2256},{"style":448},[2257],{"type":50,"value":1724},{"type":45,"tag":164,"props":2259,"children":2260},{"style":454},[2261],{"type":50,"value":852},{"type":45,"tag":164,"props":2263,"children":2264},{"style":448},[2265],{"type":50,"value":523},{"type":45,"tag":164,"props":2267,"children":2268},{"class":166,"line":815},[2269],{"type":45,"tag":164,"props":2270,"children":2271},{"emptyLinePlaceholder":202},[2272],{"type":50,"value":205},{"type":45,"tag":164,"props":2274,"children":2275},{"class":166,"line":841},[2276,2280,2285,2289,2293,2297],{"type":45,"tag":164,"props":2277,"children":2278},{"style":762},[2279],{"type":50,"value":765},{"type":45,"tag":164,"props":2281,"children":2282},{"style":454},[2283],{"type":50,"value":2284}," walletClient ",{"type":45,"tag":164,"props":2286,"children":2287},{"style":448},[2288],{"type":50,"value":775},{"type":45,"tag":164,"props":2290,"children":2291},{"style":778},[2292],{"type":50,"value":1524},{"type":45,"tag":164,"props":2294,"children":2295},{"style":454},[2296],{"type":50,"value":785},{"type":45,"tag":164,"props":2298,"children":2299},{"style":448},[2300],{"type":50,"value":790},{"type":45,"tag":164,"props":2302,"children":2303},{"class":166,"line":859},[2304,2308],{"type":45,"tag":164,"props":2305,"children":2306},{"style":454},[2307],{"type":50,"value":1774},{"type":45,"tag":164,"props":2309,"children":2310},{"style":448},[2311],{"type":50,"value":812},{"type":45,"tag":164,"props":2313,"children":2314},{"class":166,"line":867},[2315,2319,2323,2327],{"type":45,"tag":164,"props":2316,"children":2317},{"style":796},[2318],{"type":50,"value":799},{"type":45,"tag":164,"props":2320,"children":2321},{"style":448},[2322],{"type":50,"value":427},{"type":45,"tag":164,"props":2324,"children":2325},{"style":454},[2326],{"type":50,"value":457},{"type":45,"tag":164,"props":2328,"children":2329},{"style":448},[2330],{"type":50,"value":812},{"type":45,"tag":164,"props":2332,"children":2333},{"class":166,"line":912},[2334,2338,2342,2346,2350],{"type":45,"tag":164,"props":2335,"children":2336},{"style":796},[2337],{"type":50,"value":821},{"type":45,"tag":164,"props":2339,"children":2340},{"style":448},[2341],{"type":50,"value":427},{"type":45,"tag":164,"props":2343,"children":2344},{"style":778},[2345],{"type":50,"value":677},{"type":45,"tag":164,"props":2347,"children":2348},{"style":454},[2349],{"type":50,"value":834},{"type":45,"tag":164,"props":2351,"children":2352},{"style":448},[2353],{"type":50,"value":812},{"type":45,"tag":164,"props":2355,"children":2356},{"class":166,"line":942},[2357,2361,2365],{"type":45,"tag":164,"props":2358,"children":2359},{"style":448},[2360],{"type":50,"value":847},{"type":45,"tag":164,"props":2362,"children":2363},{"style":454},[2364],{"type":50,"value":852},{"type":45,"tag":164,"props":2366,"children":2367},{"style":448},[2368],{"type":50,"value":523},{"type":45,"tag":164,"props":2370,"children":2371},{"class":166,"line":958},[2372],{"type":45,"tag":164,"props":2373,"children":2374},{"emptyLinePlaceholder":202},[2375],{"type":50,"value":205},{"type":45,"tag":164,"props":2377,"children":2378},{"class":166,"line":966},[2379,2383,2388,2392,2396,2400],{"type":45,"tag":164,"props":2380,"children":2381},{"style":762},[2382],{"type":50,"value":765},{"type":45,"tag":164,"props":2384,"children":2385},{"style":454},[2386],{"type":50,"value":2387}," publicClient ",{"type":45,"tag":164,"props":2389,"children":2390},{"style":448},[2391],{"type":50,"value":775},{"type":45,"tag":164,"props":2393,"children":2394},{"style":778},[2395],{"type":50,"value":668},{"type":45,"tag":164,"props":2397,"children":2398},{"style":454},[2399],{"type":50,"value":785},{"type":45,"tag":164,"props":2401,"children":2402},{"style":448},[2403],{"type":50,"value":790},{"type":45,"tag":164,"props":2405,"children":2406},{"class":166,"line":1325},[2407,2411,2415,2419],{"type":45,"tag":164,"props":2408,"children":2409},{"style":796},[2410],{"type":50,"value":799},{"type":45,"tag":164,"props":2412,"children":2413},{"style":448},[2414],{"type":50,"value":427},{"type":45,"tag":164,"props":2416,"children":2417},{"style":454},[2418],{"type":50,"value":457},{"type":45,"tag":164,"props":2420,"children":2421},{"style":448},[2422],{"type":50,"value":812},{"type":45,"tag":164,"props":2424,"children":2425},{"class":166,"line":1366},[2426,2430,2434,2438,2442],{"type":45,"tag":164,"props":2427,"children":2428},{"style":796},[2429],{"type":50,"value":821},{"type":45,"tag":164,"props":2431,"children":2432},{"style":448},[2433],{"type":50,"value":427},{"type":45,"tag":164,"props":2435,"children":2436},{"style":778},[2437],{"type":50,"value":677},{"type":45,"tag":164,"props":2439,"children":2440},{"style":454},[2441],{"type":50,"value":834},{"type":45,"tag":164,"props":2443,"children":2444},{"style":448},[2445],{"type":50,"value":812},{"type":45,"tag":164,"props":2447,"children":2448},{"class":166,"line":1400},[2449,2453,2457],{"type":45,"tag":164,"props":2450,"children":2451},{"style":448},[2452],{"type":50,"value":847},{"type":45,"tag":164,"props":2454,"children":2455},{"style":454},[2456],{"type":50,"value":852},{"type":45,"tag":164,"props":2458,"children":2459},{"style":448},[2460],{"type":50,"value":523},{"type":45,"tag":164,"props":2462,"children":2463},{"class":166,"line":1413},[2464],{"type":45,"tag":164,"props":2465,"children":2466},{"emptyLinePlaceholder":202},[2467],{"type":50,"value":205},{"type":45,"tag":164,"props":2469,"children":2470},{"class":166,"line":1443},[2471,2475,2479,2483,2487,2492,2496,2501,2505,2509],{"type":45,"tag":164,"props":2472,"children":2473},{"style":762},[2474],{"type":50,"value":765},{"type":45,"tag":164,"props":2476,"children":2477},{"style":454},[2478],{"type":50,"value":1249},{"type":45,"tag":164,"props":2480,"children":2481},{"style":448},[2482],{"type":50,"value":775},{"type":45,"tag":164,"props":2484,"children":2485},{"style":778},[2486],{"type":50,"value":1076},{"type":45,"tag":164,"props":2488,"children":2489},{"style":454},[2490],{"type":50,"value":2491},"([",{"type":45,"tag":164,"props":2493,"children":2494},{"style":448},[2495],{"type":50,"value":518},{"type":45,"tag":164,"props":2497,"children":2498},{"style":187},[2499],{"type":50,"value":2500},"function transfer(address to, uint256 amount) returns (bool)",{"type":45,"tag":164,"props":2502,"children":2503},{"style":448},[2504],{"type":50,"value":518},{"type":45,"tag":164,"props":2506,"children":2507},{"style":454},[2508],{"type":50,"value":1311},{"type":45,"tag":164,"props":2510,"children":2511},{"style":448},[2512],{"type":50,"value":523},{"type":45,"tag":164,"props":2514,"children":2515},{"class":166,"line":1482},[2516],{"type":45,"tag":164,"props":2517,"children":2518},{"emptyLinePlaceholder":202},[2519],{"type":50,"value":205},{"type":45,"tag":164,"props":2521,"children":2523},{"class":166,"line":2522},20,[2524],{"type":45,"tag":164,"props":2525,"children":2526},{"style":171},[2527],{"type":50,"value":2528},"\u002F\u002F Simulate first to catch errors\n",{"type":45,"tag":164,"props":2530,"children":2532},{"class":166,"line":2531},21,[2533,2537,2541,2546,2550,2555,2559,2564,2568,2573,2577],{"type":45,"tag":164,"props":2534,"children":2535},{"style":762},[2536],{"type":50,"value":765},{"type":45,"tag":164,"props":2538,"children":2539},{"style":448},[2540],{"type":50,"value":451},{"type":45,"tag":164,"props":2542,"children":2543},{"style":454},[2544],{"type":50,"value":2545}," request ",{"type":45,"tag":164,"props":2547,"children":2548},{"style":448},[2549],{"type":50,"value":847},{"type":45,"tag":164,"props":2551,"children":2552},{"style":448},[2553],{"type":50,"value":2554}," =",{"type":45,"tag":164,"props":2556,"children":2557},{"style":442},[2558],{"type":50,"value":886},{"type":45,"tag":164,"props":2560,"children":2561},{"style":454},[2562],{"type":50,"value":2563}," publicClient",{"type":45,"tag":164,"props":2565,"children":2566},{"style":448},[2567],{"type":50,"value":896},{"type":45,"tag":164,"props":2569,"children":2570},{"style":778},[2571],{"type":50,"value":2572},"simulateContract",{"type":45,"tag":164,"props":2574,"children":2575},{"style":454},[2576],{"type":50,"value":785},{"type":45,"tag":164,"props":2578,"children":2579},{"style":448},[2580],{"type":50,"value":790},{"type":45,"tag":164,"props":2582,"children":2584},{"class":166,"line":2583},22,[2585,2589,2593,2597,2601,2605],{"type":45,"tag":164,"props":2586,"children":2587},{"style":796},[2588],{"type":50,"value":918},{"type":45,"tag":164,"props":2590,"children":2591},{"style":448},[2592],{"type":50,"value":427},{"type":45,"tag":164,"props":2594,"children":2595},{"style":448},[2596],{"type":50,"value":509},{"type":45,"tag":164,"props":2598,"children":2599},{"style":187},[2600],{"type":50,"value":1384},{"type":45,"tag":164,"props":2602,"children":2603},{"style":448},[2604],{"type":50,"value":518},{"type":45,"tag":164,"props":2606,"children":2607},{"style":448},[2608],{"type":50,"value":812},{"type":45,"tag":164,"props":2610,"children":2612},{"class":166,"line":2611},23,[2613,2617],{"type":45,"tag":164,"props":2614,"children":2615},{"style":454},[2616],{"type":50,"value":1406},{"type":45,"tag":164,"props":2618,"children":2619},{"style":448},[2620],{"type":50,"value":812},{"type":45,"tag":164,"props":2622,"children":2624},{"class":166,"line":2623},24,[2625,2629,2633,2637,2642,2646],{"type":45,"tag":164,"props":2626,"children":2627},{"style":796},[2628],{"type":50,"value":1419},{"type":45,"tag":164,"props":2630,"children":2631},{"style":448},[2632],{"type":50,"value":427},{"type":45,"tag":164,"props":2634,"children":2635},{"style":448},[2636],{"type":50,"value":509},{"type":45,"tag":164,"props":2638,"children":2639},{"style":187},[2640],{"type":50,"value":2641},"transfer",{"type":45,"tag":164,"props":2643,"children":2644},{"style":448},[2645],{"type":50,"value":518},{"type":45,"tag":164,"props":2647,"children":2648},{"style":448},[2649],{"type":50,"value":812},{"type":45,"tag":164,"props":2651,"children":2653},{"class":166,"line":2652},25,[2654,2658,2662,2666,2670,2674,2678,2682,2686,2690,2694,2699,2703,2707,2713,2718],{"type":45,"tag":164,"props":2655,"children":2656},{"style":796},[2657],{"type":50,"value":1449},{"type":45,"tag":164,"props":2659,"children":2660},{"style":448},[2661],{"type":50,"value":427},{"type":45,"tag":164,"props":2663,"children":2664},{"style":454},[2665],{"type":50,"value":1458},{"type":45,"tag":164,"props":2667,"children":2668},{"style":448},[2669],{"type":50,"value":518},{"type":45,"tag":164,"props":2671,"children":2672},{"style":187},[2673],{"type":50,"value":1904},{"type":45,"tag":164,"props":2675,"children":2676},{"style":448},[2677],{"type":50,"value":518},{"type":45,"tag":164,"props":2679,"children":2680},{"style":448},[2681],{"type":50,"value":462},{"type":45,"tag":164,"props":2683,"children":2684},{"style":778},[2685],{"type":50,"value":2085},{"type":45,"tag":164,"props":2687,"children":2688},{"style":454},[2689],{"type":50,"value":785},{"type":45,"tag":164,"props":2691,"children":2692},{"style":448},[2693],{"type":50,"value":518},{"type":45,"tag":164,"props":2695,"children":2696},{"style":187},[2697],{"type":50,"value":2698},"100",{"type":45,"tag":164,"props":2700,"children":2701},{"style":448},[2702],{"type":50,"value":518},{"type":45,"tag":164,"props":2704,"children":2705},{"style":448},[2706],{"type":50,"value":462},{"type":45,"tag":164,"props":2708,"children":2710},{"style":2709},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[2711],{"type":50,"value":2712}," 6",{"type":45,"tag":164,"props":2714,"children":2715},{"style":454},[2716],{"type":50,"value":2717},")]",{"type":45,"tag":164,"props":2719,"children":2720},{"style":448},[2721],{"type":50,"value":812},{"type":45,"tag":164,"props":2723,"children":2725},{"class":166,"line":2724},26,[2726,2730],{"type":45,"tag":164,"props":2727,"children":2728},{"style":454},[2729],{"type":50,"value":1774},{"type":45,"tag":164,"props":2731,"children":2732},{"style":448},[2733],{"type":50,"value":812},{"type":45,"tag":164,"props":2735,"children":2737},{"class":166,"line":2736},27,[2738,2742,2746],{"type":45,"tag":164,"props":2739,"children":2740},{"style":448},[2741],{"type":50,"value":847},{"type":45,"tag":164,"props":2743,"children":2744},{"style":454},[2745],{"type":50,"value":852},{"type":45,"tag":164,"props":2747,"children":2748},{"style":448},[2749],{"type":50,"value":523},{"type":45,"tag":164,"props":2751,"children":2753},{"class":166,"line":2752},28,[2754],{"type":45,"tag":164,"props":2755,"children":2756},{"emptyLinePlaceholder":202},[2757],{"type":50,"value":205},{"type":45,"tag":164,"props":2759,"children":2761},{"class":166,"line":2760},29,[2762],{"type":45,"tag":164,"props":2763,"children":2764},{"style":171},[2765],{"type":50,"value":2766},"\u002F\u002F Execute the transaction\n",{"type":45,"tag":164,"props":2768,"children":2770},{"class":166,"line":2769},30,[2771,2775,2779,2783,2787,2792,2796,2801,2806],{"type":45,"tag":164,"props":2772,"children":2773},{"style":762},[2774],{"type":50,"value":765},{"type":45,"tag":164,"props":2776,"children":2777},{"style":454},[2778],{"type":50,"value":1854},{"type":45,"tag":164,"props":2780,"children":2781},{"style":448},[2782],{"type":50,"value":775},{"type":45,"tag":164,"props":2784,"children":2785},{"style":442},[2786],{"type":50,"value":886},{"type":45,"tag":164,"props":2788,"children":2789},{"style":454},[2790],{"type":50,"value":2791}," walletClient",{"type":45,"tag":164,"props":2793,"children":2794},{"style":448},[2795],{"type":50,"value":896},{"type":45,"tag":164,"props":2797,"children":2798},{"style":778},[2799],{"type":50,"value":2800},"writeContract",{"type":45,"tag":164,"props":2802,"children":2803},{"style":454},[2804],{"type":50,"value":2805},"(request)",{"type":45,"tag":164,"props":2807,"children":2808},{"style":448},[2809],{"type":50,"value":523},{"type":45,"tag":164,"props":2811,"children":2813},{"class":166,"line":2812},31,[2814],{"type":45,"tag":164,"props":2815,"children":2816},{"emptyLinePlaceholder":202},[2817],{"type":50,"value":205},{"type":45,"tag":164,"props":2819,"children":2821},{"class":166,"line":2820},32,[2822],{"type":45,"tag":164,"props":2823,"children":2824},{"style":171},[2825],{"type":50,"value":2826},"\u002F\u002F Wait for confirmation\n",{"type":45,"tag":164,"props":2828,"children":2830},{"class":166,"line":2829},33,[2831,2835,2840,2844,2848,2852,2856,2861,2865,2870,2874,2878,2882],{"type":45,"tag":164,"props":2832,"children":2833},{"style":762},[2834],{"type":50,"value":765},{"type":45,"tag":164,"props":2836,"children":2837},{"style":454},[2838],{"type":50,"value":2839}," receipt ",{"type":45,"tag":164,"props":2841,"children":2842},{"style":448},[2843],{"type":50,"value":775},{"type":45,"tag":164,"props":2845,"children":2846},{"style":442},[2847],{"type":50,"value":886},{"type":45,"tag":164,"props":2849,"children":2850},{"style":454},[2851],{"type":50,"value":2563},{"type":45,"tag":164,"props":2853,"children":2854},{"style":448},[2855],{"type":50,"value":896},{"type":45,"tag":164,"props":2857,"children":2858},{"style":778},[2859],{"type":50,"value":2860},"waitForTransactionReceipt",{"type":45,"tag":164,"props":2862,"children":2863},{"style":454},[2864],{"type":50,"value":785},{"type":45,"tag":164,"props":2866,"children":2867},{"style":448},[2868],{"type":50,"value":2869},"{",{"type":45,"tag":164,"props":2871,"children":2872},{"style":454},[2873],{"type":50,"value":1854},{"type":45,"tag":164,"props":2875,"children":2876},{"style":448},[2877],{"type":50,"value":847},{"type":45,"tag":164,"props":2879,"children":2880},{"style":454},[2881],{"type":50,"value":852},{"type":45,"tag":164,"props":2883,"children":2884},{"style":448},[2885],{"type":50,"value":523},{"type":45,"tag":164,"props":2887,"children":2889},{"class":166,"line":2888},34,[2890,2894,2898,2902,2906,2910,2915,2919,2924,2928,2933,2937,2941],{"type":45,"tag":164,"props":2891,"children":2892},{"style":454},[2893],{"type":50,"value":972},{"type":45,"tag":164,"props":2895,"children":2896},{"style":448},[2897],{"type":50,"value":896},{"type":45,"tag":164,"props":2899,"children":2900},{"style":778},[2901],{"type":50,"value":981},{"type":45,"tag":164,"props":2903,"children":2904},{"style":454},[2905],{"type":50,"value":785},{"type":45,"tag":164,"props":2907,"children":2908},{"style":448},[2909],{"type":50,"value":990},{"type":45,"tag":164,"props":2911,"children":2912},{"style":187},[2913],{"type":50,"value":2914},"Confirmed in block ",{"type":45,"tag":164,"props":2916,"children":2917},{"style":448},[2918],{"type":50,"value":1000},{"type":45,"tag":164,"props":2920,"children":2921},{"style":454},[2922],{"type":50,"value":2923},"receipt",{"type":45,"tag":164,"props":2925,"children":2926},{"style":448},[2927],{"type":50,"value":896},{"type":45,"tag":164,"props":2929,"children":2930},{"style":454},[2931],{"type":50,"value":2932},"blockNumber",{"type":45,"tag":164,"props":2934,"children":2935},{"style":448},[2936],{"type":50,"value":1724},{"type":45,"tag":164,"props":2938,"children":2939},{"style":454},[2940],{"type":50,"value":852},{"type":45,"tag":164,"props":2942,"children":2943},{"style":448},[2944],{"type":50,"value":523},{"type":45,"tag":525,"props":2946,"children":2947},{},[],{"type":45,"tag":59,"props":2949,"children":2951},{"id":2950},"reference-documentation",[2952],{"type":50,"value":2953},"Reference Documentation",{"type":45,"tag":53,"props":2955,"children":2956},{},[2957],{"type":50,"value":2958},"For deeper coverage of specific topics:",{"type":45,"tag":66,"props":2960,"children":2961},{},[2962,2978],{"type":45,"tag":70,"props":2963,"children":2964},{},[2965],{"type":45,"tag":74,"props":2966,"children":2967},{},[2968,2973],{"type":45,"tag":78,"props":2969,"children":2970},{},[2971],{"type":50,"value":2972},"Topic",{"type":45,"tag":78,"props":2974,"children":2975},{},[2976],{"type":50,"value":2977},"Reference File",{"type":45,"tag":89,"props":2979,"children":2980},{},[2981,2999,3016,3033,3050,3067],{"type":45,"tag":74,"props":2982,"children":2983},{},[2984,2989],{"type":45,"tag":96,"props":2985,"children":2986},{},[2987],{"type":50,"value":2988},"Client setup, transports, chains",{"type":45,"tag":96,"props":2990,"children":2991},{},[2992],{"type":45,"tag":2993,"props":2994,"children":2996},"a",{"href":2995},".\u002Freferences\u002Fclients-and-transports.md",[2997],{"type":50,"value":2998},"Clients & Transports",{"type":45,"tag":74,"props":3000,"children":3001},{},[3002,3007],{"type":45,"tag":96,"props":3003,"children":3004},{},[3005],{"type":50,"value":3006},"Reading blockchain data",{"type":45,"tag":96,"props":3008,"children":3009},{},[3010],{"type":45,"tag":2993,"props":3011,"children":3013},{"href":3012},".\u002Freferences\u002Freading-data.md",[3014],{"type":50,"value":3015},"Reading Data",{"type":45,"tag":74,"props":3017,"children":3018},{},[3019,3024],{"type":45,"tag":96,"props":3020,"children":3021},{},[3022],{"type":50,"value":3023},"Sending transactions",{"type":45,"tag":96,"props":3025,"children":3026},{},[3027],{"type":45,"tag":2993,"props":3028,"children":3030},{"href":3029},".\u002Freferences\u002Fwriting-transactions.md",[3031],{"type":50,"value":3032},"Writing Transactions",{"type":45,"tag":74,"props":3034,"children":3035},{},[3036,3041],{"type":45,"tag":96,"props":3037,"children":3038},{},[3039],{"type":50,"value":3040},"Private keys, HD wallets",{"type":45,"tag":96,"props":3042,"children":3043},{},[3044],{"type":45,"tag":2993,"props":3045,"children":3047},{"href":3046},".\u002Freferences\u002Faccounts-and-keys.md",[3048],{"type":50,"value":3049},"Accounts & Keys",{"type":45,"tag":74,"props":3051,"children":3052},{},[3053,3058],{"type":45,"tag":96,"props":3054,"children":3055},{},[3056],{"type":50,"value":3057},"ABI handling, multicall",{"type":45,"tag":96,"props":3059,"children":3060},{},[3061],{"type":45,"tag":2993,"props":3062,"children":3064},{"href":3063},".\u002Freferences\u002Fcontract-patterns.md",[3065],{"type":50,"value":3066},"Contract Patterns",{"type":45,"tag":74,"props":3068,"children":3069},{},[3070,3075],{"type":45,"tag":96,"props":3071,"children":3072},{},[3073],{"type":50,"value":3074},"React\u002Fwagmi hooks",{"type":45,"tag":96,"props":3076,"children":3077},{},[3078],{"type":45,"tag":2993,"props":3079,"children":3081},{"href":3080},".\u002Freferences\u002Fwagmi-react.md",[3082],{"type":50,"value":3083},"Wagmi React",{"type":45,"tag":525,"props":3085,"children":3086},{},[],{"type":45,"tag":59,"props":3088,"children":3090},{"id":3089},"related-plugins",[3091],{"type":50,"value":3092},"Related Plugins",{"type":45,"tag":53,"props":3094,"children":3095},{},[3096,3098,3103],{"type":50,"value":3097},"Once you're comfortable with viem basics, the ",{"type":45,"tag":294,"props":3099,"children":3100},{},[3101],{"type":50,"value":3102},"uniswap-trading",{"type":50,"value":3104}," plugin provides comprehensive Uniswap swap integration:",{"type":45,"tag":540,"props":3106,"children":3107},{},[3108,3113,3118],{"type":45,"tag":544,"props":3109,"children":3110},{},[3111],{"type":50,"value":3112},"Uniswap Trading API integration",{"type":45,"tag":544,"props":3114,"children":3115},{},[3116],{"type":50,"value":3117},"Universal Router SDK usage",{"type":45,"tag":544,"props":3119,"children":3120},{},[3121],{"type":50,"value":3122},"Token swap implementations",{"type":45,"tag":53,"props":3124,"children":3125},{},[3126,3128],{"type":50,"value":3127},"Install it with: ",{"type":45,"tag":160,"props":3129,"children":3131},{"className":3130},[],[3132],{"type":50,"value":3133},"claude plugin add @uniswap\u002Funiswap-trading",{"type":45,"tag":525,"props":3135,"children":3136},{},[],{"type":45,"tag":59,"props":3138,"children":3140},{"id":3139},"common-utilities",[3141],{"type":50,"value":3142},"Common Utilities",{"type":45,"tag":249,"props":3144,"children":3146},{"id":3145},"unit-conversion",[3147],{"type":50,"value":3148},"Unit Conversion",{"type":45,"tag":152,"props":3150,"children":3152},{"className":430,"code":3151,"language":432,"meta":157,"style":157},"import { parseEther, formatEther, parseUnits, formatUnits } from 'viem';\n\n\u002F\u002F ETH\nparseEther('1.5'); \u002F\u002F 1500000000000000000n (wei)\nformatEther(1500000000000000000n); \u002F\u002F \"1.5\"\n\n\u002F\u002F Tokens (e.g., USDC with 6 decimals)\nparseUnits('100', 6); \u002F\u002F 100000000n\nformatUnits(100000000n, 6); \u002F\u002F \"100\"\n",[3153],{"type":45,"tag":160,"props":3154,"children":3155},{"__ignoreMap":157},[3156,3220,3227,3235,3274,3308,3315,3323,3368],{"type":45,"tag":164,"props":3157,"children":3158},{"class":166,"line":167},[3159,3163,3167,3171,3175,3179,3183,3187,3191,3196,3200,3204,3208,3212,3216],{"type":45,"tag":164,"props":3160,"children":3161},{"style":442},[3162],{"type":50,"value":445},{"type":45,"tag":164,"props":3164,"children":3165},{"style":448},[3166],{"type":50,"value":451},{"type":45,"tag":164,"props":3168,"children":3169},{"style":454},[3170],{"type":50,"value":1541},{"type":45,"tag":164,"props":3172,"children":3173},{"style":448},[3174],{"type":50,"value":462},{"type":45,"tag":164,"props":3176,"children":3177},{"style":454},[3178],{"type":50,"value":686},{"type":45,"tag":164,"props":3180,"children":3181},{"style":448},[3182],{"type":50,"value":462},{"type":45,"tag":164,"props":3184,"children":3185},{"style":454},[3186],{"type":50,"value":2085},{"type":45,"tag":164,"props":3188,"children":3189},{"style":448},[3190],{"type":50,"value":462},{"type":45,"tag":164,"props":3192,"children":3193},{"style":454},[3194],{"type":50,"value":3195}," formatUnits",{"type":45,"tag":164,"props":3197,"children":3198},{"style":448},[3199],{"type":50,"value":499},{"type":45,"tag":164,"props":3201,"children":3202},{"style":442},[3203],{"type":50,"value":504},{"type":45,"tag":164,"props":3205,"children":3206},{"style":448},[3207],{"type":50,"value":509},{"type":45,"tag":164,"props":3209,"children":3210},{"style":187},[3211],{"type":50,"value":17},{"type":45,"tag":164,"props":3213,"children":3214},{"style":448},[3215],{"type":50,"value":518},{"type":45,"tag":164,"props":3217,"children":3218},{"style":448},[3219],{"type":50,"value":523},{"type":45,"tag":164,"props":3221,"children":3222},{"class":166,"line":177},[3223],{"type":45,"tag":164,"props":3224,"children":3225},{"emptyLinePlaceholder":202},[3226],{"type":50,"value":205},{"type":45,"tag":164,"props":3228,"children":3229},{"class":166,"line":198},[3230],{"type":45,"tag":164,"props":3231,"children":3232},{"style":171},[3233],{"type":50,"value":3234},"\u002F\u002F ETH\n",{"type":45,"tag":164,"props":3236,"children":3237},{"class":166,"line":208},[3238,3243,3247,3251,3256,3260,3264,3269],{"type":45,"tag":164,"props":3239,"children":3240},{"style":778},[3241],{"type":50,"value":3242},"parseEther",{"type":45,"tag":164,"props":3244,"children":3245},{"style":454},[3246],{"type":50,"value":785},{"type":45,"tag":164,"props":3248,"children":3249},{"style":448},[3250],{"type":50,"value":518},{"type":45,"tag":164,"props":3252,"children":3253},{"style":187},[3254],{"type":50,"value":3255},"1.5",{"type":45,"tag":164,"props":3257,"children":3258},{"style":448},[3259],{"type":50,"value":518},{"type":45,"tag":164,"props":3261,"children":3262},{"style":454},[3263],{"type":50,"value":852},{"type":45,"tag":164,"props":3265,"children":3266},{"style":448},[3267],{"type":50,"value":3268},";",{"type":45,"tag":164,"props":3270,"children":3271},{"style":171},[3272],{"type":50,"value":3273}," \u002F\u002F 1500000000000000000n (wei)\n",{"type":45,"tag":164,"props":3275,"children":3276},{"class":166,"line":217},[3277,3281,3285,3290,3295,3299,3303],{"type":45,"tag":164,"props":3278,"children":3279},{"style":778},[3280],{"type":50,"value":1005},{"type":45,"tag":164,"props":3282,"children":3283},{"style":454},[3284],{"type":50,"value":785},{"type":45,"tag":164,"props":3286,"children":3287},{"style":2709},[3288],{"type":50,"value":3289},"1500000000000000000",{"type":45,"tag":164,"props":3291,"children":3292},{"style":762},[3293],{"type":50,"value":3294},"n",{"type":45,"tag":164,"props":3296,"children":3297},{"style":454},[3298],{"type":50,"value":852},{"type":45,"tag":164,"props":3300,"children":3301},{"style":448},[3302],{"type":50,"value":3268},{"type":45,"tag":164,"props":3304,"children":3305},{"style":171},[3306],{"type":50,"value":3307}," \u002F\u002F \"1.5\"\n",{"type":45,"tag":164,"props":3309,"children":3310},{"class":166,"line":815},[3311],{"type":45,"tag":164,"props":3312,"children":3313},{"emptyLinePlaceholder":202},[3314],{"type":50,"value":205},{"type":45,"tag":164,"props":3316,"children":3317},{"class":166,"line":841},[3318],{"type":45,"tag":164,"props":3319,"children":3320},{"style":171},[3321],{"type":50,"value":3322},"\u002F\u002F Tokens (e.g., USDC with 6 decimals)\n",{"type":45,"tag":164,"props":3324,"children":3325},{"class":166,"line":859},[3326,3331,3335,3339,3343,3347,3351,3355,3359,3363],{"type":45,"tag":164,"props":3327,"children":3328},{"style":778},[3329],{"type":50,"value":3330},"parseUnits",{"type":45,"tag":164,"props":3332,"children":3333},{"style":454},[3334],{"type":50,"value":785},{"type":45,"tag":164,"props":3336,"children":3337},{"style":448},[3338],{"type":50,"value":518},{"type":45,"tag":164,"props":3340,"children":3341},{"style":187},[3342],{"type":50,"value":2698},{"type":45,"tag":164,"props":3344,"children":3345},{"style":448},[3346],{"type":50,"value":518},{"type":45,"tag":164,"props":3348,"children":3349},{"style":448},[3350],{"type":50,"value":462},{"type":45,"tag":164,"props":3352,"children":3353},{"style":2709},[3354],{"type":50,"value":2712},{"type":45,"tag":164,"props":3356,"children":3357},{"style":454},[3358],{"type":50,"value":852},{"type":45,"tag":164,"props":3360,"children":3361},{"style":448},[3362],{"type":50,"value":3268},{"type":45,"tag":164,"props":3364,"children":3365},{"style":171},[3366],{"type":50,"value":3367}," \u002F\u002F 100000000n\n",{"type":45,"tag":164,"props":3369,"children":3370},{"class":166,"line":867},[3371,3376,3380,3385,3389,3393,3397,3401,3405],{"type":45,"tag":164,"props":3372,"children":3373},{"style":778},[3374],{"type":50,"value":3375},"formatUnits",{"type":45,"tag":164,"props":3377,"children":3378},{"style":454},[3379],{"type":50,"value":785},{"type":45,"tag":164,"props":3381,"children":3382},{"style":2709},[3383],{"type":50,"value":3384},"100000000",{"type":45,"tag":164,"props":3386,"children":3387},{"style":762},[3388],{"type":50,"value":3294},{"type":45,"tag":164,"props":3390,"children":3391},{"style":448},[3392],{"type":50,"value":462},{"type":45,"tag":164,"props":3394,"children":3395},{"style":2709},[3396],{"type":50,"value":2712},{"type":45,"tag":164,"props":3398,"children":3399},{"style":454},[3400],{"type":50,"value":852},{"type":45,"tag":164,"props":3402,"children":3403},{"style":448},[3404],{"type":50,"value":3268},{"type":45,"tag":164,"props":3406,"children":3407},{"style":171},[3408],{"type":50,"value":3409}," \u002F\u002F \"100\"\n",{"type":45,"tag":249,"props":3411,"children":3413},{"id":3412},"address-utilities",[3414],{"type":50,"value":3415},"Address Utilities",{"type":45,"tag":152,"props":3417,"children":3419},{"className":430,"code":3418,"language":432,"meta":157,"style":157},"import { getAddress, isAddress } from 'viem';\n\nisAddress('0x...'); \u002F\u002F true\u002Ffalse\ngetAddress('0x...'); \u002F\u002F checksummed address\n",[3420],{"type":45,"tag":160,"props":3421,"children":3422},{"__ignoreMap":157},[3423,3472,3479,3516],{"type":45,"tag":164,"props":3424,"children":3425},{"class":166,"line":167},[3426,3430,3434,3439,3443,3448,3452,3456,3460,3464,3468],{"type":45,"tag":164,"props":3427,"children":3428},{"style":442},[3429],{"type":50,"value":445},{"type":45,"tag":164,"props":3431,"children":3432},{"style":448},[3433],{"type":50,"value":451},{"type":45,"tag":164,"props":3435,"children":3436},{"style":454},[3437],{"type":50,"value":3438}," getAddress",{"type":45,"tag":164,"props":3440,"children":3441},{"style":448},[3442],{"type":50,"value":462},{"type":45,"tag":164,"props":3444,"children":3445},{"style":454},[3446],{"type":50,"value":3447}," isAddress",{"type":45,"tag":164,"props":3449,"children":3450},{"style":448},[3451],{"type":50,"value":499},{"type":45,"tag":164,"props":3453,"children":3454},{"style":442},[3455],{"type":50,"value":504},{"type":45,"tag":164,"props":3457,"children":3458},{"style":448},[3459],{"type":50,"value":509},{"type":45,"tag":164,"props":3461,"children":3462},{"style":187},[3463],{"type":50,"value":17},{"type":45,"tag":164,"props":3465,"children":3466},{"style":448},[3467],{"type":50,"value":518},{"type":45,"tag":164,"props":3469,"children":3470},{"style":448},[3471],{"type":50,"value":523},{"type":45,"tag":164,"props":3473,"children":3474},{"class":166,"line":177},[3475],{"type":45,"tag":164,"props":3476,"children":3477},{"emptyLinePlaceholder":202},[3478],{"type":50,"value":205},{"type":45,"tag":164,"props":3480,"children":3481},{"class":166,"line":198},[3482,3487,3491,3495,3499,3503,3507,3511],{"type":45,"tag":164,"props":3483,"children":3484},{"style":778},[3485],{"type":50,"value":3486},"isAddress",{"type":45,"tag":164,"props":3488,"children":3489},{"style":454},[3490],{"type":50,"value":785},{"type":45,"tag":164,"props":3492,"children":3493},{"style":448},[3494],{"type":50,"value":518},{"type":45,"tag":164,"props":3496,"children":3497},{"style":187},[3498],{"type":50,"value":1904},{"type":45,"tag":164,"props":3500,"children":3501},{"style":448},[3502],{"type":50,"value":518},{"type":45,"tag":164,"props":3504,"children":3505},{"style":454},[3506],{"type":50,"value":852},{"type":45,"tag":164,"props":3508,"children":3509},{"style":448},[3510],{"type":50,"value":3268},{"type":45,"tag":164,"props":3512,"children":3513},{"style":171},[3514],{"type":50,"value":3515}," \u002F\u002F true\u002Ffalse\n",{"type":45,"tag":164,"props":3517,"children":3518},{"class":166,"line":208},[3519,3524,3528,3532,3536,3540,3544,3548],{"type":45,"tag":164,"props":3520,"children":3521},{"style":778},[3522],{"type":50,"value":3523},"getAddress",{"type":45,"tag":164,"props":3525,"children":3526},{"style":454},[3527],{"type":50,"value":785},{"type":45,"tag":164,"props":3529,"children":3530},{"style":448},[3531],{"type":50,"value":518},{"type":45,"tag":164,"props":3533,"children":3534},{"style":187},[3535],{"type":50,"value":1904},{"type":45,"tag":164,"props":3537,"children":3538},{"style":448},[3539],{"type":50,"value":518},{"type":45,"tag":164,"props":3541,"children":3542},{"style":454},[3543],{"type":50,"value":852},{"type":45,"tag":164,"props":3545,"children":3546},{"style":448},[3547],{"type":50,"value":3268},{"type":45,"tag":164,"props":3549,"children":3550},{"style":171},[3551],{"type":50,"value":3552}," \u002F\u002F checksummed address\n",{"type":45,"tag":249,"props":3554,"children":3556},{"id":3555},"hashing",[3557],{"type":50,"value":3558},"Hashing",{"type":45,"tag":152,"props":3560,"children":3562},{"className":430,"code":3561,"language":432,"meta":157,"style":157},"import { keccak256, toHex } from 'viem';\n\nkeccak256(toHex('hello')); \u002F\u002F 0x1c8aff950685c2ed4bc3174f3472287b56d9517b9c948127319a09a7a36deac8\n",[3563],{"type":45,"tag":160,"props":3564,"children":3565},{"__ignoreMap":157},[3566,3615,3622],{"type":45,"tag":164,"props":3567,"children":3568},{"class":166,"line":167},[3569,3573,3577,3582,3586,3591,3595,3599,3603,3607,3611],{"type":45,"tag":164,"props":3570,"children":3571},{"style":442},[3572],{"type":50,"value":445},{"type":45,"tag":164,"props":3574,"children":3575},{"style":448},[3576],{"type":50,"value":451},{"type":45,"tag":164,"props":3578,"children":3579},{"style":454},[3580],{"type":50,"value":3581}," keccak256",{"type":45,"tag":164,"props":3583,"children":3584},{"style":448},[3585],{"type":50,"value":462},{"type":45,"tag":164,"props":3587,"children":3588},{"style":454},[3589],{"type":50,"value":3590}," toHex",{"type":45,"tag":164,"props":3592,"children":3593},{"style":448},[3594],{"type":50,"value":499},{"type":45,"tag":164,"props":3596,"children":3597},{"style":442},[3598],{"type":50,"value":504},{"type":45,"tag":164,"props":3600,"children":3601},{"style":448},[3602],{"type":50,"value":509},{"type":45,"tag":164,"props":3604,"children":3605},{"style":187},[3606],{"type":50,"value":17},{"type":45,"tag":164,"props":3608,"children":3609},{"style":448},[3610],{"type":50,"value":518},{"type":45,"tag":164,"props":3612,"children":3613},{"style":448},[3614],{"type":50,"value":523},{"type":45,"tag":164,"props":3616,"children":3617},{"class":166,"line":177},[3618],{"type":45,"tag":164,"props":3619,"children":3620},{"emptyLinePlaceholder":202},[3621],{"type":50,"value":205},{"type":45,"tag":164,"props":3623,"children":3624},{"class":166,"line":198},[3625,3630,3634,3639,3643,3647,3652,3656,3661,3665],{"type":45,"tag":164,"props":3626,"children":3627},{"style":778},[3628],{"type":50,"value":3629},"keccak256",{"type":45,"tag":164,"props":3631,"children":3632},{"style":454},[3633],{"type":50,"value":785},{"type":45,"tag":164,"props":3635,"children":3636},{"style":778},[3637],{"type":50,"value":3638},"toHex",{"type":45,"tag":164,"props":3640,"children":3641},{"style":454},[3642],{"type":50,"value":785},{"type":45,"tag":164,"props":3644,"children":3645},{"style":448},[3646],{"type":50,"value":518},{"type":45,"tag":164,"props":3648,"children":3649},{"style":187},[3650],{"type":50,"value":3651},"hello",{"type":45,"tag":164,"props":3653,"children":3654},{"style":448},[3655],{"type":50,"value":518},{"type":45,"tag":164,"props":3657,"children":3658},{"style":454},[3659],{"type":50,"value":3660},"))",{"type":45,"tag":164,"props":3662,"children":3663},{"style":448},[3664],{"type":50,"value":3268},{"type":45,"tag":164,"props":3666,"children":3667},{"style":171},[3668],{"type":50,"value":3669}," \u002F\u002F 0x1c8aff950685c2ed4bc3174f3472287b56d9517b9c948127319a09a7a36deac8\n",{"type":45,"tag":525,"props":3671,"children":3672},{},[],{"type":45,"tag":59,"props":3674,"children":3676},{"id":3675},"error-handling",[3677],{"type":50,"value":3678},"Error Handling",{"type":45,"tag":53,"props":3680,"children":3681},{},[3682],{"type":50,"value":3683},"viem throws typed errors that can be caught and handled:",{"type":45,"tag":152,"props":3685,"children":3687},{"className":430,"code":3686,"language":432,"meta":157,"style":157},"import { ContractFunctionExecutionError, InsufficientFundsError } from 'viem'\n\ntry {\n  await client.writeContract(...)\n} catch (error) {\n  if (error instanceof ContractFunctionExecutionError) {\n    console.error('Contract call failed:', error.shortMessage)\n  }\n  if (error instanceof InsufficientFundsError) {\n    console.error('Not enough ETH for gas')\n  }\n}\n",[3688],{"type":45,"tag":160,"props":3689,"children":3690},{"__ignoreMap":157},[3691,3737,3744,3757,3791,3812,3848,3903,3911,3942,3978,3985],{"type":45,"tag":164,"props":3692,"children":3693},{"class":166,"line":167},[3694,3698,3702,3707,3711,3716,3720,3724,3728,3732],{"type":45,"tag":164,"props":3695,"children":3696},{"style":442},[3697],{"type":50,"value":445},{"type":45,"tag":164,"props":3699,"children":3700},{"style":448},[3701],{"type":50,"value":451},{"type":45,"tag":164,"props":3703,"children":3704},{"style":454},[3705],{"type":50,"value":3706}," ContractFunctionExecutionError",{"type":45,"tag":164,"props":3708,"children":3709},{"style":448},[3710],{"type":50,"value":462},{"type":45,"tag":164,"props":3712,"children":3713},{"style":454},[3714],{"type":50,"value":3715}," InsufficientFundsError",{"type":45,"tag":164,"props":3717,"children":3718},{"style":448},[3719],{"type":50,"value":499},{"type":45,"tag":164,"props":3721,"children":3722},{"style":442},[3723],{"type":50,"value":504},{"type":45,"tag":164,"props":3725,"children":3726},{"style":448},[3727],{"type":50,"value":509},{"type":45,"tag":164,"props":3729,"children":3730},{"style":187},[3731],{"type":50,"value":17},{"type":45,"tag":164,"props":3733,"children":3734},{"style":448},[3735],{"type":50,"value":3736},"'\n",{"type":45,"tag":164,"props":3738,"children":3739},{"class":166,"line":177},[3740],{"type":45,"tag":164,"props":3741,"children":3742},{"emptyLinePlaceholder":202},[3743],{"type":50,"value":205},{"type":45,"tag":164,"props":3745,"children":3746},{"class":166,"line":198},[3747,3752],{"type":45,"tag":164,"props":3748,"children":3749},{"style":442},[3750],{"type":50,"value":3751},"try",{"type":45,"tag":164,"props":3753,"children":3754},{"style":448},[3755],{"type":50,"value":3756}," {\n",{"type":45,"tag":164,"props":3758,"children":3759},{"class":166,"line":208},[3760,3765,3769,3773,3777,3781,3786],{"type":45,"tag":164,"props":3761,"children":3762},{"style":442},[3763],{"type":50,"value":3764},"  await",{"type":45,"tag":164,"props":3766,"children":3767},{"style":454},[3768],{"type":50,"value":891},{"type":45,"tag":164,"props":3770,"children":3771},{"style":448},[3772],{"type":50,"value":896},{"type":45,"tag":164,"props":3774,"children":3775},{"style":778},[3776],{"type":50,"value":2800},{"type":45,"tag":164,"props":3778,"children":3779},{"style":796},[3780],{"type":50,"value":785},{"type":45,"tag":164,"props":3782,"children":3783},{"style":448},[3784],{"type":50,"value":3785},"...",{"type":45,"tag":164,"props":3787,"children":3788},{"style":796},[3789],{"type":50,"value":3790},")\n",{"type":45,"tag":164,"props":3792,"children":3793},{"class":166,"line":217},[3794,3798,3803,3808],{"type":45,"tag":164,"props":3795,"children":3796},{"style":448},[3797],{"type":50,"value":847},{"type":45,"tag":164,"props":3799,"children":3800},{"style":442},[3801],{"type":50,"value":3802}," catch",{"type":45,"tag":164,"props":3804,"children":3805},{"style":454},[3806],{"type":50,"value":3807}," (error) ",{"type":45,"tag":164,"props":3809,"children":3810},{"style":448},[3811],{"type":50,"value":790},{"type":45,"tag":164,"props":3813,"children":3814},{"class":166,"line":815},[3815,3820,3825,3830,3835,3839,3844],{"type":45,"tag":164,"props":3816,"children":3817},{"style":442},[3818],{"type":50,"value":3819},"  if",{"type":45,"tag":164,"props":3821,"children":3822},{"style":796},[3823],{"type":50,"value":3824}," (",{"type":45,"tag":164,"props":3826,"children":3827},{"style":454},[3828],{"type":50,"value":3829},"error",{"type":45,"tag":164,"props":3831,"children":3832},{"style":448},[3833],{"type":50,"value":3834}," instanceof",{"type":45,"tag":164,"props":3836,"children":3837},{"style":181},[3838],{"type":50,"value":3706},{"type":45,"tag":164,"props":3840,"children":3841},{"style":796},[3842],{"type":50,"value":3843},") ",{"type":45,"tag":164,"props":3845,"children":3846},{"style":448},[3847],{"type":50,"value":790},{"type":45,"tag":164,"props":3849,"children":3850},{"class":166,"line":841},[3851,3856,3860,3864,3868,3872,3877,3881,3885,3890,3894,3899],{"type":45,"tag":164,"props":3852,"children":3853},{"style":454},[3854],{"type":50,"value":3855},"    console",{"type":45,"tag":164,"props":3857,"children":3858},{"style":448},[3859],{"type":50,"value":896},{"type":45,"tag":164,"props":3861,"children":3862},{"style":778},[3863],{"type":50,"value":3829},{"type":45,"tag":164,"props":3865,"children":3866},{"style":796},[3867],{"type":50,"value":785},{"type":45,"tag":164,"props":3869,"children":3870},{"style":448},[3871],{"type":50,"value":518},{"type":45,"tag":164,"props":3873,"children":3874},{"style":187},[3875],{"type":50,"value":3876},"Contract call failed:",{"type":45,"tag":164,"props":3878,"children":3879},{"style":448},[3880],{"type":50,"value":518},{"type":45,"tag":164,"props":3882,"children":3883},{"style":448},[3884],{"type":50,"value":462},{"type":45,"tag":164,"props":3886,"children":3887},{"style":454},[3888],{"type":50,"value":3889}," error",{"type":45,"tag":164,"props":3891,"children":3892},{"style":448},[3893],{"type":50,"value":896},{"type":45,"tag":164,"props":3895,"children":3896},{"style":454},[3897],{"type":50,"value":3898},"shortMessage",{"type":45,"tag":164,"props":3900,"children":3901},{"style":796},[3902],{"type":50,"value":3790},{"type":45,"tag":164,"props":3904,"children":3905},{"class":166,"line":859},[3906],{"type":45,"tag":164,"props":3907,"children":3908},{"style":448},[3909],{"type":50,"value":3910},"  }\n",{"type":45,"tag":164,"props":3912,"children":3913},{"class":166,"line":867},[3914,3918,3922,3926,3930,3934,3938],{"type":45,"tag":164,"props":3915,"children":3916},{"style":442},[3917],{"type":50,"value":3819},{"type":45,"tag":164,"props":3919,"children":3920},{"style":796},[3921],{"type":50,"value":3824},{"type":45,"tag":164,"props":3923,"children":3924},{"style":454},[3925],{"type":50,"value":3829},{"type":45,"tag":164,"props":3927,"children":3928},{"style":448},[3929],{"type":50,"value":3834},{"type":45,"tag":164,"props":3931,"children":3932},{"style":181},[3933],{"type":50,"value":3715},{"type":45,"tag":164,"props":3935,"children":3936},{"style":796},[3937],{"type":50,"value":3843},{"type":45,"tag":164,"props":3939,"children":3940},{"style":448},[3941],{"type":50,"value":790},{"type":45,"tag":164,"props":3943,"children":3944},{"class":166,"line":912},[3945,3949,3953,3957,3961,3965,3970,3974],{"type":45,"tag":164,"props":3946,"children":3947},{"style":454},[3948],{"type":50,"value":3855},{"type":45,"tag":164,"props":3950,"children":3951},{"style":448},[3952],{"type":50,"value":896},{"type":45,"tag":164,"props":3954,"children":3955},{"style":778},[3956],{"type":50,"value":3829},{"type":45,"tag":164,"props":3958,"children":3959},{"style":796},[3960],{"type":50,"value":785},{"type":45,"tag":164,"props":3962,"children":3963},{"style":448},[3964],{"type":50,"value":518},{"type":45,"tag":164,"props":3966,"children":3967},{"style":187},[3968],{"type":50,"value":3969},"Not enough ETH for gas",{"type":45,"tag":164,"props":3971,"children":3972},{"style":448},[3973],{"type":50,"value":518},{"type":45,"tag":164,"props":3975,"children":3976},{"style":796},[3977],{"type":50,"value":3790},{"type":45,"tag":164,"props":3979,"children":3980},{"class":166,"line":942},[3981],{"type":45,"tag":164,"props":3982,"children":3983},{"style":448},[3984],{"type":50,"value":3910},{"type":45,"tag":164,"props":3986,"children":3987},{"class":166,"line":958},[3988],{"type":45,"tag":164,"props":3989,"children":3990},{"style":448},[3991],{"type":50,"value":3992},"}\n",{"type":45,"tag":525,"props":3994,"children":3995},{},[],{"type":45,"tag":59,"props":3997,"children":3999},{"id":3998},"resources",[4000],{"type":50,"value":4001},"Resources",{"type":45,"tag":540,"props":4003,"children":4004},{},[4005,4016,4026,4036],{"type":45,"tag":544,"props":4006,"children":4007},{},[4008],{"type":45,"tag":2993,"props":4009,"children":4013},{"href":4010,"rel":4011},"https:\u002F\u002Fviem.sh",[4012],"nofollow",[4014],{"type":50,"value":4015},"viem Documentation",{"type":45,"tag":544,"props":4017,"children":4018},{},[4019],{"type":45,"tag":2993,"props":4020,"children":4023},{"href":4021,"rel":4022},"https:\u002F\u002Fwagmi.sh",[4012],[4024],{"type":50,"value":4025},"wagmi Documentation",{"type":45,"tag":544,"props":4027,"children":4028},{},[4029],{"type":45,"tag":2993,"props":4030,"children":4033},{"href":4031,"rel":4032},"https:\u002F\u002Fgithub.com\u002Fwevm\u002Fviem",[4012],[4034],{"type":50,"value":4035},"viem GitHub",{"type":45,"tag":544,"props":4037,"children":4038},{},[4039],{"type":45,"tag":2993,"props":4040,"children":4043},{"href":4041,"rel":4042},"https:\u002F\u002Fgithub.com\u002Fwevm\u002Fwagmi",[4012],[4044],{"type":50,"value":4045},"wagmi GitHub",{"type":45,"tag":4047,"props":4048,"children":4049},"style",{},[4050],{"type":50,"value":4051},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":4053,"total":1366},[4054,4069,4084,4097,4110,4123,4136],{"slug":4055,"name":4055,"fn":4056,"description":4057,"org":4058,"tags":4059,"stars":24,"repoUrl":25,"updatedAt":4068},"configurator","configure auction smart contract parameters","Configure CCA (Continuous Clearing Auction) smart contract parameters through an interactive bulk form flow. Use when user says \"configure auction\", \"cca auction\", \"setup token auction\", \"auction configuration\", \"continuous auction\", or mentions CCA contracts.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4060,4063,4064,4067],{"name":4061,"slug":4062,"type":15},"Configuration","configuration",{"name":22,"slug":23,"type":15},{"name":4065,"slug":4066,"type":15},"Smart Contracts","smart-contracts",{"name":13,"slug":14,"type":15},"2026-07-17T06:08:08.974641",{"slug":4070,"name":4070,"fn":4071,"description":4072,"org":4073,"tags":4074,"stars":24,"repoUrl":25,"updatedAt":4083},"copy-trade","copy trades from crypto wallets","This skill should be used when the user asks to \"copy trades from\" a wallet, \"mirror a wallet\", \"follow this address\", set up \"copy trading\", \"track and replicate a trader\", or mirror another account's swaps bounded by guardrails. Watches a target wallet and mirrors its trades, filtered by chain, asset match, position size, and the follower's own portfolio state.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4075,4078,4079,4082],{"name":4076,"slug":4077,"type":15},"Automation","automation",{"name":22,"slug":23,"type":15},{"name":4080,"slug":4081,"type":15},"Trading","trading",{"name":13,"slug":14,"type":15},"2026-07-17T06:04:21.974052",{"slug":4085,"name":4085,"fn":4086,"description":4087,"org":4088,"tags":4089,"stars":24,"repoUrl":25,"updatedAt":4096},"dca-bot","automate dollar cost average token purchases","This skill should be used when the user wants to \"dca into\" a token, \"buy X every day\", set up a \"recurring buy\", \"dollar cost average\" into an asset, \"schedule a buy\", or \"auto-buy on a dip\". Buys a fixed amount into a token on a schedule, optionally only when a condition holds (for example only when ETH is below a price threshold). The host agent's scheduler wakes the skill on a cadence; each wake is one self-contained run.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4090,4091,4094,4095],{"name":4076,"slug":4077,"type":15},{"name":4092,"slug":4093,"type":15},"DeFi","defi",{"name":4080,"slug":4081,"type":15},{"name":13,"slug":14,"type":15},"2026-07-17T06:05:37.160647",{"slug":4098,"name":4098,"fn":4099,"description":4100,"org":4101,"tags":4102,"stars":24,"repoUrl":25,"updatedAt":4109},"deployer","deploy Uniswap CCA smart contracts","Deploy CCA (Continuous Clearing Auction) smart contracts using the Factory pattern. Use when user says \"deploy auction\", \"deploy cca\", \"factory deployment\", or wants to deploy a configured auction.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4103,4106,4107,4108],{"name":4104,"slug":4105,"type":15},"Deployment","deployment",{"name":22,"slug":23,"type":15},{"name":4065,"slug":4066,"type":15},{"name":13,"slug":14,"type":15},"2026-07-17T06:08:09.661977",{"slug":4111,"name":4111,"fn":4112,"description":4113,"org":4114,"tags":4115,"stars":24,"repoUrl":25,"updatedAt":4122},"index-bot","create and rebalance asset portfolios","This skill should be used when the user asks to \"create an index\", \"build a basket of top assets\", \"buy a weighted basket\", \"make a portfolio of assets\", \"equal-weight basket\", \"rebalance my portfolio\", \"track the top N tokens\", or wants an automated, weighted multi-asset basket that buys in one pass and rebalances on a cadence. Builds the basket spec, delegates each buy and rebalance swap to the swap-integration Trading API flow, and records target weights in state.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4116,4117,4120,4121],{"name":22,"slug":23,"type":15},{"name":4118,"slug":4119,"type":15},"Portfolio Management","portfolio-management",{"name":4080,"slug":4081,"type":15},{"name":13,"slug":14,"type":15},"2026-07-17T06:04:22.328253",{"slug":4124,"name":4124,"fn":4125,"description":4126,"org":4127,"tags":4128,"stars":24,"repoUrl":25,"updatedAt":4135},"liquidity-planner","plan and create liquidity positions","This skill should be used when the user asks to \"provide liquidity\", \"create LP position\", \"add liquidity to pool\", \"become a liquidity provider\", \"create v3 position\", \"create v4 position\", \"concentrated liquidity\", \"set price range\", or mentions providing liquidity, LP positions, or liquidity pools on Uniswap. Generates deep links to create positions in the Uniswap interface.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4129,4130,4131,4134],{"name":4092,"slug":4093,"type":15},{"name":22,"slug":23,"type":15},{"name":4132,"slug":4133,"type":15},"Liquidity","liquidity",{"name":13,"slug":14,"type":15},"2026-07-17T06:08:09.315325",{"slug":4137,"name":4137,"fn":4138,"description":4139,"org":4140,"tags":4141,"stars":24,"repoUrl":25,"updatedAt":4146},"lp-integration","integrate Uniswap liquidity provisioning","Integrate Uniswap liquidity provisioning (LP) into applications via the LP REST API. Use when the user says \"LP API\", \"liquidity provisioning API\", \"provide liquidity programmatically\", \"create LP position via API\", \"add liquidity via API\", \"increase liquidity\", \"decrease liquidity\", \"remove liquidity\", \"claim LP fees\", \"collect LP fees\", \"manage LP positions in code\", or mentions building a backend, bot, or frontend that creates or manages Uniswap v2\u002Fv3\u002Fv4 liquidity positions through an API. Also use when debugging LP API calls (e.g. \u002Flp\u002Fcreate, \u002Flp\u002Fcheck_approval, \u002Flp\u002Fincrease, \u002Flp\u002Fdecrease, \u002Flp\u002Fclaim_fees), unexpected response fields, the approval or EIP-712 permit flow, or transaction-building errors for liquidity positions. For generating deep links to the Uniswap web app instead of calling the API, use the liquidity-planner skill; for using the Uniswap v4 SDK directly rather than the REST API, use the v4-sdk-integration skill.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4142,4143,4144,4145],{"name":19,"slug":20,"type":15},{"name":4092,"slug":4093,"type":15},{"name":4132,"slug":4133,"type":15},{"name":13,"slug":14,"type":15},"2026-07-17T06:08:13.704465",{"items":4148,"total":1482},[4149,4156,4163,4170,4177,4184,4191,4198,4212,4223,4234,4245],{"slug":4055,"name":4055,"fn":4056,"description":4057,"org":4150,"tags":4151,"stars":24,"repoUrl":25,"updatedAt":4068},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4152,4153,4154,4155],{"name":4061,"slug":4062,"type":15},{"name":22,"slug":23,"type":15},{"name":4065,"slug":4066,"type":15},{"name":13,"slug":14,"type":15},{"slug":4070,"name":4070,"fn":4071,"description":4072,"org":4157,"tags":4158,"stars":24,"repoUrl":25,"updatedAt":4083},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4159,4160,4161,4162],{"name":4076,"slug":4077,"type":15},{"name":22,"slug":23,"type":15},{"name":4080,"slug":4081,"type":15},{"name":13,"slug":14,"type":15},{"slug":4085,"name":4085,"fn":4086,"description":4087,"org":4164,"tags":4165,"stars":24,"repoUrl":25,"updatedAt":4096},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4166,4167,4168,4169],{"name":4076,"slug":4077,"type":15},{"name":4092,"slug":4093,"type":15},{"name":4080,"slug":4081,"type":15},{"name":13,"slug":14,"type":15},{"slug":4098,"name":4098,"fn":4099,"description":4100,"org":4171,"tags":4172,"stars":24,"repoUrl":25,"updatedAt":4109},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4173,4174,4175,4176],{"name":4104,"slug":4105,"type":15},{"name":22,"slug":23,"type":15},{"name":4065,"slug":4066,"type":15},{"name":13,"slug":14,"type":15},{"slug":4111,"name":4111,"fn":4112,"description":4113,"org":4178,"tags":4179,"stars":24,"repoUrl":25,"updatedAt":4122},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4180,4181,4182,4183],{"name":22,"slug":23,"type":15},{"name":4118,"slug":4119,"type":15},{"name":4080,"slug":4081,"type":15},{"name":13,"slug":14,"type":15},{"slug":4124,"name":4124,"fn":4125,"description":4126,"org":4185,"tags":4186,"stars":24,"repoUrl":25,"updatedAt":4135},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4187,4188,4189,4190],{"name":4092,"slug":4093,"type":15},{"name":22,"slug":23,"type":15},{"name":4132,"slug":4133,"type":15},{"name":13,"slug":14,"type":15},{"slug":4137,"name":4137,"fn":4138,"description":4139,"org":4192,"tags":4193,"stars":24,"repoUrl":25,"updatedAt":4146},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4194,4195,4196,4197],{"name":19,"slug":20,"type":15},{"name":4092,"slug":4093,"type":15},{"name":4132,"slug":4133,"type":15},{"name":13,"slug":14,"type":15},{"slug":4199,"name":4199,"fn":4200,"description":4201,"org":4202,"tags":4203,"stars":24,"repoUrl":25,"updatedAt":4211},"pay-with-any-token","pay HTTP 402 challenges with Uniswap","Pay HTTP 402 payment challenges using tokens via the Tempo CLI and Uniswap Trading API. Use when the user encounters a 402 Payment Required response, needs to fulfill a machine payment, mentions \"MPP\", \"Tempo payment\", \"pay for API access\", \"HTTP 402\", \"x402\", \"machine payment protocol\", \"pay-with-any-token\", \"use tempo\", \"tempo request\", or \"tempo wallet\".\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4204,4205,4208,4209],{"name":4092,"slug":4093,"type":15},{"name":4206,"slug":4207,"type":15},"Payments","payments",{"name":4080,"slug":4081,"type":15},{"name":4210,"slug":4210,"type":15},"x402","2026-07-17T06:04:29.756086",{"slug":4213,"name":4213,"fn":4214,"description":4215,"org":4216,"tags":4217,"stars":24,"repoUrl":25,"updatedAt":4222},"pay-with-app","pay 402 payment challenges","Pay HTTP 402 payment challenges issued by OKX's Agent Payments Protocol (APP) on X Layer using tokens from any chain via the Uniswap Trading API. Use this skill whenever the user encounters a 402 challenge whose network resolves to X Layer (chain 196), mentions \"APP\", \"Agent Payments Protocol\", \"OKX agent payment\", \"OKX Onchain OS\", \"OKX agentic wallet\", \"x402 on X Layer\", \"USDT0\", \"x42\", \"Instant Payment\", \"Batch Payment\", \"pay for X Layer API\", or wants to pay an OKX-backed merchant. Even when the user does not explicitly say APP, prefer this skill for any 402 challenge whose network resolves to X Layer (chain 196). For 402 challenges on other chains (Ethereum, Base, Arbitrum, Tempo) use pay-with-any-token instead.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4218,4219,4220,4221],{"name":19,"slug":20,"type":15},{"name":4206,"slug":4207,"type":15},{"name":13,"slug":14,"type":15},{"name":4210,"slug":4210,"type":15},"2026-07-17T06:07:38.795043",{"slug":4224,"name":4224,"fn":4225,"description":4226,"org":4227,"tags":4228,"stars":24,"repoUrl":25,"updatedAt":4233},"swap-integration","integrate Uniswap swap functionality","Integrate Uniswap swaps into applications. Use when user says \"integrate swaps\", \"uniswap\", \"trading api\", \"add swap functionality\", \"build a swap frontend\", \"create a swap script\", \"smart contract swap integration\", \"use Universal Router\", \"Trading API\", or mentions swapping tokens via Uniswap.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4229,4230,4231,4232],{"name":19,"slug":20,"type":15},{"name":4092,"slug":4093,"type":15},{"name":4080,"slug":4081,"type":15},{"name":13,"slug":14,"type":15},"2026-07-17T06:08:10.354222",{"slug":4235,"name":4235,"fn":4236,"description":4237,"org":4238,"tags":4239,"stars":24,"repoUrl":25,"updatedAt":4244},"swap-planner","plan and execute token swaps","This skill should be used when the user asks to \"swap tokens\", \"trade ETH for USDC\", \"exchange tokens on Uniswap\", \"buy tokens\", \"sell tokens\", \"convert ETH to stablecoins\", \"find memecoins\", \"discover tokens\", \"research tokens\", \"tokens to buy\", \"find tokens to swap\", \"what should I buy\", or mentions swapping, trading, researching, discovering, buying, or exchanging tokens on any Uniswap-supported chain. Supports both known token swaps and token discovery workflows (discovery uses keyword search and web search — there is no live \"trending\" feed). Generates deep links to execute swaps in the Uniswap interface.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4240,4241,4242,4243],{"name":4092,"slug":4093,"type":15},{"name":4132,"slug":4133,"type":15},{"name":4080,"slug":4081,"type":15},{"name":13,"slug":14,"type":15},"2026-07-17T06:08:10.008152",{"slug":4246,"name":4246,"fn":4247,"description":4248,"org":4249,"tags":4250,"stars":24,"repoUrl":25,"updatedAt":4254},"v4-hook-generator","generate Uniswap v4 hook contracts","Generate Uniswap v4 hook contracts via OpenZeppelin MCP. Use when building custom swap logic, async swaps, hook-owned liquidity, custom curves, dynamic fees, MEV protection, limit orders, or oracle hooks.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[4251,4252,4253],{"name":22,"slug":23,"type":15},{"name":4065,"slug":4066,"type":15},{"name":13,"slug":14,"type":15},"2026-07-17T06:04:19.17669"]