[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-metamask-send-evm-transaction":3,"mdc-4lfdwt-key":32,"related-repo-metamask-send-evm-transaction":5126,"related-org-metamask-send-evm-transaction":5221},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":22,"repoUrl":23,"updatedAt":24,"license":25,"forks":22,"topics":26,"repo":27,"sourceUrl":30,"mdContent":31},"send-evm-transaction","send EVM transactions with MetaMask","Send ETH and contract transactions with MetaMask using eth_sendTransaction via the EIP-1193 provider, gas estimation, receipt polling, and the connectWith shortcut",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},"metamask","MetaMask","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fmetamask.png",[12,16,19],{"name":13,"slug":14,"type":15},"Web3","web3","tag",{"name":17,"slug":18,"type":15},"API Development","api-development",{"name":20,"slug":21,"type":15},"Ethereum","ethereum",2,"https:\u002F\u002Fgithub.com\u002FMetaMask\u002Fmetamask-connect-cursor-plugin","2026-07-13T06:11:56.866623",null,[],{"repoUrl":23,"stars":22,"forks":22,"topics":28,"description":29},[],"Cursor plugin for building dApps with the MetaMask Connect SDK — skills, rules, and agents for EVM, Solana, and multichain integrations","https:\u002F\u002Fgithub.com\u002FMetaMask\u002Fmetamask-connect-cursor-plugin\u002Ftree\u002FHEAD\u002Fskills\u002Fsend-evm-transaction","---\nname: send-evm-transaction\ndescription: Send ETH and contract transactions with MetaMask using eth_sendTransaction via the EIP-1193 provider, gas estimation, receipt polling, and the connectWith shortcut\n---\n# Send EVM Transactions with MetaMask Connect\n\n## When to use\n\nUse this skill when:\n- Sending ETH transfers via `eth_sendTransaction`\n- Calling smart contract functions by encoding `data` in the transaction\n- Estimating gas with `eth_estimateGas` before sending\n- Polling for transaction confirmation with `eth_getTransactionReceipt`\n- Using the `connectWith` shortcut to connect and send in a single approval\n\n## Workflow\n\n### Step 1: Get the provider and connected account\n\n```typescript\nimport { createEVMClient, getInfuraRpcUrls } from '@metamask\u002Fconnect-evm';\nimport type { Hex, Address } from '@metamask\u002Fconnect-evm';\n\nconst client = await createEVMClient({\n  dapp: { name: 'My DApp', url: window.location.href },\n  api: {\n    supportedNetworks: {\n      ...getInfuraRpcUrls({ infuraApiKey: 'YOUR_INFURA_KEY', chainIds: ['0x1', '0x89'] }),\n    },\n  },\n});\n\nconst { accounts } = await client.connect({ chainIds: ['0x1'] });\nconst provider = client.getProvider();\nconst from = accounts[0] as Address;\n```\n\n### Step 2: Convert ETH to hex wei\n\nAll `value` fields in transactions must be hex-encoded wei. 1 ETH = 10^18 wei:\n\n```typescript\nfunction ethToHexWei(ethAmount: string): Hex {\n  const wei = BigInt(Math.round(parseFloat(ethAmount) * 1e18));\n  return `0x${wei.toString(16)}` as Hex;\n}\n\n\u002F\u002F Examples\nethToHexWei('0.01');   \u002F\u002F '0x2386f26fc10000'\nethToHexWei('0.001');  \u002F\u002F '0x38d7ea4c68000'\nethToHexWei('1');      \u002F\u002F '0xde0b6b3a7640000'\n```\n\n### Step 3: Send an ETH transfer\n\nBuild the transaction params and call `eth_sendTransaction`:\n\n```typescript\nconst txParams = {\n  from: from,\n  to: '0xRecipientAddress' as Address,\n  value: ethToHexWei('0.01'),\n};\n\ntry {\n  const txHash = await provider.request({\n    method: 'eth_sendTransaction',\n    params: [txParams],\n  }) as Hex;\n\n  console.log('Transaction hash:', txHash);\n} catch (err: any) {\n  if (err.code === 4001) {\n    console.log('User rejected the transaction');\n    return;\n  }\n  if (err.code === -32002) {\n    console.log('A transaction request is already pending');\n    return;\n  }\n  throw err;\n}\n```\n\n### Step 4: Estimate gas before sending\n\nUse `eth_estimateGas` to get a gas estimate, then optionally add a buffer:\n\n```typescript\nconst txParams = {\n  from: from,\n  to: '0xRecipientAddress' as Address,\n  value: ethToHexWei('0.01'),\n  data: '0x', \u002F\u002F empty for plain ETH transfer\n};\n\nconst estimatedGas = await provider.request({\n  method: 'eth_estimateGas',\n  params: [txParams],\n}) as Hex;\n\n\u002F\u002F Add 20% buffer to the estimate\nconst gasWithBuffer = BigInt(estimatedGas) * 120n \u002F 100n;\nconst gasHex = `0x${gasWithBuffer.toString(16)}` as Hex;\n\nconst txHash = await provider.request({\n  method: 'eth_sendTransaction',\n  params: [{\n    ...txParams,\n    gas: gasHex,\n  }],\n}) as Hex;\n```\n\n### Step 5: Send a contract interaction\n\nEncode the function call as the `data` field. For an ERC-20 `transfer(address,uint256)`:\n\n```typescript\n\u002F\u002F ERC-20 transfer function selector: 0xa9059cbb\n\u002F\u002F Encode: transfer(0xRecipient, 1000000) for USDC (6 decimals)\nconst recipient = '0xRecipientAddress'.slice(2).padStart(64, '0');\nconst amount = (1000000).toString(16).padStart(64, '0'); \u002F\u002F 1 USDC\n\nconst data = `0xa9059cbb${recipient}${amount}` as Hex;\n\nconst txHash = await provider.request({\n  method: 'eth_sendTransaction',\n  params: [{\n    from: from,\n    to: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48' as Address, \u002F\u002F USDC contract\n    data: data,\n    value: '0x0', \u002F\u002F no ETH sent with token transfer\n  }],\n}) as Hex;\n```\n\n### Step 6: Poll for transaction receipt\n\nAfter sending, poll `eth_getTransactionReceipt` until the transaction is confirmed:\n\n```typescript\nasync function waitForReceipt(\n  provider: any,\n  txHash: Hex,\n  intervalMs = 2000,\n  timeoutMs = 120000,\n): Promise\u003Cany> {\n  const start = Date.now();\n\n  while (Date.now() - start \u003C timeoutMs) {\n    const receipt = await provider.request({\n      method: 'eth_getTransactionReceipt',\n      params: [txHash],\n    });\n\n    if (receipt !== null) {\n      \u002F\u002F receipt.status: '0x1' = success, '0x0' = revert\n      return receipt;\n    }\n\n    await new Promise((r) => setTimeout(r, intervalMs));\n  }\n\n  throw new Error(`Transaction ${txHash} not confirmed within ${timeoutMs}ms`);\n}\n\n\u002F\u002F Usage\nconst txHash = await provider.request({\n  method: 'eth_sendTransaction',\n  params: [txParams],\n}) as Hex;\n\nconst receipt = await waitForReceipt(provider, txHash);\n\nif (receipt.status === '0x1') {\n  console.log('Transaction confirmed in block:', parseInt(receipt.blockNumber, 16));\n} else {\n  console.error('Transaction reverted');\n}\n```\n\n### Step 7: Use connectWith for single-approval flow\n\n`connectWith` connects the wallet and sends a transaction in one user interaction:\n\n```typescript\nconst { accounts, chainId, result } = await client.connectWith({\n  method: 'eth_sendTransaction',\n  \u002F\u002F The params function receives the FIRST connected account (a single\n  \u002F\u002F Address), not the accounts array\n  params: (account: Address) => [\n    {\n      from: account,\n      to: '0xRecipientAddress' as Address,\n      value: ethToHexWei('0.01'),\n    },\n  ],\n  chainIds: ['0x1'],\n});\n\n\u002F\u002F result is the transaction hash\nconst txHash = result as Hex;\nconsole.log('Connected as:', accounts[0]);\nconsole.log('Transaction hash:', txHash);\n```\n\nThe `params` field accepts a function that receives the first connected account (`(account: Address) => unknown[]`), letting you use the connected address as `from` without knowing it ahead of time.\n\n### Step 8: Handle errors\n\n```typescript\ntry {\n  const txHash = await provider.request({\n    method: 'eth_sendTransaction',\n    params: [txParams],\n  });\n} catch (err: any) {\n  switch (err.code) {\n    case 4001:\n      \u002F\u002F User rejected the transaction — offer retry\n      break;\n    case -32002:\n      \u002F\u002F Request already pending — wait for user action in MetaMask\n      break;\n    case -32000:\n      \u002F\u002F Execution error (insufficient funds, gas too low, etc.)\n      console.error('Execution error:', err.message);\n      break;\n    default:\n      console.error('Transaction failed:', err);\n  }\n}\n```\n\n## Important Notes\n\n- **`value` must be hex-encoded wei** — `'0xde0b6b3a7640000'` is 1 ETH. Never pass decimal strings or ETH-denominated numbers directly.\n- **`from` must match the connected account** — MetaMask rejects transactions where `from` doesn't match the active account.\n- **`eth_sendTransaction` returns a transaction hash, not a receipt** — poll `eth_getTransactionReceipt` to confirm the transaction was mined.\n- **Receipt `status` is hex** — `'0x1'` means success, `'0x0'` means the transaction was mined but reverted.\n- **`eth_estimateGas` can throw** — if the transaction would revert, estimation fails. Wrap it in a try\u002Fcatch and show the error to the user.\n- **`connectWith` params can be a function** — `params: (account) => [{ from: account, ... }]` — it receives the first connected account (a single `Address`, not an array).\n- **Chain IDs are always hex strings in SDK calls** — `'0x1'`, `'0x89'`, `'0xaa36a7'`. The `chainId` in transaction objects follows the same convention when present.\n- **Error code 4001** means the user deliberately rejected — handle gracefully.\n- **Error code -32002** means a request is pending — do not send another transaction.\n- **`0x1` is auto-included** in every `connect()` \u002F `connectWith()` call.\n",{"data":33,"body":34},{"name":4,"description":6},{"type":35,"children":36},"root",[37,46,53,59,126,132,139,769,775,788,1126,1132,1143,1753,1759,1771,2358,2364,2383,2906,2912,2924,3910,3916,3926,4401,4430,4436,4875,4881,5120],{"type":38,"tag":39,"props":40,"children":42},"element","h1",{"id":41},"send-evm-transactions-with-metamask-connect",[43],{"type":44,"value":45},"text","Send EVM Transactions with MetaMask Connect",{"type":38,"tag":47,"props":48,"children":50},"h2",{"id":49},"when-to-use",[51],{"type":44,"value":52},"When to use",{"type":38,"tag":54,"props":55,"children":56},"p",{},[57],{"type":44,"value":58},"Use this skill when:",{"type":38,"tag":60,"props":61,"children":62},"ul",{},[63,76,89,102,113],{"type":38,"tag":64,"props":65,"children":66},"li",{},[67,69],{"type":44,"value":68},"Sending ETH transfers via ",{"type":38,"tag":70,"props":71,"children":73},"code",{"className":72},[],[74],{"type":44,"value":75},"eth_sendTransaction",{"type":38,"tag":64,"props":77,"children":78},{},[79,81,87],{"type":44,"value":80},"Calling smart contract functions by encoding ",{"type":38,"tag":70,"props":82,"children":84},{"className":83},[],[85],{"type":44,"value":86},"data",{"type":44,"value":88}," in the transaction",{"type":38,"tag":64,"props":90,"children":91},{},[92,94,100],{"type":44,"value":93},"Estimating gas with ",{"type":38,"tag":70,"props":95,"children":97},{"className":96},[],[98],{"type":44,"value":99},"eth_estimateGas",{"type":44,"value":101}," before sending",{"type":38,"tag":64,"props":103,"children":104},{},[105,107],{"type":44,"value":106},"Polling for transaction confirmation with ",{"type":38,"tag":70,"props":108,"children":110},{"className":109},[],[111],{"type":44,"value":112},"eth_getTransactionReceipt",{"type":38,"tag":64,"props":114,"children":115},{},[116,118,124],{"type":44,"value":117},"Using the ",{"type":38,"tag":70,"props":119,"children":121},{"className":120},[],[122],{"type":44,"value":123},"connectWith",{"type":44,"value":125}," shortcut to connect and send in a single approval",{"type":38,"tag":47,"props":127,"children":129},{"id":128},"workflow",[130],{"type":44,"value":131},"Workflow",{"type":38,"tag":133,"props":134,"children":136},"h3",{"id":135},"step-1-get-the-provider-and-connected-account",[137],{"type":44,"value":138},"Step 1: Get the provider and connected account",{"type":38,"tag":140,"props":141,"children":146},"pre",{"className":142,"code":143,"language":144,"meta":145,"style":145},"language-typescript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { createEVMClient, getInfuraRpcUrls } from '@metamask\u002Fconnect-evm';\nimport type { Hex, Address } from '@metamask\u002Fconnect-evm';\n\nconst client = await createEVMClient({\n  dapp: { name: 'My DApp', url: window.location.href },\n  api: {\n    supportedNetworks: {\n      ...getInfuraRpcUrls({ infuraApiKey: 'YOUR_INFURA_KEY', chainIds: ['0x1', '0x89'] }),\n    },\n  },\n});\n\nconst { accounts } = await client.connect({ chainIds: ['0x1'] });\nconst provider = client.getProvider();\nconst from = accounts[0] as Address;\n","typescript","",[147],{"type":38,"tag":70,"props":148,"children":149},{"__ignoreMap":145},[150,215,269,279,319,402,420,437,550,559,568,584,592,684,723],{"type":38,"tag":151,"props":152,"children":155},"span",{"class":153,"line":154},"line",1,[156,162,168,174,179,184,189,194,199,205,210],{"type":38,"tag":151,"props":157,"children":159},{"style":158},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[160],{"type":44,"value":161},"import",{"type":38,"tag":151,"props":163,"children":165},{"style":164},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[166],{"type":44,"value":167}," {",{"type":38,"tag":151,"props":169,"children":171},{"style":170},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[172],{"type":44,"value":173}," createEVMClient",{"type":38,"tag":151,"props":175,"children":176},{"style":164},[177],{"type":44,"value":178},",",{"type":38,"tag":151,"props":180,"children":181},{"style":170},[182],{"type":44,"value":183}," getInfuraRpcUrls",{"type":38,"tag":151,"props":185,"children":186},{"style":164},[187],{"type":44,"value":188}," }",{"type":38,"tag":151,"props":190,"children":191},{"style":158},[192],{"type":44,"value":193}," from",{"type":38,"tag":151,"props":195,"children":196},{"style":164},[197],{"type":44,"value":198}," '",{"type":38,"tag":151,"props":200,"children":202},{"style":201},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[203],{"type":44,"value":204},"@metamask\u002Fconnect-evm",{"type":38,"tag":151,"props":206,"children":207},{"style":164},[208],{"type":44,"value":209},"'",{"type":38,"tag":151,"props":211,"children":212},{"style":164},[213],{"type":44,"value":214},";\n",{"type":38,"tag":151,"props":216,"children":217},{"class":153,"line":22},[218,222,227,231,236,240,245,249,253,257,261,265],{"type":38,"tag":151,"props":219,"children":220},{"style":158},[221],{"type":44,"value":161},{"type":38,"tag":151,"props":223,"children":224},{"style":158},[225],{"type":44,"value":226}," type",{"type":38,"tag":151,"props":228,"children":229},{"style":164},[230],{"type":44,"value":167},{"type":38,"tag":151,"props":232,"children":233},{"style":170},[234],{"type":44,"value":235}," Hex",{"type":38,"tag":151,"props":237,"children":238},{"style":164},[239],{"type":44,"value":178},{"type":38,"tag":151,"props":241,"children":242},{"style":170},[243],{"type":44,"value":244}," Address",{"type":38,"tag":151,"props":246,"children":247},{"style":164},[248],{"type":44,"value":188},{"type":38,"tag":151,"props":250,"children":251},{"style":158},[252],{"type":44,"value":193},{"type":38,"tag":151,"props":254,"children":255},{"style":164},[256],{"type":44,"value":198},{"type":38,"tag":151,"props":258,"children":259},{"style":201},[260],{"type":44,"value":204},{"type":38,"tag":151,"props":262,"children":263},{"style":164},[264],{"type":44,"value":209},{"type":38,"tag":151,"props":266,"children":267},{"style":164},[268],{"type":44,"value":214},{"type":38,"tag":151,"props":270,"children":272},{"class":153,"line":271},3,[273],{"type":38,"tag":151,"props":274,"children":276},{"emptyLinePlaceholder":275},true,[277],{"type":44,"value":278},"\n",{"type":38,"tag":151,"props":280,"children":282},{"class":153,"line":281},4,[283,289,294,299,304,309,314],{"type":38,"tag":151,"props":284,"children":286},{"style":285},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[287],{"type":44,"value":288},"const",{"type":38,"tag":151,"props":290,"children":291},{"style":170},[292],{"type":44,"value":293}," client ",{"type":38,"tag":151,"props":295,"children":296},{"style":164},[297],{"type":44,"value":298},"=",{"type":38,"tag":151,"props":300,"children":301},{"style":158},[302],{"type":44,"value":303}," await",{"type":38,"tag":151,"props":305,"children":307},{"style":306},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[308],{"type":44,"value":173},{"type":38,"tag":151,"props":310,"children":311},{"style":170},[312],{"type":44,"value":313},"(",{"type":38,"tag":151,"props":315,"children":316},{"style":164},[317],{"type":44,"value":318},"{\n",{"type":38,"tag":151,"props":320,"children":322},{"class":153,"line":321},5,[323,329,334,338,343,347,351,356,360,364,369,373,378,383,388,392,397],{"type":38,"tag":151,"props":324,"children":326},{"style":325},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[327],{"type":44,"value":328},"  dapp",{"type":38,"tag":151,"props":330,"children":331},{"style":164},[332],{"type":44,"value":333},":",{"type":38,"tag":151,"props":335,"children":336},{"style":164},[337],{"type":44,"value":167},{"type":38,"tag":151,"props":339,"children":340},{"style":325},[341],{"type":44,"value":342}," name",{"type":38,"tag":151,"props":344,"children":345},{"style":164},[346],{"type":44,"value":333},{"type":38,"tag":151,"props":348,"children":349},{"style":164},[350],{"type":44,"value":198},{"type":38,"tag":151,"props":352,"children":353},{"style":201},[354],{"type":44,"value":355},"My DApp",{"type":38,"tag":151,"props":357,"children":358},{"style":164},[359],{"type":44,"value":209},{"type":38,"tag":151,"props":361,"children":362},{"style":164},[363],{"type":44,"value":178},{"type":38,"tag":151,"props":365,"children":366},{"style":325},[367],{"type":44,"value":368}," url",{"type":38,"tag":151,"props":370,"children":371},{"style":164},[372],{"type":44,"value":333},{"type":38,"tag":151,"props":374,"children":375},{"style":170},[376],{"type":44,"value":377}," window",{"type":38,"tag":151,"props":379,"children":380},{"style":164},[381],{"type":44,"value":382},".",{"type":38,"tag":151,"props":384,"children":385},{"style":170},[386],{"type":44,"value":387},"location",{"type":38,"tag":151,"props":389,"children":390},{"style":164},[391],{"type":44,"value":382},{"type":38,"tag":151,"props":393,"children":394},{"style":170},[395],{"type":44,"value":396},"href ",{"type":38,"tag":151,"props":398,"children":399},{"style":164},[400],{"type":44,"value":401},"},\n",{"type":38,"tag":151,"props":403,"children":405},{"class":153,"line":404},6,[406,411,415],{"type":38,"tag":151,"props":407,"children":408},{"style":325},[409],{"type":44,"value":410},"  api",{"type":38,"tag":151,"props":412,"children":413},{"style":164},[414],{"type":44,"value":333},{"type":38,"tag":151,"props":416,"children":417},{"style":164},[418],{"type":44,"value":419}," {\n",{"type":38,"tag":151,"props":421,"children":423},{"class":153,"line":422},7,[424,429,433],{"type":38,"tag":151,"props":425,"children":426},{"style":325},[427],{"type":44,"value":428},"    supportedNetworks",{"type":38,"tag":151,"props":430,"children":431},{"style":164},[432],{"type":44,"value":333},{"type":38,"tag":151,"props":434,"children":435},{"style":164},[436],{"type":44,"value":419},{"type":38,"tag":151,"props":438,"children":440},{"class":153,"line":439},8,[441,446,451,455,460,465,469,473,478,482,486,491,495,500,504,509,513,517,521,526,530,535,540,545],{"type":38,"tag":151,"props":442,"children":443},{"style":164},[444],{"type":44,"value":445},"      ...",{"type":38,"tag":151,"props":447,"children":448},{"style":306},[449],{"type":44,"value":450},"getInfuraRpcUrls",{"type":38,"tag":151,"props":452,"children":453},{"style":170},[454],{"type":44,"value":313},{"type":38,"tag":151,"props":456,"children":457},{"style":164},[458],{"type":44,"value":459},"{",{"type":38,"tag":151,"props":461,"children":462},{"style":325},[463],{"type":44,"value":464}," infuraApiKey",{"type":38,"tag":151,"props":466,"children":467},{"style":164},[468],{"type":44,"value":333},{"type":38,"tag":151,"props":470,"children":471},{"style":164},[472],{"type":44,"value":198},{"type":38,"tag":151,"props":474,"children":475},{"style":201},[476],{"type":44,"value":477},"YOUR_INFURA_KEY",{"type":38,"tag":151,"props":479,"children":480},{"style":164},[481],{"type":44,"value":209},{"type":38,"tag":151,"props":483,"children":484},{"style":164},[485],{"type":44,"value":178},{"type":38,"tag":151,"props":487,"children":488},{"style":325},[489],{"type":44,"value":490}," chainIds",{"type":38,"tag":151,"props":492,"children":493},{"style":164},[494],{"type":44,"value":333},{"type":38,"tag":151,"props":496,"children":497},{"style":170},[498],{"type":44,"value":499}," [",{"type":38,"tag":151,"props":501,"children":502},{"style":164},[503],{"type":44,"value":209},{"type":38,"tag":151,"props":505,"children":506},{"style":201},[507],{"type":44,"value":508},"0x1",{"type":38,"tag":151,"props":510,"children":511},{"style":164},[512],{"type":44,"value":209},{"type":38,"tag":151,"props":514,"children":515},{"style":164},[516],{"type":44,"value":178},{"type":38,"tag":151,"props":518,"children":519},{"style":164},[520],{"type":44,"value":198},{"type":38,"tag":151,"props":522,"children":523},{"style":201},[524],{"type":44,"value":525},"0x89",{"type":38,"tag":151,"props":527,"children":528},{"style":164},[529],{"type":44,"value":209},{"type":38,"tag":151,"props":531,"children":532},{"style":170},[533],{"type":44,"value":534},"] ",{"type":38,"tag":151,"props":536,"children":537},{"style":164},[538],{"type":44,"value":539},"}",{"type":38,"tag":151,"props":541,"children":542},{"style":170},[543],{"type":44,"value":544},")",{"type":38,"tag":151,"props":546,"children":547},{"style":164},[548],{"type":44,"value":549},",\n",{"type":38,"tag":151,"props":551,"children":553},{"class":153,"line":552},9,[554],{"type":38,"tag":151,"props":555,"children":556},{"style":164},[557],{"type":44,"value":558},"    },\n",{"type":38,"tag":151,"props":560,"children":562},{"class":153,"line":561},10,[563],{"type":38,"tag":151,"props":564,"children":565},{"style":164},[566],{"type":44,"value":567},"  },\n",{"type":38,"tag":151,"props":569,"children":571},{"class":153,"line":570},11,[572,576,580],{"type":38,"tag":151,"props":573,"children":574},{"style":164},[575],{"type":44,"value":539},{"type":38,"tag":151,"props":577,"children":578},{"style":170},[579],{"type":44,"value":544},{"type":38,"tag":151,"props":581,"children":582},{"style":164},[583],{"type":44,"value":214},{"type":38,"tag":151,"props":585,"children":587},{"class":153,"line":586},12,[588],{"type":38,"tag":151,"props":589,"children":590},{"emptyLinePlaceholder":275},[591],{"type":44,"value":278},{"type":38,"tag":151,"props":593,"children":595},{"class":153,"line":594},13,[596,600,604,609,613,618,622,627,631,636,640,644,648,652,656,660,664,668,672,676,680],{"type":38,"tag":151,"props":597,"children":598},{"style":285},[599],{"type":44,"value":288},{"type":38,"tag":151,"props":601,"children":602},{"style":164},[603],{"type":44,"value":167},{"type":38,"tag":151,"props":605,"children":606},{"style":170},[607],{"type":44,"value":608}," accounts ",{"type":38,"tag":151,"props":610,"children":611},{"style":164},[612],{"type":44,"value":539},{"type":38,"tag":151,"props":614,"children":615},{"style":164},[616],{"type":44,"value":617}," =",{"type":38,"tag":151,"props":619,"children":620},{"style":158},[621],{"type":44,"value":303},{"type":38,"tag":151,"props":623,"children":624},{"style":170},[625],{"type":44,"value":626}," client",{"type":38,"tag":151,"props":628,"children":629},{"style":164},[630],{"type":44,"value":382},{"type":38,"tag":151,"props":632,"children":633},{"style":306},[634],{"type":44,"value":635},"connect",{"type":38,"tag":151,"props":637,"children":638},{"style":170},[639],{"type":44,"value":313},{"type":38,"tag":151,"props":641,"children":642},{"style":164},[643],{"type":44,"value":459},{"type":38,"tag":151,"props":645,"children":646},{"style":325},[647],{"type":44,"value":490},{"type":38,"tag":151,"props":649,"children":650},{"style":164},[651],{"type":44,"value":333},{"type":38,"tag":151,"props":653,"children":654},{"style":170},[655],{"type":44,"value":499},{"type":38,"tag":151,"props":657,"children":658},{"style":164},[659],{"type":44,"value":209},{"type":38,"tag":151,"props":661,"children":662},{"style":201},[663],{"type":44,"value":508},{"type":38,"tag":151,"props":665,"children":666},{"style":164},[667],{"type":44,"value":209},{"type":38,"tag":151,"props":669,"children":670},{"style":170},[671],{"type":44,"value":534},{"type":38,"tag":151,"props":673,"children":674},{"style":164},[675],{"type":44,"value":539},{"type":38,"tag":151,"props":677,"children":678},{"style":170},[679],{"type":44,"value":544},{"type":38,"tag":151,"props":681,"children":682},{"style":164},[683],{"type":44,"value":214},{"type":38,"tag":151,"props":685,"children":687},{"class":153,"line":686},14,[688,692,697,701,705,709,714,719],{"type":38,"tag":151,"props":689,"children":690},{"style":285},[691],{"type":44,"value":288},{"type":38,"tag":151,"props":693,"children":694},{"style":170},[695],{"type":44,"value":696}," provider ",{"type":38,"tag":151,"props":698,"children":699},{"style":164},[700],{"type":44,"value":298},{"type":38,"tag":151,"props":702,"children":703},{"style":170},[704],{"type":44,"value":626},{"type":38,"tag":151,"props":706,"children":707},{"style":164},[708],{"type":44,"value":382},{"type":38,"tag":151,"props":710,"children":711},{"style":306},[712],{"type":44,"value":713},"getProvider",{"type":38,"tag":151,"props":715,"children":716},{"style":170},[717],{"type":44,"value":718},"()",{"type":38,"tag":151,"props":720,"children":721},{"style":164},[722],{"type":44,"value":214},{"type":38,"tag":151,"props":724,"children":726},{"class":153,"line":725},15,[727,731,736,740,745,751,755,760,765],{"type":38,"tag":151,"props":728,"children":729},{"style":285},[730],{"type":44,"value":288},{"type":38,"tag":151,"props":732,"children":733},{"style":170},[734],{"type":44,"value":735}," from ",{"type":38,"tag":151,"props":737,"children":738},{"style":164},[739],{"type":44,"value":298},{"type":38,"tag":151,"props":741,"children":742},{"style":170},[743],{"type":44,"value":744}," accounts[",{"type":38,"tag":151,"props":746,"children":748},{"style":747},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[749],{"type":44,"value":750},"0",{"type":38,"tag":151,"props":752,"children":753},{"style":170},[754],{"type":44,"value":534},{"type":38,"tag":151,"props":756,"children":757},{"style":158},[758],{"type":44,"value":759},"as",{"type":38,"tag":151,"props":761,"children":763},{"style":762},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[764],{"type":44,"value":244},{"type":38,"tag":151,"props":766,"children":767},{"style":164},[768],{"type":44,"value":214},{"type":38,"tag":133,"props":770,"children":772},{"id":771},"step-2-convert-eth-to-hex-wei",[773],{"type":44,"value":774},"Step 2: Convert ETH to hex wei",{"type":38,"tag":54,"props":776,"children":777},{},[778,780,786],{"type":44,"value":779},"All ",{"type":38,"tag":70,"props":781,"children":783},{"className":782},[],[784],{"type":44,"value":785},"value",{"type":44,"value":787}," fields in transactions must be hex-encoded wei. 1 ETH = 10^18 wei:",{"type":38,"tag":140,"props":789,"children":791},{"className":142,"code":790,"language":144,"meta":145,"style":145},"function ethToHexWei(ethAmount: string): Hex {\n  const wei = BigInt(Math.round(parseFloat(ethAmount) * 1e18));\n  return `0x${wei.toString(16)}` as Hex;\n}\n\n\u002F\u002F Examples\nethToHexWei('0.01');   \u002F\u002F '0x2386f26fc10000'\nethToHexWei('0.001');  \u002F\u002F '0x38d7ea4c68000'\nethToHexWei('1');      \u002F\u002F '0xde0b6b3a7640000'\n",[792],{"type":38,"tag":70,"props":793,"children":794},{"__ignoreMap":145},[795,840,921,989,997,1004,1013,1052,1089],{"type":38,"tag":151,"props":796,"children":797},{"class":153,"line":154},[798,803,808,812,818,822,827,832,836],{"type":38,"tag":151,"props":799,"children":800},{"style":285},[801],{"type":44,"value":802},"function",{"type":38,"tag":151,"props":804,"children":805},{"style":306},[806],{"type":44,"value":807}," ethToHexWei",{"type":38,"tag":151,"props":809,"children":810},{"style":164},[811],{"type":44,"value":313},{"type":38,"tag":151,"props":813,"children":815},{"style":814},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic",[816],{"type":44,"value":817},"ethAmount",{"type":38,"tag":151,"props":819,"children":820},{"style":164},[821],{"type":44,"value":333},{"type":38,"tag":151,"props":823,"children":824},{"style":762},[825],{"type":44,"value":826}," string",{"type":38,"tag":151,"props":828,"children":829},{"style":164},[830],{"type":44,"value":831},"):",{"type":38,"tag":151,"props":833,"children":834},{"style":762},[835],{"type":44,"value":235},{"type":38,"tag":151,"props":837,"children":838},{"style":164},[839],{"type":44,"value":419},{"type":38,"tag":151,"props":841,"children":842},{"class":153,"line":22},[843,848,853,857,862,866,871,875,880,884,889,893,897,902,907,912,917],{"type":38,"tag":151,"props":844,"children":845},{"style":285},[846],{"type":44,"value":847},"  const",{"type":38,"tag":151,"props":849,"children":850},{"style":170},[851],{"type":44,"value":852}," wei",{"type":38,"tag":151,"props":854,"children":855},{"style":164},[856],{"type":44,"value":617},{"type":38,"tag":151,"props":858,"children":859},{"style":306},[860],{"type":44,"value":861}," BigInt",{"type":38,"tag":151,"props":863,"children":864},{"style":325},[865],{"type":44,"value":313},{"type":38,"tag":151,"props":867,"children":868},{"style":170},[869],{"type":44,"value":870},"Math",{"type":38,"tag":151,"props":872,"children":873},{"style":164},[874],{"type":44,"value":382},{"type":38,"tag":151,"props":876,"children":877},{"style":306},[878],{"type":44,"value":879},"round",{"type":38,"tag":151,"props":881,"children":882},{"style":325},[883],{"type":44,"value":313},{"type":38,"tag":151,"props":885,"children":886},{"style":306},[887],{"type":44,"value":888},"parseFloat",{"type":38,"tag":151,"props":890,"children":891},{"style":325},[892],{"type":44,"value":313},{"type":38,"tag":151,"props":894,"children":895},{"style":170},[896],{"type":44,"value":817},{"type":38,"tag":151,"props":898,"children":899},{"style":325},[900],{"type":44,"value":901},") ",{"type":38,"tag":151,"props":903,"children":904},{"style":164},[905],{"type":44,"value":906},"*",{"type":38,"tag":151,"props":908,"children":909},{"style":747},[910],{"type":44,"value":911}," 1e18",{"type":38,"tag":151,"props":913,"children":914},{"style":325},[915],{"type":44,"value":916},"))",{"type":38,"tag":151,"props":918,"children":919},{"style":164},[920],{"type":44,"value":214},{"type":38,"tag":151,"props":922,"children":923},{"class":153,"line":271},[924,929,934,939,944,949,953,958,962,967,971,976,981,985],{"type":38,"tag":151,"props":925,"children":926},{"style":158},[927],{"type":44,"value":928},"  return",{"type":38,"tag":151,"props":930,"children":931},{"style":164},[932],{"type":44,"value":933}," `",{"type":38,"tag":151,"props":935,"children":936},{"style":201},[937],{"type":44,"value":938},"0x",{"type":38,"tag":151,"props":940,"children":941},{"style":164},[942],{"type":44,"value":943},"${",{"type":38,"tag":151,"props":945,"children":946},{"style":170},[947],{"type":44,"value":948},"wei",{"type":38,"tag":151,"props":950,"children":951},{"style":164},[952],{"type":44,"value":382},{"type":38,"tag":151,"props":954,"children":955},{"style":306},[956],{"type":44,"value":957},"toString",{"type":38,"tag":151,"props":959,"children":960},{"style":170},[961],{"type":44,"value":313},{"type":38,"tag":151,"props":963,"children":964},{"style":747},[965],{"type":44,"value":966},"16",{"type":38,"tag":151,"props":968,"children":969},{"style":170},[970],{"type":44,"value":544},{"type":38,"tag":151,"props":972,"children":973},{"style":164},[974],{"type":44,"value":975},"}`",{"type":38,"tag":151,"props":977,"children":978},{"style":158},[979],{"type":44,"value":980}," as",{"type":38,"tag":151,"props":982,"children":983},{"style":762},[984],{"type":44,"value":235},{"type":38,"tag":151,"props":986,"children":987},{"style":164},[988],{"type":44,"value":214},{"type":38,"tag":151,"props":990,"children":991},{"class":153,"line":281},[992],{"type":38,"tag":151,"props":993,"children":994},{"style":164},[995],{"type":44,"value":996},"}\n",{"type":38,"tag":151,"props":998,"children":999},{"class":153,"line":321},[1000],{"type":38,"tag":151,"props":1001,"children":1002},{"emptyLinePlaceholder":275},[1003],{"type":44,"value":278},{"type":38,"tag":151,"props":1005,"children":1006},{"class":153,"line":404},[1007],{"type":38,"tag":151,"props":1008,"children":1010},{"style":1009},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[1011],{"type":44,"value":1012},"\u002F\u002F Examples\n",{"type":38,"tag":151,"props":1014,"children":1015},{"class":153,"line":422},[1016,1021,1025,1029,1034,1038,1042,1047],{"type":38,"tag":151,"props":1017,"children":1018},{"style":306},[1019],{"type":44,"value":1020},"ethToHexWei",{"type":38,"tag":151,"props":1022,"children":1023},{"style":170},[1024],{"type":44,"value":313},{"type":38,"tag":151,"props":1026,"children":1027},{"style":164},[1028],{"type":44,"value":209},{"type":38,"tag":151,"props":1030,"children":1031},{"style":201},[1032],{"type":44,"value":1033},"0.01",{"type":38,"tag":151,"props":1035,"children":1036},{"style":164},[1037],{"type":44,"value":209},{"type":38,"tag":151,"props":1039,"children":1040},{"style":170},[1041],{"type":44,"value":544},{"type":38,"tag":151,"props":1043,"children":1044},{"style":164},[1045],{"type":44,"value":1046},";",{"type":38,"tag":151,"props":1048,"children":1049},{"style":1009},[1050],{"type":44,"value":1051},"   \u002F\u002F '0x2386f26fc10000'\n",{"type":38,"tag":151,"props":1053,"children":1054},{"class":153,"line":439},[1055,1059,1063,1067,1072,1076,1080,1084],{"type":38,"tag":151,"props":1056,"children":1057},{"style":306},[1058],{"type":44,"value":1020},{"type":38,"tag":151,"props":1060,"children":1061},{"style":170},[1062],{"type":44,"value":313},{"type":38,"tag":151,"props":1064,"children":1065},{"style":164},[1066],{"type":44,"value":209},{"type":38,"tag":151,"props":1068,"children":1069},{"style":201},[1070],{"type":44,"value":1071},"0.001",{"type":38,"tag":151,"props":1073,"children":1074},{"style":164},[1075],{"type":44,"value":209},{"type":38,"tag":151,"props":1077,"children":1078},{"style":170},[1079],{"type":44,"value":544},{"type":38,"tag":151,"props":1081,"children":1082},{"style":164},[1083],{"type":44,"value":1046},{"type":38,"tag":151,"props":1085,"children":1086},{"style":1009},[1087],{"type":44,"value":1088},"  \u002F\u002F '0x38d7ea4c68000'\n",{"type":38,"tag":151,"props":1090,"children":1091},{"class":153,"line":552},[1092,1096,1100,1104,1109,1113,1117,1121],{"type":38,"tag":151,"props":1093,"children":1094},{"style":306},[1095],{"type":44,"value":1020},{"type":38,"tag":151,"props":1097,"children":1098},{"style":170},[1099],{"type":44,"value":313},{"type":38,"tag":151,"props":1101,"children":1102},{"style":164},[1103],{"type":44,"value":209},{"type":38,"tag":151,"props":1105,"children":1106},{"style":201},[1107],{"type":44,"value":1108},"1",{"type":38,"tag":151,"props":1110,"children":1111},{"style":164},[1112],{"type":44,"value":209},{"type":38,"tag":151,"props":1114,"children":1115},{"style":170},[1116],{"type":44,"value":544},{"type":38,"tag":151,"props":1118,"children":1119},{"style":164},[1120],{"type":44,"value":1046},{"type":38,"tag":151,"props":1122,"children":1123},{"style":1009},[1124],{"type":44,"value":1125},"      \u002F\u002F '0xde0b6b3a7640000'\n",{"type":38,"tag":133,"props":1127,"children":1129},{"id":1128},"step-3-send-an-eth-transfer",[1130],{"type":44,"value":1131},"Step 3: Send an ETH transfer",{"type":38,"tag":54,"props":1133,"children":1134},{},[1135,1137,1142],{"type":44,"value":1136},"Build the transaction params and call ",{"type":38,"tag":70,"props":1138,"children":1140},{"className":1139},[],[1141],{"type":44,"value":75},{"type":44,"value":333},{"type":38,"tag":140,"props":1144,"children":1146},{"className":142,"code":1145,"language":144,"meta":145,"style":145},"const txParams = {\n  from: from,\n  to: '0xRecipientAddress' as Address,\n  value: ethToHexWei('0.01'),\n};\n\ntry {\n  const txHash = await provider.request({\n    method: 'eth_sendTransaction',\n    params: [txParams],\n  }) as Hex;\n\n  console.log('Transaction hash:', txHash);\n} catch (err: any) {\n  if (err.code === 4001) {\n    console.log('User rejected the transaction');\n    return;\n  }\n  if (err.code === -32002) {\n    console.log('A transaction request is already pending');\n    return;\n  }\n  throw err;\n}\n",[1147],{"type":38,"tag":70,"props":1148,"children":1149},{"__ignoreMap":145},[1150,1170,1190,1227,1267,1275,1282,1294,1336,1364,1394,1418,1425,1475,1514,1556,1598,1611,1620,1666,1707,1719,1727,1745],{"type":38,"tag":151,"props":1151,"children":1152},{"class":153,"line":154},[1153,1157,1162,1166],{"type":38,"tag":151,"props":1154,"children":1155},{"style":285},[1156],{"type":44,"value":288},{"type":38,"tag":151,"props":1158,"children":1159},{"style":170},[1160],{"type":44,"value":1161}," txParams ",{"type":38,"tag":151,"props":1163,"children":1164},{"style":164},[1165],{"type":44,"value":298},{"type":38,"tag":151,"props":1167,"children":1168},{"style":164},[1169],{"type":44,"value":419},{"type":38,"tag":151,"props":1171,"children":1172},{"class":153,"line":22},[1173,1178,1182,1186],{"type":38,"tag":151,"props":1174,"children":1175},{"style":325},[1176],{"type":44,"value":1177},"  from",{"type":38,"tag":151,"props":1179,"children":1180},{"style":164},[1181],{"type":44,"value":333},{"type":38,"tag":151,"props":1183,"children":1184},{"style":170},[1185],{"type":44,"value":193},{"type":38,"tag":151,"props":1187,"children":1188},{"style":164},[1189],{"type":44,"value":549},{"type":38,"tag":151,"props":1191,"children":1192},{"class":153,"line":271},[1193,1198,1202,1206,1211,1215,1219,1223],{"type":38,"tag":151,"props":1194,"children":1195},{"style":325},[1196],{"type":44,"value":1197},"  to",{"type":38,"tag":151,"props":1199,"children":1200},{"style":164},[1201],{"type":44,"value":333},{"type":38,"tag":151,"props":1203,"children":1204},{"style":164},[1205],{"type":44,"value":198},{"type":38,"tag":151,"props":1207,"children":1208},{"style":201},[1209],{"type":44,"value":1210},"0xRecipientAddress",{"type":38,"tag":151,"props":1212,"children":1213},{"style":164},[1214],{"type":44,"value":209},{"type":38,"tag":151,"props":1216,"children":1217},{"style":158},[1218],{"type":44,"value":980},{"type":38,"tag":151,"props":1220,"children":1221},{"style":762},[1222],{"type":44,"value":244},{"type":38,"tag":151,"props":1224,"children":1225},{"style":164},[1226],{"type":44,"value":549},{"type":38,"tag":151,"props":1228,"children":1229},{"class":153,"line":281},[1230,1235,1239,1243,1247,1251,1255,1259,1263],{"type":38,"tag":151,"props":1231,"children":1232},{"style":325},[1233],{"type":44,"value":1234},"  value",{"type":38,"tag":151,"props":1236,"children":1237},{"style":164},[1238],{"type":44,"value":333},{"type":38,"tag":151,"props":1240,"children":1241},{"style":306},[1242],{"type":44,"value":807},{"type":38,"tag":151,"props":1244,"children":1245},{"style":170},[1246],{"type":44,"value":313},{"type":38,"tag":151,"props":1248,"children":1249},{"style":164},[1250],{"type":44,"value":209},{"type":38,"tag":151,"props":1252,"children":1253},{"style":201},[1254],{"type":44,"value":1033},{"type":38,"tag":151,"props":1256,"children":1257},{"style":164},[1258],{"type":44,"value":209},{"type":38,"tag":151,"props":1260,"children":1261},{"style":170},[1262],{"type":44,"value":544},{"type":38,"tag":151,"props":1264,"children":1265},{"style":164},[1266],{"type":44,"value":549},{"type":38,"tag":151,"props":1268,"children":1269},{"class":153,"line":321},[1270],{"type":38,"tag":151,"props":1271,"children":1272},{"style":164},[1273],{"type":44,"value":1274},"};\n",{"type":38,"tag":151,"props":1276,"children":1277},{"class":153,"line":404},[1278],{"type":38,"tag":151,"props":1279,"children":1280},{"emptyLinePlaceholder":275},[1281],{"type":44,"value":278},{"type":38,"tag":151,"props":1283,"children":1284},{"class":153,"line":422},[1285,1290],{"type":38,"tag":151,"props":1286,"children":1287},{"style":158},[1288],{"type":44,"value":1289},"try",{"type":38,"tag":151,"props":1291,"children":1292},{"style":164},[1293],{"type":44,"value":419},{"type":38,"tag":151,"props":1295,"children":1296},{"class":153,"line":439},[1297,1301,1306,1310,1314,1319,1323,1328,1332],{"type":38,"tag":151,"props":1298,"children":1299},{"style":285},[1300],{"type":44,"value":847},{"type":38,"tag":151,"props":1302,"children":1303},{"style":170},[1304],{"type":44,"value":1305}," txHash",{"type":38,"tag":151,"props":1307,"children":1308},{"style":164},[1309],{"type":44,"value":617},{"type":38,"tag":151,"props":1311,"children":1312},{"style":158},[1313],{"type":44,"value":303},{"type":38,"tag":151,"props":1315,"children":1316},{"style":170},[1317],{"type":44,"value":1318}," provider",{"type":38,"tag":151,"props":1320,"children":1321},{"style":164},[1322],{"type":44,"value":382},{"type":38,"tag":151,"props":1324,"children":1325},{"style":306},[1326],{"type":44,"value":1327},"request",{"type":38,"tag":151,"props":1329,"children":1330},{"style":325},[1331],{"type":44,"value":313},{"type":38,"tag":151,"props":1333,"children":1334},{"style":164},[1335],{"type":44,"value":318},{"type":38,"tag":151,"props":1337,"children":1338},{"class":153,"line":552},[1339,1344,1348,1352,1356,1360],{"type":38,"tag":151,"props":1340,"children":1341},{"style":325},[1342],{"type":44,"value":1343},"    method",{"type":38,"tag":151,"props":1345,"children":1346},{"style":164},[1347],{"type":44,"value":333},{"type":38,"tag":151,"props":1349,"children":1350},{"style":164},[1351],{"type":44,"value":198},{"type":38,"tag":151,"props":1353,"children":1354},{"style":201},[1355],{"type":44,"value":75},{"type":38,"tag":151,"props":1357,"children":1358},{"style":164},[1359],{"type":44,"value":209},{"type":38,"tag":151,"props":1361,"children":1362},{"style":164},[1363],{"type":44,"value":549},{"type":38,"tag":151,"props":1365,"children":1366},{"class":153,"line":561},[1367,1372,1376,1380,1385,1390],{"type":38,"tag":151,"props":1368,"children":1369},{"style":325},[1370],{"type":44,"value":1371},"    params",{"type":38,"tag":151,"props":1373,"children":1374},{"style":164},[1375],{"type":44,"value":333},{"type":38,"tag":151,"props":1377,"children":1378},{"style":325},[1379],{"type":44,"value":499},{"type":38,"tag":151,"props":1381,"children":1382},{"style":170},[1383],{"type":44,"value":1384},"txParams",{"type":38,"tag":151,"props":1386,"children":1387},{"style":325},[1388],{"type":44,"value":1389},"]",{"type":38,"tag":151,"props":1391,"children":1392},{"style":164},[1393],{"type":44,"value":549},{"type":38,"tag":151,"props":1395,"children":1396},{"class":153,"line":570},[1397,1402,1406,1410,1414],{"type":38,"tag":151,"props":1398,"children":1399},{"style":164},[1400],{"type":44,"value":1401},"  }",{"type":38,"tag":151,"props":1403,"children":1404},{"style":325},[1405],{"type":44,"value":901},{"type":38,"tag":151,"props":1407,"children":1408},{"style":158},[1409],{"type":44,"value":759},{"type":38,"tag":151,"props":1411,"children":1412},{"style":762},[1413],{"type":44,"value":235},{"type":38,"tag":151,"props":1415,"children":1416},{"style":164},[1417],{"type":44,"value":214},{"type":38,"tag":151,"props":1419,"children":1420},{"class":153,"line":586},[1421],{"type":38,"tag":151,"props":1422,"children":1423},{"emptyLinePlaceholder":275},[1424],{"type":44,"value":278},{"type":38,"tag":151,"props":1426,"children":1427},{"class":153,"line":594},[1428,1433,1437,1442,1446,1450,1455,1459,1463,1467,1471],{"type":38,"tag":151,"props":1429,"children":1430},{"style":170},[1431],{"type":44,"value":1432},"  console",{"type":38,"tag":151,"props":1434,"children":1435},{"style":164},[1436],{"type":44,"value":382},{"type":38,"tag":151,"props":1438,"children":1439},{"style":306},[1440],{"type":44,"value":1441},"log",{"type":38,"tag":151,"props":1443,"children":1444},{"style":325},[1445],{"type":44,"value":313},{"type":38,"tag":151,"props":1447,"children":1448},{"style":164},[1449],{"type":44,"value":209},{"type":38,"tag":151,"props":1451,"children":1452},{"style":201},[1453],{"type":44,"value":1454},"Transaction hash:",{"type":38,"tag":151,"props":1456,"children":1457},{"style":164},[1458],{"type":44,"value":209},{"type":38,"tag":151,"props":1460,"children":1461},{"style":164},[1462],{"type":44,"value":178},{"type":38,"tag":151,"props":1464,"children":1465},{"style":170},[1466],{"type":44,"value":1305},{"type":38,"tag":151,"props":1468,"children":1469},{"style":325},[1470],{"type":44,"value":544},{"type":38,"tag":151,"props":1472,"children":1473},{"style":164},[1474],{"type":44,"value":214},{"type":38,"tag":151,"props":1476,"children":1477},{"class":153,"line":686},[1478,1482,1487,1492,1497,1501,1506,1510],{"type":38,"tag":151,"props":1479,"children":1480},{"style":164},[1481],{"type":44,"value":539},{"type":38,"tag":151,"props":1483,"children":1484},{"style":158},[1485],{"type":44,"value":1486}," catch",{"type":38,"tag":151,"props":1488,"children":1489},{"style":164},[1490],{"type":44,"value":1491}," (",{"type":38,"tag":151,"props":1493,"children":1494},{"style":814},[1495],{"type":44,"value":1496},"err",{"type":38,"tag":151,"props":1498,"children":1499},{"style":164},[1500],{"type":44,"value":333},{"type":38,"tag":151,"props":1502,"children":1503},{"style":762},[1504],{"type":44,"value":1505}," any",{"type":38,"tag":151,"props":1507,"children":1508},{"style":164},[1509],{"type":44,"value":544},{"type":38,"tag":151,"props":1511,"children":1512},{"style":164},[1513],{"type":44,"value":419},{"type":38,"tag":151,"props":1515,"children":1516},{"class":153,"line":725},[1517,1522,1526,1530,1534,1538,1543,1548,1552],{"type":38,"tag":151,"props":1518,"children":1519},{"style":158},[1520],{"type":44,"value":1521},"  if",{"type":38,"tag":151,"props":1523,"children":1524},{"style":325},[1525],{"type":44,"value":1491},{"type":38,"tag":151,"props":1527,"children":1528},{"style":170},[1529],{"type":44,"value":1496},{"type":38,"tag":151,"props":1531,"children":1532},{"style":164},[1533],{"type":44,"value":382},{"type":38,"tag":151,"props":1535,"children":1536},{"style":170},[1537],{"type":44,"value":70},{"type":38,"tag":151,"props":1539,"children":1540},{"style":164},[1541],{"type":44,"value":1542}," ===",{"type":38,"tag":151,"props":1544,"children":1545},{"style":747},[1546],{"type":44,"value":1547}," 4001",{"type":38,"tag":151,"props":1549,"children":1550},{"style":325},[1551],{"type":44,"value":901},{"type":38,"tag":151,"props":1553,"children":1554},{"style":164},[1555],{"type":44,"value":318},{"type":38,"tag":151,"props":1557,"children":1559},{"class":153,"line":1558},16,[1560,1565,1569,1573,1577,1581,1586,1590,1594],{"type":38,"tag":151,"props":1561,"children":1562},{"style":170},[1563],{"type":44,"value":1564},"    console",{"type":38,"tag":151,"props":1566,"children":1567},{"style":164},[1568],{"type":44,"value":382},{"type":38,"tag":151,"props":1570,"children":1571},{"style":306},[1572],{"type":44,"value":1441},{"type":38,"tag":151,"props":1574,"children":1575},{"style":325},[1576],{"type":44,"value":313},{"type":38,"tag":151,"props":1578,"children":1579},{"style":164},[1580],{"type":44,"value":209},{"type":38,"tag":151,"props":1582,"children":1583},{"style":201},[1584],{"type":44,"value":1585},"User rejected the transaction",{"type":38,"tag":151,"props":1587,"children":1588},{"style":164},[1589],{"type":44,"value":209},{"type":38,"tag":151,"props":1591,"children":1592},{"style":325},[1593],{"type":44,"value":544},{"type":38,"tag":151,"props":1595,"children":1596},{"style":164},[1597],{"type":44,"value":214},{"type":38,"tag":151,"props":1599,"children":1601},{"class":153,"line":1600},17,[1602,1607],{"type":38,"tag":151,"props":1603,"children":1604},{"style":158},[1605],{"type":44,"value":1606},"    return",{"type":38,"tag":151,"props":1608,"children":1609},{"style":164},[1610],{"type":44,"value":214},{"type":38,"tag":151,"props":1612,"children":1614},{"class":153,"line":1613},18,[1615],{"type":38,"tag":151,"props":1616,"children":1617},{"style":164},[1618],{"type":44,"value":1619},"  }\n",{"type":38,"tag":151,"props":1621,"children":1623},{"class":153,"line":1622},19,[1624,1628,1632,1636,1640,1644,1648,1653,1658,1662],{"type":38,"tag":151,"props":1625,"children":1626},{"style":158},[1627],{"type":44,"value":1521},{"type":38,"tag":151,"props":1629,"children":1630},{"style":325},[1631],{"type":44,"value":1491},{"type":38,"tag":151,"props":1633,"children":1634},{"style":170},[1635],{"type":44,"value":1496},{"type":38,"tag":151,"props":1637,"children":1638},{"style":164},[1639],{"type":44,"value":382},{"type":38,"tag":151,"props":1641,"children":1642},{"style":170},[1643],{"type":44,"value":70},{"type":38,"tag":151,"props":1645,"children":1646},{"style":164},[1647],{"type":44,"value":1542},{"type":38,"tag":151,"props":1649,"children":1650},{"style":164},[1651],{"type":44,"value":1652}," -",{"type":38,"tag":151,"props":1654,"children":1655},{"style":747},[1656],{"type":44,"value":1657},"32002",{"type":38,"tag":151,"props":1659,"children":1660},{"style":325},[1661],{"type":44,"value":901},{"type":38,"tag":151,"props":1663,"children":1664},{"style":164},[1665],{"type":44,"value":318},{"type":38,"tag":151,"props":1667,"children":1669},{"class":153,"line":1668},20,[1670,1674,1678,1682,1686,1690,1695,1699,1703],{"type":38,"tag":151,"props":1671,"children":1672},{"style":170},[1673],{"type":44,"value":1564},{"type":38,"tag":151,"props":1675,"children":1676},{"style":164},[1677],{"type":44,"value":382},{"type":38,"tag":151,"props":1679,"children":1680},{"style":306},[1681],{"type":44,"value":1441},{"type":38,"tag":151,"props":1683,"children":1684},{"style":325},[1685],{"type":44,"value":313},{"type":38,"tag":151,"props":1687,"children":1688},{"style":164},[1689],{"type":44,"value":209},{"type":38,"tag":151,"props":1691,"children":1692},{"style":201},[1693],{"type":44,"value":1694},"A transaction request is already pending",{"type":38,"tag":151,"props":1696,"children":1697},{"style":164},[1698],{"type":44,"value":209},{"type":38,"tag":151,"props":1700,"children":1701},{"style":325},[1702],{"type":44,"value":544},{"type":38,"tag":151,"props":1704,"children":1705},{"style":164},[1706],{"type":44,"value":214},{"type":38,"tag":151,"props":1708,"children":1710},{"class":153,"line":1709},21,[1711,1715],{"type":38,"tag":151,"props":1712,"children":1713},{"style":158},[1714],{"type":44,"value":1606},{"type":38,"tag":151,"props":1716,"children":1717},{"style":164},[1718],{"type":44,"value":214},{"type":38,"tag":151,"props":1720,"children":1722},{"class":153,"line":1721},22,[1723],{"type":38,"tag":151,"props":1724,"children":1725},{"style":164},[1726],{"type":44,"value":1619},{"type":38,"tag":151,"props":1728,"children":1730},{"class":153,"line":1729},23,[1731,1736,1741],{"type":38,"tag":151,"props":1732,"children":1733},{"style":158},[1734],{"type":44,"value":1735},"  throw",{"type":38,"tag":151,"props":1737,"children":1738},{"style":170},[1739],{"type":44,"value":1740}," err",{"type":38,"tag":151,"props":1742,"children":1743},{"style":164},[1744],{"type":44,"value":214},{"type":38,"tag":151,"props":1746,"children":1748},{"class":153,"line":1747},24,[1749],{"type":38,"tag":151,"props":1750,"children":1751},{"style":164},[1752],{"type":44,"value":996},{"type":38,"tag":133,"props":1754,"children":1756},{"id":1755},"step-4-estimate-gas-before-sending",[1757],{"type":44,"value":1758},"Step 4: Estimate gas before sending",{"type":38,"tag":54,"props":1760,"children":1761},{},[1762,1764,1769],{"type":44,"value":1763},"Use ",{"type":38,"tag":70,"props":1765,"children":1767},{"className":1766},[],[1768],{"type":44,"value":99},{"type":44,"value":1770}," to get a gas estimate, then optionally add a buffer:",{"type":38,"tag":140,"props":1772,"children":1774},{"className":142,"code":1773,"language":144,"meta":145,"style":145},"const txParams = {\n  from: from,\n  to: '0xRecipientAddress' as Address,\n  value: ethToHexWei('0.01'),\n  data: '0x', \u002F\u002F empty for plain ETH transfer\n};\n\nconst estimatedGas = await provider.request({\n  method: 'eth_estimateGas',\n  params: [txParams],\n}) as Hex;\n\n\u002F\u002F Add 20% buffer to the estimate\nconst gasWithBuffer = BigInt(estimatedGas) * 120n \u002F 100n;\nconst gasHex = `0x${gasWithBuffer.toString(16)}` as Hex;\n\nconst txHash = await provider.request({\n  method: 'eth_sendTransaction',\n  params: [{\n    ...txParams,\n    gas: gasHex,\n  }],\n}) as Hex;\n",[1775],{"type":38,"tag":70,"props":1776,"children":1777},{"__ignoreMap":145},[1778,1797,1816,1851,1890,1923,1930,1937,1977,2005,2026,2049,2056,2064,2121,2190,2197,2237,2264,2283,2299,2320,2335],{"type":38,"tag":151,"props":1779,"children":1780},{"class":153,"line":154},[1781,1785,1789,1793],{"type":38,"tag":151,"props":1782,"children":1783},{"style":285},[1784],{"type":44,"value":288},{"type":38,"tag":151,"props":1786,"children":1787},{"style":170},[1788],{"type":44,"value":1161},{"type":38,"tag":151,"props":1790,"children":1791},{"style":164},[1792],{"type":44,"value":298},{"type":38,"tag":151,"props":1794,"children":1795},{"style":164},[1796],{"type":44,"value":419},{"type":38,"tag":151,"props":1798,"children":1799},{"class":153,"line":22},[1800,1804,1808,1812],{"type":38,"tag":151,"props":1801,"children":1802},{"style":325},[1803],{"type":44,"value":1177},{"type":38,"tag":151,"props":1805,"children":1806},{"style":164},[1807],{"type":44,"value":333},{"type":38,"tag":151,"props":1809,"children":1810},{"style":170},[1811],{"type":44,"value":193},{"type":38,"tag":151,"props":1813,"children":1814},{"style":164},[1815],{"type":44,"value":549},{"type":38,"tag":151,"props":1817,"children":1818},{"class":153,"line":271},[1819,1823,1827,1831,1835,1839,1843,1847],{"type":38,"tag":151,"props":1820,"children":1821},{"style":325},[1822],{"type":44,"value":1197},{"type":38,"tag":151,"props":1824,"children":1825},{"style":164},[1826],{"type":44,"value":333},{"type":38,"tag":151,"props":1828,"children":1829},{"style":164},[1830],{"type":44,"value":198},{"type":38,"tag":151,"props":1832,"children":1833},{"style":201},[1834],{"type":44,"value":1210},{"type":38,"tag":151,"props":1836,"children":1837},{"style":164},[1838],{"type":44,"value":209},{"type":38,"tag":151,"props":1840,"children":1841},{"style":158},[1842],{"type":44,"value":980},{"type":38,"tag":151,"props":1844,"children":1845},{"style":762},[1846],{"type":44,"value":244},{"type":38,"tag":151,"props":1848,"children":1849},{"style":164},[1850],{"type":44,"value":549},{"type":38,"tag":151,"props":1852,"children":1853},{"class":153,"line":281},[1854,1858,1862,1866,1870,1874,1878,1882,1886],{"type":38,"tag":151,"props":1855,"children":1856},{"style":325},[1857],{"type":44,"value":1234},{"type":38,"tag":151,"props":1859,"children":1860},{"style":164},[1861],{"type":44,"value":333},{"type":38,"tag":151,"props":1863,"children":1864},{"style":306},[1865],{"type":44,"value":807},{"type":38,"tag":151,"props":1867,"children":1868},{"style":170},[1869],{"type":44,"value":313},{"type":38,"tag":151,"props":1871,"children":1872},{"style":164},[1873],{"type":44,"value":209},{"type":38,"tag":151,"props":1875,"children":1876},{"style":201},[1877],{"type":44,"value":1033},{"type":38,"tag":151,"props":1879,"children":1880},{"style":164},[1881],{"type":44,"value":209},{"type":38,"tag":151,"props":1883,"children":1884},{"style":170},[1885],{"type":44,"value":544},{"type":38,"tag":151,"props":1887,"children":1888},{"style":164},[1889],{"type":44,"value":549},{"type":38,"tag":151,"props":1891,"children":1892},{"class":153,"line":321},[1893,1898,1902,1906,1910,1914,1918],{"type":38,"tag":151,"props":1894,"children":1895},{"style":325},[1896],{"type":44,"value":1897},"  data",{"type":38,"tag":151,"props":1899,"children":1900},{"style":164},[1901],{"type":44,"value":333},{"type":38,"tag":151,"props":1903,"children":1904},{"style":164},[1905],{"type":44,"value":198},{"type":38,"tag":151,"props":1907,"children":1908},{"style":201},[1909],{"type":44,"value":938},{"type":38,"tag":151,"props":1911,"children":1912},{"style":164},[1913],{"type":44,"value":209},{"type":38,"tag":151,"props":1915,"children":1916},{"style":164},[1917],{"type":44,"value":178},{"type":38,"tag":151,"props":1919,"children":1920},{"style":1009},[1921],{"type":44,"value":1922}," \u002F\u002F empty for plain ETH transfer\n",{"type":38,"tag":151,"props":1924,"children":1925},{"class":153,"line":404},[1926],{"type":38,"tag":151,"props":1927,"children":1928},{"style":164},[1929],{"type":44,"value":1274},{"type":38,"tag":151,"props":1931,"children":1932},{"class":153,"line":422},[1933],{"type":38,"tag":151,"props":1934,"children":1935},{"emptyLinePlaceholder":275},[1936],{"type":44,"value":278},{"type":38,"tag":151,"props":1938,"children":1939},{"class":153,"line":439},[1940,1944,1949,1953,1957,1961,1965,1969,1973],{"type":38,"tag":151,"props":1941,"children":1942},{"style":285},[1943],{"type":44,"value":288},{"type":38,"tag":151,"props":1945,"children":1946},{"style":170},[1947],{"type":44,"value":1948}," estimatedGas ",{"type":38,"tag":151,"props":1950,"children":1951},{"style":164},[1952],{"type":44,"value":298},{"type":38,"tag":151,"props":1954,"children":1955},{"style":158},[1956],{"type":44,"value":303},{"type":38,"tag":151,"props":1958,"children":1959},{"style":170},[1960],{"type":44,"value":1318},{"type":38,"tag":151,"props":1962,"children":1963},{"style":164},[1964],{"type":44,"value":382},{"type":38,"tag":151,"props":1966,"children":1967},{"style":306},[1968],{"type":44,"value":1327},{"type":38,"tag":151,"props":1970,"children":1971},{"style":170},[1972],{"type":44,"value":313},{"type":38,"tag":151,"props":1974,"children":1975},{"style":164},[1976],{"type":44,"value":318},{"type":38,"tag":151,"props":1978,"children":1979},{"class":153,"line":552},[1980,1985,1989,1993,1997,2001],{"type":38,"tag":151,"props":1981,"children":1982},{"style":325},[1983],{"type":44,"value":1984},"  method",{"type":38,"tag":151,"props":1986,"children":1987},{"style":164},[1988],{"type":44,"value":333},{"type":38,"tag":151,"props":1990,"children":1991},{"style":164},[1992],{"type":44,"value":198},{"type":38,"tag":151,"props":1994,"children":1995},{"style":201},[1996],{"type":44,"value":99},{"type":38,"tag":151,"props":1998,"children":1999},{"style":164},[2000],{"type":44,"value":209},{"type":38,"tag":151,"props":2002,"children":2003},{"style":164},[2004],{"type":44,"value":549},{"type":38,"tag":151,"props":2006,"children":2007},{"class":153,"line":561},[2008,2013,2017,2022],{"type":38,"tag":151,"props":2009,"children":2010},{"style":325},[2011],{"type":44,"value":2012},"  params",{"type":38,"tag":151,"props":2014,"children":2015},{"style":164},[2016],{"type":44,"value":333},{"type":38,"tag":151,"props":2018,"children":2019},{"style":170},[2020],{"type":44,"value":2021}," [txParams]",{"type":38,"tag":151,"props":2023,"children":2024},{"style":164},[2025],{"type":44,"value":549},{"type":38,"tag":151,"props":2027,"children":2028},{"class":153,"line":570},[2029,2033,2037,2041,2045],{"type":38,"tag":151,"props":2030,"children":2031},{"style":164},[2032],{"type":44,"value":539},{"type":38,"tag":151,"props":2034,"children":2035},{"style":170},[2036],{"type":44,"value":901},{"type":38,"tag":151,"props":2038,"children":2039},{"style":158},[2040],{"type":44,"value":759},{"type":38,"tag":151,"props":2042,"children":2043},{"style":762},[2044],{"type":44,"value":235},{"type":38,"tag":151,"props":2046,"children":2047},{"style":164},[2048],{"type":44,"value":214},{"type":38,"tag":151,"props":2050,"children":2051},{"class":153,"line":586},[2052],{"type":38,"tag":151,"props":2053,"children":2054},{"emptyLinePlaceholder":275},[2055],{"type":44,"value":278},{"type":38,"tag":151,"props":2057,"children":2058},{"class":153,"line":594},[2059],{"type":38,"tag":151,"props":2060,"children":2061},{"style":1009},[2062],{"type":44,"value":2063},"\u002F\u002F Add 20% buffer to the estimate\n",{"type":38,"tag":151,"props":2065,"children":2066},{"class":153,"line":686},[2067,2071,2076,2080,2084,2089,2093,2098,2103,2108,2113,2117],{"type":38,"tag":151,"props":2068,"children":2069},{"style":285},[2070],{"type":44,"value":288},{"type":38,"tag":151,"props":2072,"children":2073},{"style":170},[2074],{"type":44,"value":2075}," gasWithBuffer ",{"type":38,"tag":151,"props":2077,"children":2078},{"style":164},[2079],{"type":44,"value":298},{"type":38,"tag":151,"props":2081,"children":2082},{"style":306},[2083],{"type":44,"value":861},{"type":38,"tag":151,"props":2085,"children":2086},{"style":170},[2087],{"type":44,"value":2088},"(estimatedGas) ",{"type":38,"tag":151,"props":2090,"children":2091},{"style":164},[2092],{"type":44,"value":906},{"type":38,"tag":151,"props":2094,"children":2095},{"style":747},[2096],{"type":44,"value":2097}," 120",{"type":38,"tag":151,"props":2099,"children":2100},{"style":285},[2101],{"type":44,"value":2102},"n",{"type":38,"tag":151,"props":2104,"children":2105},{"style":164},[2106],{"type":44,"value":2107}," \u002F",{"type":38,"tag":151,"props":2109,"children":2110},{"style":747},[2111],{"type":44,"value":2112}," 100",{"type":38,"tag":151,"props":2114,"children":2115},{"style":285},[2116],{"type":44,"value":2102},{"type":38,"tag":151,"props":2118,"children":2119},{"style":164},[2120],{"type":44,"value":214},{"type":38,"tag":151,"props":2122,"children":2123},{"class":153,"line":725},[2124,2128,2133,2137,2141,2145,2149,2154,2158,2162,2166,2170,2174,2178,2182,2186],{"type":38,"tag":151,"props":2125,"children":2126},{"style":285},[2127],{"type":44,"value":288},{"type":38,"tag":151,"props":2129,"children":2130},{"style":170},[2131],{"type":44,"value":2132}," gasHex ",{"type":38,"tag":151,"props":2134,"children":2135},{"style":164},[2136],{"type":44,"value":298},{"type":38,"tag":151,"props":2138,"children":2139},{"style":164},[2140],{"type":44,"value":933},{"type":38,"tag":151,"props":2142,"children":2143},{"style":201},[2144],{"type":44,"value":938},{"type":38,"tag":151,"props":2146,"children":2147},{"style":164},[2148],{"type":44,"value":943},{"type":38,"tag":151,"props":2150,"children":2151},{"style":170},[2152],{"type":44,"value":2153},"gasWithBuffer",{"type":38,"tag":151,"props":2155,"children":2156},{"style":164},[2157],{"type":44,"value":382},{"type":38,"tag":151,"props":2159,"children":2160},{"style":306},[2161],{"type":44,"value":957},{"type":38,"tag":151,"props":2163,"children":2164},{"style":170},[2165],{"type":44,"value":313},{"type":38,"tag":151,"props":2167,"children":2168},{"style":747},[2169],{"type":44,"value":966},{"type":38,"tag":151,"props":2171,"children":2172},{"style":170},[2173],{"type":44,"value":544},{"type":38,"tag":151,"props":2175,"children":2176},{"style":164},[2177],{"type":44,"value":975},{"type":38,"tag":151,"props":2179,"children":2180},{"style":158},[2181],{"type":44,"value":980},{"type":38,"tag":151,"props":2183,"children":2184},{"style":762},[2185],{"type":44,"value":235},{"type":38,"tag":151,"props":2187,"children":2188},{"style":164},[2189],{"type":44,"value":214},{"type":38,"tag":151,"props":2191,"children":2192},{"class":153,"line":1558},[2193],{"type":38,"tag":151,"props":2194,"children":2195},{"emptyLinePlaceholder":275},[2196],{"type":44,"value":278},{"type":38,"tag":151,"props":2198,"children":2199},{"class":153,"line":1600},[2200,2204,2209,2213,2217,2221,2225,2229,2233],{"type":38,"tag":151,"props":2201,"children":2202},{"style":285},[2203],{"type":44,"value":288},{"type":38,"tag":151,"props":2205,"children":2206},{"style":170},[2207],{"type":44,"value":2208}," txHash ",{"type":38,"tag":151,"props":2210,"children":2211},{"style":164},[2212],{"type":44,"value":298},{"type":38,"tag":151,"props":2214,"children":2215},{"style":158},[2216],{"type":44,"value":303},{"type":38,"tag":151,"props":2218,"children":2219},{"style":170},[2220],{"type":44,"value":1318},{"type":38,"tag":151,"props":2222,"children":2223},{"style":164},[2224],{"type":44,"value":382},{"type":38,"tag":151,"props":2226,"children":2227},{"style":306},[2228],{"type":44,"value":1327},{"type":38,"tag":151,"props":2230,"children":2231},{"style":170},[2232],{"type":44,"value":313},{"type":38,"tag":151,"props":2234,"children":2235},{"style":164},[2236],{"type":44,"value":318},{"type":38,"tag":151,"props":2238,"children":2239},{"class":153,"line":1613},[2240,2244,2248,2252,2256,2260],{"type":38,"tag":151,"props":2241,"children":2242},{"style":325},[2243],{"type":44,"value":1984},{"type":38,"tag":151,"props":2245,"children":2246},{"style":164},[2247],{"type":44,"value":333},{"type":38,"tag":151,"props":2249,"children":2250},{"style":164},[2251],{"type":44,"value":198},{"type":38,"tag":151,"props":2253,"children":2254},{"style":201},[2255],{"type":44,"value":75},{"type":38,"tag":151,"props":2257,"children":2258},{"style":164},[2259],{"type":44,"value":209},{"type":38,"tag":151,"props":2261,"children":2262},{"style":164},[2263],{"type":44,"value":549},{"type":38,"tag":151,"props":2265,"children":2266},{"class":153,"line":1622},[2267,2271,2275,2279],{"type":38,"tag":151,"props":2268,"children":2269},{"style":325},[2270],{"type":44,"value":2012},{"type":38,"tag":151,"props":2272,"children":2273},{"style":164},[2274],{"type":44,"value":333},{"type":38,"tag":151,"props":2276,"children":2277},{"style":170},[2278],{"type":44,"value":499},{"type":38,"tag":151,"props":2280,"children":2281},{"style":164},[2282],{"type":44,"value":318},{"type":38,"tag":151,"props":2284,"children":2285},{"class":153,"line":1668},[2286,2291,2295],{"type":38,"tag":151,"props":2287,"children":2288},{"style":164},[2289],{"type":44,"value":2290},"    ...",{"type":38,"tag":151,"props":2292,"children":2293},{"style":170},[2294],{"type":44,"value":1384},{"type":38,"tag":151,"props":2296,"children":2297},{"style":164},[2298],{"type":44,"value":549},{"type":38,"tag":151,"props":2300,"children":2301},{"class":153,"line":1709},[2302,2307,2311,2316],{"type":38,"tag":151,"props":2303,"children":2304},{"style":325},[2305],{"type":44,"value":2306},"    gas",{"type":38,"tag":151,"props":2308,"children":2309},{"style":164},[2310],{"type":44,"value":333},{"type":38,"tag":151,"props":2312,"children":2313},{"style":170},[2314],{"type":44,"value":2315}," gasHex",{"type":38,"tag":151,"props":2317,"children":2318},{"style":164},[2319],{"type":44,"value":549},{"type":38,"tag":151,"props":2321,"children":2322},{"class":153,"line":1721},[2323,2327,2331],{"type":38,"tag":151,"props":2324,"children":2325},{"style":164},[2326],{"type":44,"value":1401},{"type":38,"tag":151,"props":2328,"children":2329},{"style":170},[2330],{"type":44,"value":1389},{"type":38,"tag":151,"props":2332,"children":2333},{"style":164},[2334],{"type":44,"value":549},{"type":38,"tag":151,"props":2336,"children":2337},{"class":153,"line":1729},[2338,2342,2346,2350,2354],{"type":38,"tag":151,"props":2339,"children":2340},{"style":164},[2341],{"type":44,"value":539},{"type":38,"tag":151,"props":2343,"children":2344},{"style":170},[2345],{"type":44,"value":901},{"type":38,"tag":151,"props":2347,"children":2348},{"style":158},[2349],{"type":44,"value":759},{"type":38,"tag":151,"props":2351,"children":2352},{"style":762},[2353],{"type":44,"value":235},{"type":38,"tag":151,"props":2355,"children":2356},{"style":164},[2357],{"type":44,"value":214},{"type":38,"tag":133,"props":2359,"children":2361},{"id":2360},"step-5-send-a-contract-interaction",[2362],{"type":44,"value":2363},"Step 5: Send a contract interaction",{"type":38,"tag":54,"props":2365,"children":2366},{},[2367,2369,2374,2376,2382],{"type":44,"value":2368},"Encode the function call as the ",{"type":38,"tag":70,"props":2370,"children":2372},{"className":2371},[],[2373],{"type":44,"value":86},{"type":44,"value":2375}," field. For an ERC-20 ",{"type":38,"tag":70,"props":2377,"children":2379},{"className":2378},[],[2380],{"type":44,"value":2381},"transfer(address,uint256)",{"type":44,"value":333},{"type":38,"tag":140,"props":2384,"children":2386},{"className":142,"code":2385,"language":144,"meta":145,"style":145},"\u002F\u002F ERC-20 transfer function selector: 0xa9059cbb\n\u002F\u002F Encode: transfer(0xRecipient, 1000000) for USDC (6 decimals)\nconst recipient = '0xRecipientAddress'.slice(2).padStart(64, '0');\nconst amount = (1000000).toString(16).padStart(64, '0'); \u002F\u002F 1 USDC\n\nconst data = `0xa9059cbb${recipient}${amount}` as Hex;\n\nconst txHash = await provider.request({\n  method: 'eth_sendTransaction',\n  params: [{\n    from: from,\n    to: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48' as Address, \u002F\u002F USDC contract\n    data: data,\n    value: '0x0', \u002F\u002F no ETH sent with token transfer\n  }],\n}) as Hex;\n",[2387],{"type":38,"tag":70,"props":2388,"children":2389},{"__ignoreMap":145},[2390,2398,2406,2498,2592,2599,2659,2666,2705,2732,2751,2771,2813,2834,2868,2883],{"type":38,"tag":151,"props":2391,"children":2392},{"class":153,"line":154},[2393],{"type":38,"tag":151,"props":2394,"children":2395},{"style":1009},[2396],{"type":44,"value":2397},"\u002F\u002F ERC-20 transfer function selector: 0xa9059cbb\n",{"type":38,"tag":151,"props":2399,"children":2400},{"class":153,"line":22},[2401],{"type":38,"tag":151,"props":2402,"children":2403},{"style":1009},[2404],{"type":44,"value":2405},"\u002F\u002F Encode: transfer(0xRecipient, 1000000) for USDC (6 decimals)\n",{"type":38,"tag":151,"props":2407,"children":2408},{"class":153,"line":271},[2409,2413,2418,2422,2426,2430,2434,2438,2443,2447,2452,2456,2460,2465,2469,2474,2478,2482,2486,2490,2494],{"type":38,"tag":151,"props":2410,"children":2411},{"style":285},[2412],{"type":44,"value":288},{"type":38,"tag":151,"props":2414,"children":2415},{"style":170},[2416],{"type":44,"value":2417}," recipient ",{"type":38,"tag":151,"props":2419,"children":2420},{"style":164},[2421],{"type":44,"value":298},{"type":38,"tag":151,"props":2423,"children":2424},{"style":164},[2425],{"type":44,"value":198},{"type":38,"tag":151,"props":2427,"children":2428},{"style":201},[2429],{"type":44,"value":1210},{"type":38,"tag":151,"props":2431,"children":2432},{"style":164},[2433],{"type":44,"value":209},{"type":38,"tag":151,"props":2435,"children":2436},{"style":164},[2437],{"type":44,"value":382},{"type":38,"tag":151,"props":2439,"children":2440},{"style":306},[2441],{"type":44,"value":2442},"slice",{"type":38,"tag":151,"props":2444,"children":2445},{"style":170},[2446],{"type":44,"value":313},{"type":38,"tag":151,"props":2448,"children":2449},{"style":747},[2450],{"type":44,"value":2451},"2",{"type":38,"tag":151,"props":2453,"children":2454},{"style":170},[2455],{"type":44,"value":544},{"type":38,"tag":151,"props":2457,"children":2458},{"style":164},[2459],{"type":44,"value":382},{"type":38,"tag":151,"props":2461,"children":2462},{"style":306},[2463],{"type":44,"value":2464},"padStart",{"type":38,"tag":151,"props":2466,"children":2467},{"style":170},[2468],{"type":44,"value":313},{"type":38,"tag":151,"props":2470,"children":2471},{"style":747},[2472],{"type":44,"value":2473},"64",{"type":38,"tag":151,"props":2475,"children":2476},{"style":164},[2477],{"type":44,"value":178},{"type":38,"tag":151,"props":2479,"children":2480},{"style":164},[2481],{"type":44,"value":198},{"type":38,"tag":151,"props":2483,"children":2484},{"style":201},[2485],{"type":44,"value":750},{"type":38,"tag":151,"props":2487,"children":2488},{"style":164},[2489],{"type":44,"value":209},{"type":38,"tag":151,"props":2491,"children":2492},{"style":170},[2493],{"type":44,"value":544},{"type":38,"tag":151,"props":2495,"children":2496},{"style":164},[2497],{"type":44,"value":214},{"type":38,"tag":151,"props":2499,"children":2500},{"class":153,"line":281},[2501,2505,2510,2514,2518,2523,2527,2531,2535,2539,2543,2547,2551,2555,2559,2563,2567,2571,2575,2579,2583,2587],{"type":38,"tag":151,"props":2502,"children":2503},{"style":285},[2504],{"type":44,"value":288},{"type":38,"tag":151,"props":2506,"children":2507},{"style":170},[2508],{"type":44,"value":2509}," amount ",{"type":38,"tag":151,"props":2511,"children":2512},{"style":164},[2513],{"type":44,"value":298},{"type":38,"tag":151,"props":2515,"children":2516},{"style":170},[2517],{"type":44,"value":1491},{"type":38,"tag":151,"props":2519,"children":2520},{"style":747},[2521],{"type":44,"value":2522},"1000000",{"type":38,"tag":151,"props":2524,"children":2525},{"style":170},[2526],{"type":44,"value":544},{"type":38,"tag":151,"props":2528,"children":2529},{"style":164},[2530],{"type":44,"value":382},{"type":38,"tag":151,"props":2532,"children":2533},{"style":306},[2534],{"type":44,"value":957},{"type":38,"tag":151,"props":2536,"children":2537},{"style":170},[2538],{"type":44,"value":313},{"type":38,"tag":151,"props":2540,"children":2541},{"style":747},[2542],{"type":44,"value":966},{"type":38,"tag":151,"props":2544,"children":2545},{"style":170},[2546],{"type":44,"value":544},{"type":38,"tag":151,"props":2548,"children":2549},{"style":164},[2550],{"type":44,"value":382},{"type":38,"tag":151,"props":2552,"children":2553},{"style":306},[2554],{"type":44,"value":2464},{"type":38,"tag":151,"props":2556,"children":2557},{"style":170},[2558],{"type":44,"value":313},{"type":38,"tag":151,"props":2560,"children":2561},{"style":747},[2562],{"type":44,"value":2473},{"type":38,"tag":151,"props":2564,"children":2565},{"style":164},[2566],{"type":44,"value":178},{"type":38,"tag":151,"props":2568,"children":2569},{"style":164},[2570],{"type":44,"value":198},{"type":38,"tag":151,"props":2572,"children":2573},{"style":201},[2574],{"type":44,"value":750},{"type":38,"tag":151,"props":2576,"children":2577},{"style":164},[2578],{"type":44,"value":209},{"type":38,"tag":151,"props":2580,"children":2581},{"style":170},[2582],{"type":44,"value":544},{"type":38,"tag":151,"props":2584,"children":2585},{"style":164},[2586],{"type":44,"value":1046},{"type":38,"tag":151,"props":2588,"children":2589},{"style":1009},[2590],{"type":44,"value":2591}," \u002F\u002F 1 USDC\n",{"type":38,"tag":151,"props":2593,"children":2594},{"class":153,"line":321},[2595],{"type":38,"tag":151,"props":2596,"children":2597},{"emptyLinePlaceholder":275},[2598],{"type":44,"value":278},{"type":38,"tag":151,"props":2600,"children":2601},{"class":153,"line":404},[2602,2606,2611,2615,2619,2624,2628,2633,2638,2643,2647,2651,2655],{"type":38,"tag":151,"props":2603,"children":2604},{"style":285},[2605],{"type":44,"value":288},{"type":38,"tag":151,"props":2607,"children":2608},{"style":170},[2609],{"type":44,"value":2610}," data ",{"type":38,"tag":151,"props":2612,"children":2613},{"style":164},[2614],{"type":44,"value":298},{"type":38,"tag":151,"props":2616,"children":2617},{"style":164},[2618],{"type":44,"value":933},{"type":38,"tag":151,"props":2620,"children":2621},{"style":201},[2622],{"type":44,"value":2623},"0xa9059cbb",{"type":38,"tag":151,"props":2625,"children":2626},{"style":164},[2627],{"type":44,"value":943},{"type":38,"tag":151,"props":2629,"children":2630},{"style":170},[2631],{"type":44,"value":2632},"recipient",{"type":38,"tag":151,"props":2634,"children":2635},{"style":164},[2636],{"type":44,"value":2637},"}${",{"type":38,"tag":151,"props":2639,"children":2640},{"style":170},[2641],{"type":44,"value":2642},"amount",{"type":38,"tag":151,"props":2644,"children":2645},{"style":164},[2646],{"type":44,"value":975},{"type":38,"tag":151,"props":2648,"children":2649},{"style":158},[2650],{"type":44,"value":980},{"type":38,"tag":151,"props":2652,"children":2653},{"style":762},[2654],{"type":44,"value":235},{"type":38,"tag":151,"props":2656,"children":2657},{"style":164},[2658],{"type":44,"value":214},{"type":38,"tag":151,"props":2660,"children":2661},{"class":153,"line":422},[2662],{"type":38,"tag":151,"props":2663,"children":2664},{"emptyLinePlaceholder":275},[2665],{"type":44,"value":278},{"type":38,"tag":151,"props":2667,"children":2668},{"class":153,"line":439},[2669,2673,2677,2681,2685,2689,2693,2697,2701],{"type":38,"tag":151,"props":2670,"children":2671},{"style":285},[2672],{"type":44,"value":288},{"type":38,"tag":151,"props":2674,"children":2675},{"style":170},[2676],{"type":44,"value":2208},{"type":38,"tag":151,"props":2678,"children":2679},{"style":164},[2680],{"type":44,"value":298},{"type":38,"tag":151,"props":2682,"children":2683},{"style":158},[2684],{"type":44,"value":303},{"type":38,"tag":151,"props":2686,"children":2687},{"style":170},[2688],{"type":44,"value":1318},{"type":38,"tag":151,"props":2690,"children":2691},{"style":164},[2692],{"type":44,"value":382},{"type":38,"tag":151,"props":2694,"children":2695},{"style":306},[2696],{"type":44,"value":1327},{"type":38,"tag":151,"props":2698,"children":2699},{"style":170},[2700],{"type":44,"value":313},{"type":38,"tag":151,"props":2702,"children":2703},{"style":164},[2704],{"type":44,"value":318},{"type":38,"tag":151,"props":2706,"children":2707},{"class":153,"line":552},[2708,2712,2716,2720,2724,2728],{"type":38,"tag":151,"props":2709,"children":2710},{"style":325},[2711],{"type":44,"value":1984},{"type":38,"tag":151,"props":2713,"children":2714},{"style":164},[2715],{"type":44,"value":333},{"type":38,"tag":151,"props":2717,"children":2718},{"style":164},[2719],{"type":44,"value":198},{"type":38,"tag":151,"props":2721,"children":2722},{"style":201},[2723],{"type":44,"value":75},{"type":38,"tag":151,"props":2725,"children":2726},{"style":164},[2727],{"type":44,"value":209},{"type":38,"tag":151,"props":2729,"children":2730},{"style":164},[2731],{"type":44,"value":549},{"type":38,"tag":151,"props":2733,"children":2734},{"class":153,"line":561},[2735,2739,2743,2747],{"type":38,"tag":151,"props":2736,"children":2737},{"style":325},[2738],{"type":44,"value":2012},{"type":38,"tag":151,"props":2740,"children":2741},{"style":164},[2742],{"type":44,"value":333},{"type":38,"tag":151,"props":2744,"children":2745},{"style":170},[2746],{"type":44,"value":499},{"type":38,"tag":151,"props":2748,"children":2749},{"style":164},[2750],{"type":44,"value":318},{"type":38,"tag":151,"props":2752,"children":2753},{"class":153,"line":570},[2754,2759,2763,2767],{"type":38,"tag":151,"props":2755,"children":2756},{"style":325},[2757],{"type":44,"value":2758},"    from",{"type":38,"tag":151,"props":2760,"children":2761},{"style":164},[2762],{"type":44,"value":333},{"type":38,"tag":151,"props":2764,"children":2765},{"style":170},[2766],{"type":44,"value":193},{"type":38,"tag":151,"props":2768,"children":2769},{"style":164},[2770],{"type":44,"value":549},{"type":38,"tag":151,"props":2772,"children":2773},{"class":153,"line":586},[2774,2779,2783,2787,2792,2796,2800,2804,2808],{"type":38,"tag":151,"props":2775,"children":2776},{"style":325},[2777],{"type":44,"value":2778},"    to",{"type":38,"tag":151,"props":2780,"children":2781},{"style":164},[2782],{"type":44,"value":333},{"type":38,"tag":151,"props":2784,"children":2785},{"style":164},[2786],{"type":44,"value":198},{"type":38,"tag":151,"props":2788,"children":2789},{"style":201},[2790],{"type":44,"value":2791},"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",{"type":38,"tag":151,"props":2793,"children":2794},{"style":164},[2795],{"type":44,"value":209},{"type":38,"tag":151,"props":2797,"children":2798},{"style":158},[2799],{"type":44,"value":980},{"type":38,"tag":151,"props":2801,"children":2802},{"style":762},[2803],{"type":44,"value":244},{"type":38,"tag":151,"props":2805,"children":2806},{"style":164},[2807],{"type":44,"value":178},{"type":38,"tag":151,"props":2809,"children":2810},{"style":1009},[2811],{"type":44,"value":2812}," \u002F\u002F USDC contract\n",{"type":38,"tag":151,"props":2814,"children":2815},{"class":153,"line":594},[2816,2821,2825,2830],{"type":38,"tag":151,"props":2817,"children":2818},{"style":325},[2819],{"type":44,"value":2820},"    data",{"type":38,"tag":151,"props":2822,"children":2823},{"style":164},[2824],{"type":44,"value":333},{"type":38,"tag":151,"props":2826,"children":2827},{"style":170},[2828],{"type":44,"value":2829}," data",{"type":38,"tag":151,"props":2831,"children":2832},{"style":164},[2833],{"type":44,"value":549},{"type":38,"tag":151,"props":2835,"children":2836},{"class":153,"line":686},[2837,2842,2846,2850,2855,2859,2863],{"type":38,"tag":151,"props":2838,"children":2839},{"style":325},[2840],{"type":44,"value":2841},"    value",{"type":38,"tag":151,"props":2843,"children":2844},{"style":164},[2845],{"type":44,"value":333},{"type":38,"tag":151,"props":2847,"children":2848},{"style":164},[2849],{"type":44,"value":198},{"type":38,"tag":151,"props":2851,"children":2852},{"style":201},[2853],{"type":44,"value":2854},"0x0",{"type":38,"tag":151,"props":2856,"children":2857},{"style":164},[2858],{"type":44,"value":209},{"type":38,"tag":151,"props":2860,"children":2861},{"style":164},[2862],{"type":44,"value":178},{"type":38,"tag":151,"props":2864,"children":2865},{"style":1009},[2866],{"type":44,"value":2867}," \u002F\u002F no ETH sent with token transfer\n",{"type":38,"tag":151,"props":2869,"children":2870},{"class":153,"line":725},[2871,2875,2879],{"type":38,"tag":151,"props":2872,"children":2873},{"style":164},[2874],{"type":44,"value":1401},{"type":38,"tag":151,"props":2876,"children":2877},{"style":170},[2878],{"type":44,"value":1389},{"type":38,"tag":151,"props":2880,"children":2881},{"style":164},[2882],{"type":44,"value":549},{"type":38,"tag":151,"props":2884,"children":2885},{"class":153,"line":1558},[2886,2890,2894,2898,2902],{"type":38,"tag":151,"props":2887,"children":2888},{"style":164},[2889],{"type":44,"value":539},{"type":38,"tag":151,"props":2891,"children":2892},{"style":170},[2893],{"type":44,"value":901},{"type":38,"tag":151,"props":2895,"children":2896},{"style":158},[2897],{"type":44,"value":759},{"type":38,"tag":151,"props":2899,"children":2900},{"style":762},[2901],{"type":44,"value":235},{"type":38,"tag":151,"props":2903,"children":2904},{"style":164},[2905],{"type":44,"value":214},{"type":38,"tag":133,"props":2907,"children":2909},{"id":2908},"step-6-poll-for-transaction-receipt",[2910],{"type":44,"value":2911},"Step 6: Poll for transaction receipt",{"type":38,"tag":54,"props":2913,"children":2914},{},[2915,2917,2922],{"type":44,"value":2916},"After sending, poll ",{"type":38,"tag":70,"props":2918,"children":2920},{"className":2919},[],[2921],{"type":44,"value":112},{"type":44,"value":2923}," until the transaction is confirmed:",{"type":38,"tag":140,"props":2925,"children":2927},{"className":142,"code":2926,"language":144,"meta":145,"style":145},"async function waitForReceipt(\n  provider: any,\n  txHash: Hex,\n  intervalMs = 2000,\n  timeoutMs = 120000,\n): Promise\u003Cany> {\n  const start = Date.now();\n\n  while (Date.now() - start \u003C timeoutMs) {\n    const receipt = await provider.request({\n      method: 'eth_getTransactionReceipt',\n      params: [txHash],\n    });\n\n    if (receipt !== null) {\n      \u002F\u002F receipt.status: '0x1' = success, '0x0' = revert\n      return receipt;\n    }\n\n    await new Promise((r) => setTimeout(r, intervalMs));\n  }\n\n  throw new Error(`Transaction ${txHash} not confirmed within ${timeoutMs}ms`);\n}\n\n\u002F\u002F Usage\nconst txHash = await provider.request({\n  method: 'eth_sendTransaction',\n  params: [txParams],\n}) as Hex;\n\nconst receipt = await waitForReceipt(provider, txHash);\n\nif (receipt.status === '0x1') {\n  console.log('Transaction confirmed in block:', parseInt(receipt.blockNumber, 16));\n} else {\n  console.error('Transaction reverted');\n}\n",[2928],{"type":38,"tag":70,"props":2929,"children":2930},{"__ignoreMap":145},[2931,2954,2974,2994,3015,3036,3067,3105,3112,3169,3210,3238,3267,3283,3290,3325,3333,3349,3357,3364,3433,3440,3447,3524,3531,3539,3548,3588,3616,3636,3660,3668,3711,3719,3767,3843,3860,3902],{"type":38,"tag":151,"props":2932,"children":2933},{"class":153,"line":154},[2934,2939,2944,2949],{"type":38,"tag":151,"props":2935,"children":2936},{"style":285},[2937],{"type":44,"value":2938},"async",{"type":38,"tag":151,"props":2940,"children":2941},{"style":285},[2942],{"type":44,"value":2943}," function",{"type":38,"tag":151,"props":2945,"children":2946},{"style":306},[2947],{"type":44,"value":2948}," waitForReceipt",{"type":38,"tag":151,"props":2950,"children":2951},{"style":164},[2952],{"type":44,"value":2953},"(\n",{"type":38,"tag":151,"props":2955,"children":2956},{"class":153,"line":22},[2957,2962,2966,2970],{"type":38,"tag":151,"props":2958,"children":2959},{"style":814},[2960],{"type":44,"value":2961},"  provider",{"type":38,"tag":151,"props":2963,"children":2964},{"style":164},[2965],{"type":44,"value":333},{"type":38,"tag":151,"props":2967,"children":2968},{"style":762},[2969],{"type":44,"value":1505},{"type":38,"tag":151,"props":2971,"children":2972},{"style":164},[2973],{"type":44,"value":549},{"type":38,"tag":151,"props":2975,"children":2976},{"class":153,"line":271},[2977,2982,2986,2990],{"type":38,"tag":151,"props":2978,"children":2979},{"style":814},[2980],{"type":44,"value":2981},"  txHash",{"type":38,"tag":151,"props":2983,"children":2984},{"style":164},[2985],{"type":44,"value":333},{"type":38,"tag":151,"props":2987,"children":2988},{"style":762},[2989],{"type":44,"value":235},{"type":38,"tag":151,"props":2991,"children":2992},{"style":164},[2993],{"type":44,"value":549},{"type":38,"tag":151,"props":2995,"children":2996},{"class":153,"line":281},[2997,3002,3006,3011],{"type":38,"tag":151,"props":2998,"children":2999},{"style":814},[3000],{"type":44,"value":3001},"  intervalMs",{"type":38,"tag":151,"props":3003,"children":3004},{"style":164},[3005],{"type":44,"value":617},{"type":38,"tag":151,"props":3007,"children":3008},{"style":747},[3009],{"type":44,"value":3010}," 2000",{"type":38,"tag":151,"props":3012,"children":3013},{"style":164},[3014],{"type":44,"value":549},{"type":38,"tag":151,"props":3016,"children":3017},{"class":153,"line":321},[3018,3023,3027,3032],{"type":38,"tag":151,"props":3019,"children":3020},{"style":814},[3021],{"type":44,"value":3022},"  timeoutMs",{"type":38,"tag":151,"props":3024,"children":3025},{"style":164},[3026],{"type":44,"value":617},{"type":38,"tag":151,"props":3028,"children":3029},{"style":747},[3030],{"type":44,"value":3031}," 120000",{"type":38,"tag":151,"props":3033,"children":3034},{"style":164},[3035],{"type":44,"value":549},{"type":38,"tag":151,"props":3037,"children":3038},{"class":153,"line":404},[3039,3043,3048,3053,3058,3063],{"type":38,"tag":151,"props":3040,"children":3041},{"style":164},[3042],{"type":44,"value":831},{"type":38,"tag":151,"props":3044,"children":3045},{"style":762},[3046],{"type":44,"value":3047}," Promise",{"type":38,"tag":151,"props":3049,"children":3050},{"style":164},[3051],{"type":44,"value":3052},"\u003C",{"type":38,"tag":151,"props":3054,"children":3055},{"style":762},[3056],{"type":44,"value":3057},"any",{"type":38,"tag":151,"props":3059,"children":3060},{"style":164},[3061],{"type":44,"value":3062},">",{"type":38,"tag":151,"props":3064,"children":3065},{"style":164},[3066],{"type":44,"value":419},{"type":38,"tag":151,"props":3068,"children":3069},{"class":153,"line":422},[3070,3074,3079,3083,3088,3092,3097,3101],{"type":38,"tag":151,"props":3071,"children":3072},{"style":285},[3073],{"type":44,"value":847},{"type":38,"tag":151,"props":3075,"children":3076},{"style":170},[3077],{"type":44,"value":3078}," start",{"type":38,"tag":151,"props":3080,"children":3081},{"style":164},[3082],{"type":44,"value":617},{"type":38,"tag":151,"props":3084,"children":3085},{"style":170},[3086],{"type":44,"value":3087}," Date",{"type":38,"tag":151,"props":3089,"children":3090},{"style":164},[3091],{"type":44,"value":382},{"type":38,"tag":151,"props":3093,"children":3094},{"style":306},[3095],{"type":44,"value":3096},"now",{"type":38,"tag":151,"props":3098,"children":3099},{"style":325},[3100],{"type":44,"value":718},{"type":38,"tag":151,"props":3102,"children":3103},{"style":164},[3104],{"type":44,"value":214},{"type":38,"tag":151,"props":3106,"children":3107},{"class":153,"line":439},[3108],{"type":38,"tag":151,"props":3109,"children":3110},{"emptyLinePlaceholder":275},[3111],{"type":44,"value":278},{"type":38,"tag":151,"props":3113,"children":3114},{"class":153,"line":552},[3115,3120,3124,3129,3133,3137,3142,3147,3151,3156,3161,3165],{"type":38,"tag":151,"props":3116,"children":3117},{"style":158},[3118],{"type":44,"value":3119},"  while",{"type":38,"tag":151,"props":3121,"children":3122},{"style":325},[3123],{"type":44,"value":1491},{"type":38,"tag":151,"props":3125,"children":3126},{"style":170},[3127],{"type":44,"value":3128},"Date",{"type":38,"tag":151,"props":3130,"children":3131},{"style":164},[3132],{"type":44,"value":382},{"type":38,"tag":151,"props":3134,"children":3135},{"style":306},[3136],{"type":44,"value":3096},{"type":38,"tag":151,"props":3138,"children":3139},{"style":325},[3140],{"type":44,"value":3141},"() ",{"type":38,"tag":151,"props":3143,"children":3144},{"style":164},[3145],{"type":44,"value":3146},"-",{"type":38,"tag":151,"props":3148,"children":3149},{"style":170},[3150],{"type":44,"value":3078},{"type":38,"tag":151,"props":3152,"children":3153},{"style":164},[3154],{"type":44,"value":3155}," \u003C",{"type":38,"tag":151,"props":3157,"children":3158},{"style":170},[3159],{"type":44,"value":3160}," timeoutMs",{"type":38,"tag":151,"props":3162,"children":3163},{"style":325},[3164],{"type":44,"value":901},{"type":38,"tag":151,"props":3166,"children":3167},{"style":164},[3168],{"type":44,"value":318},{"type":38,"tag":151,"props":3170,"children":3171},{"class":153,"line":561},[3172,3177,3182,3186,3190,3194,3198,3202,3206],{"type":38,"tag":151,"props":3173,"children":3174},{"style":285},[3175],{"type":44,"value":3176},"    const",{"type":38,"tag":151,"props":3178,"children":3179},{"style":170},[3180],{"type":44,"value":3181}," receipt",{"type":38,"tag":151,"props":3183,"children":3184},{"style":164},[3185],{"type":44,"value":617},{"type":38,"tag":151,"props":3187,"children":3188},{"style":158},[3189],{"type":44,"value":303},{"type":38,"tag":151,"props":3191,"children":3192},{"style":170},[3193],{"type":44,"value":1318},{"type":38,"tag":151,"props":3195,"children":3196},{"style":164},[3197],{"type":44,"value":382},{"type":38,"tag":151,"props":3199,"children":3200},{"style":306},[3201],{"type":44,"value":1327},{"type":38,"tag":151,"props":3203,"children":3204},{"style":325},[3205],{"type":44,"value":313},{"type":38,"tag":151,"props":3207,"children":3208},{"style":164},[3209],{"type":44,"value":318},{"type":38,"tag":151,"props":3211,"children":3212},{"class":153,"line":570},[3213,3218,3222,3226,3230,3234],{"type":38,"tag":151,"props":3214,"children":3215},{"style":325},[3216],{"type":44,"value":3217},"      method",{"type":38,"tag":151,"props":3219,"children":3220},{"style":164},[3221],{"type":44,"value":333},{"type":38,"tag":151,"props":3223,"children":3224},{"style":164},[3225],{"type":44,"value":198},{"type":38,"tag":151,"props":3227,"children":3228},{"style":201},[3229],{"type":44,"value":112},{"type":38,"tag":151,"props":3231,"children":3232},{"style":164},[3233],{"type":44,"value":209},{"type":38,"tag":151,"props":3235,"children":3236},{"style":164},[3237],{"type":44,"value":549},{"type":38,"tag":151,"props":3239,"children":3240},{"class":153,"line":586},[3241,3246,3250,3254,3259,3263],{"type":38,"tag":151,"props":3242,"children":3243},{"style":325},[3244],{"type":44,"value":3245},"      params",{"type":38,"tag":151,"props":3247,"children":3248},{"style":164},[3249],{"type":44,"value":333},{"type":38,"tag":151,"props":3251,"children":3252},{"style":325},[3253],{"type":44,"value":499},{"type":38,"tag":151,"props":3255,"children":3256},{"style":170},[3257],{"type":44,"value":3258},"txHash",{"type":38,"tag":151,"props":3260,"children":3261},{"style":325},[3262],{"type":44,"value":1389},{"type":38,"tag":151,"props":3264,"children":3265},{"style":164},[3266],{"type":44,"value":549},{"type":38,"tag":151,"props":3268,"children":3269},{"class":153,"line":594},[3270,3275,3279],{"type":38,"tag":151,"props":3271,"children":3272},{"style":164},[3273],{"type":44,"value":3274},"    }",{"type":38,"tag":151,"props":3276,"children":3277},{"style":325},[3278],{"type":44,"value":544},{"type":38,"tag":151,"props":3280,"children":3281},{"style":164},[3282],{"type":44,"value":214},{"type":38,"tag":151,"props":3284,"children":3285},{"class":153,"line":686},[3286],{"type":38,"tag":151,"props":3287,"children":3288},{"emptyLinePlaceholder":275},[3289],{"type":44,"value":278},{"type":38,"tag":151,"props":3291,"children":3292},{"class":153,"line":725},[3293,3298,3302,3307,3312,3317,3321],{"type":38,"tag":151,"props":3294,"children":3295},{"style":158},[3296],{"type":44,"value":3297},"    if",{"type":38,"tag":151,"props":3299,"children":3300},{"style":325},[3301],{"type":44,"value":1491},{"type":38,"tag":151,"props":3303,"children":3304},{"style":170},[3305],{"type":44,"value":3306},"receipt",{"type":38,"tag":151,"props":3308,"children":3309},{"style":164},[3310],{"type":44,"value":3311}," !==",{"type":38,"tag":151,"props":3313,"children":3314},{"style":164},[3315],{"type":44,"value":3316}," null",{"type":38,"tag":151,"props":3318,"children":3319},{"style":325},[3320],{"type":44,"value":901},{"type":38,"tag":151,"props":3322,"children":3323},{"style":164},[3324],{"type":44,"value":318},{"type":38,"tag":151,"props":3326,"children":3327},{"class":153,"line":1558},[3328],{"type":38,"tag":151,"props":3329,"children":3330},{"style":1009},[3331],{"type":44,"value":3332},"      \u002F\u002F receipt.status: '0x1' = success, '0x0' = revert\n",{"type":38,"tag":151,"props":3334,"children":3335},{"class":153,"line":1600},[3336,3341,3345],{"type":38,"tag":151,"props":3337,"children":3338},{"style":158},[3339],{"type":44,"value":3340},"      return",{"type":38,"tag":151,"props":3342,"children":3343},{"style":170},[3344],{"type":44,"value":3181},{"type":38,"tag":151,"props":3346,"children":3347},{"style":164},[3348],{"type":44,"value":214},{"type":38,"tag":151,"props":3350,"children":3351},{"class":153,"line":1613},[3352],{"type":38,"tag":151,"props":3353,"children":3354},{"style":164},[3355],{"type":44,"value":3356},"    }\n",{"type":38,"tag":151,"props":3358,"children":3359},{"class":153,"line":1622},[3360],{"type":38,"tag":151,"props":3361,"children":3362},{"emptyLinePlaceholder":275},[3363],{"type":44,"value":278},{"type":38,"tag":151,"props":3365,"children":3366},{"class":153,"line":1668},[3367,3372,3377,3381,3385,3389,3394,3398,3403,3408,3412,3416,3420,3425,3429],{"type":38,"tag":151,"props":3368,"children":3369},{"style":158},[3370],{"type":44,"value":3371},"    await",{"type":38,"tag":151,"props":3373,"children":3374},{"style":164},[3375],{"type":44,"value":3376}," new",{"type":38,"tag":151,"props":3378,"children":3379},{"style":762},[3380],{"type":44,"value":3047},{"type":38,"tag":151,"props":3382,"children":3383},{"style":325},[3384],{"type":44,"value":313},{"type":38,"tag":151,"props":3386,"children":3387},{"style":164},[3388],{"type":44,"value":313},{"type":38,"tag":151,"props":3390,"children":3391},{"style":814},[3392],{"type":44,"value":3393},"r",{"type":38,"tag":151,"props":3395,"children":3396},{"style":164},[3397],{"type":44,"value":544},{"type":38,"tag":151,"props":3399,"children":3400},{"style":285},[3401],{"type":44,"value":3402}," =>",{"type":38,"tag":151,"props":3404,"children":3405},{"style":306},[3406],{"type":44,"value":3407}," setTimeout",{"type":38,"tag":151,"props":3409,"children":3410},{"style":325},[3411],{"type":44,"value":313},{"type":38,"tag":151,"props":3413,"children":3414},{"style":170},[3415],{"type":44,"value":3393},{"type":38,"tag":151,"props":3417,"children":3418},{"style":164},[3419],{"type":44,"value":178},{"type":38,"tag":151,"props":3421,"children":3422},{"style":170},[3423],{"type":44,"value":3424}," intervalMs",{"type":38,"tag":151,"props":3426,"children":3427},{"style":325},[3428],{"type":44,"value":916},{"type":38,"tag":151,"props":3430,"children":3431},{"style":164},[3432],{"type":44,"value":214},{"type":38,"tag":151,"props":3434,"children":3435},{"class":153,"line":1709},[3436],{"type":38,"tag":151,"props":3437,"children":3438},{"style":164},[3439],{"type":44,"value":1619},{"type":38,"tag":151,"props":3441,"children":3442},{"class":153,"line":1721},[3443],{"type":38,"tag":151,"props":3444,"children":3445},{"emptyLinePlaceholder":275},[3446],{"type":44,"value":278},{"type":38,"tag":151,"props":3448,"children":3449},{"class":153,"line":1729},[3450,3454,3458,3463,3467,3472,3477,3481,3485,3489,3494,3498,3503,3507,3512,3516,3520],{"type":38,"tag":151,"props":3451,"children":3452},{"style":158},[3453],{"type":44,"value":1735},{"type":38,"tag":151,"props":3455,"children":3456},{"style":164},[3457],{"type":44,"value":3376},{"type":38,"tag":151,"props":3459,"children":3460},{"style":306},[3461],{"type":44,"value":3462}," Error",{"type":38,"tag":151,"props":3464,"children":3465},{"style":325},[3466],{"type":44,"value":313},{"type":38,"tag":151,"props":3468,"children":3469},{"style":164},[3470],{"type":44,"value":3471},"`",{"type":38,"tag":151,"props":3473,"children":3474},{"style":201},[3475],{"type":44,"value":3476},"Transaction ",{"type":38,"tag":151,"props":3478,"children":3479},{"style":164},[3480],{"type":44,"value":943},{"type":38,"tag":151,"props":3482,"children":3483},{"style":170},[3484],{"type":44,"value":3258},{"type":38,"tag":151,"props":3486,"children":3487},{"style":164},[3488],{"type":44,"value":539},{"type":38,"tag":151,"props":3490,"children":3491},{"style":201},[3492],{"type":44,"value":3493}," not confirmed within ",{"type":38,"tag":151,"props":3495,"children":3496},{"style":164},[3497],{"type":44,"value":943},{"type":38,"tag":151,"props":3499,"children":3500},{"style":170},[3501],{"type":44,"value":3502},"timeoutMs",{"type":38,"tag":151,"props":3504,"children":3505},{"style":164},[3506],{"type":44,"value":539},{"type":38,"tag":151,"props":3508,"children":3509},{"style":201},[3510],{"type":44,"value":3511},"ms",{"type":38,"tag":151,"props":3513,"children":3514},{"style":164},[3515],{"type":44,"value":3471},{"type":38,"tag":151,"props":3517,"children":3518},{"style":325},[3519],{"type":44,"value":544},{"type":38,"tag":151,"props":3521,"children":3522},{"style":164},[3523],{"type":44,"value":214},{"type":38,"tag":151,"props":3525,"children":3526},{"class":153,"line":1747},[3527],{"type":38,"tag":151,"props":3528,"children":3529},{"style":164},[3530],{"type":44,"value":996},{"type":38,"tag":151,"props":3532,"children":3534},{"class":153,"line":3533},25,[3535],{"type":38,"tag":151,"props":3536,"children":3537},{"emptyLinePlaceholder":275},[3538],{"type":44,"value":278},{"type":38,"tag":151,"props":3540,"children":3542},{"class":153,"line":3541},26,[3543],{"type":38,"tag":151,"props":3544,"children":3545},{"style":1009},[3546],{"type":44,"value":3547},"\u002F\u002F Usage\n",{"type":38,"tag":151,"props":3549,"children":3551},{"class":153,"line":3550},27,[3552,3556,3560,3564,3568,3572,3576,3580,3584],{"type":38,"tag":151,"props":3553,"children":3554},{"style":285},[3555],{"type":44,"value":288},{"type":38,"tag":151,"props":3557,"children":3558},{"style":170},[3559],{"type":44,"value":2208},{"type":38,"tag":151,"props":3561,"children":3562},{"style":164},[3563],{"type":44,"value":298},{"type":38,"tag":151,"props":3565,"children":3566},{"style":158},[3567],{"type":44,"value":303},{"type":38,"tag":151,"props":3569,"children":3570},{"style":170},[3571],{"type":44,"value":1318},{"type":38,"tag":151,"props":3573,"children":3574},{"style":164},[3575],{"type":44,"value":382},{"type":38,"tag":151,"props":3577,"children":3578},{"style":306},[3579],{"type":44,"value":1327},{"type":38,"tag":151,"props":3581,"children":3582},{"style":170},[3583],{"type":44,"value":313},{"type":38,"tag":151,"props":3585,"children":3586},{"style":164},[3587],{"type":44,"value":318},{"type":38,"tag":151,"props":3589,"children":3591},{"class":153,"line":3590},28,[3592,3596,3600,3604,3608,3612],{"type":38,"tag":151,"props":3593,"children":3594},{"style":325},[3595],{"type":44,"value":1984},{"type":38,"tag":151,"props":3597,"children":3598},{"style":164},[3599],{"type":44,"value":333},{"type":38,"tag":151,"props":3601,"children":3602},{"style":164},[3603],{"type":44,"value":198},{"type":38,"tag":151,"props":3605,"children":3606},{"style":201},[3607],{"type":44,"value":75},{"type":38,"tag":151,"props":3609,"children":3610},{"style":164},[3611],{"type":44,"value":209},{"type":38,"tag":151,"props":3613,"children":3614},{"style":164},[3615],{"type":44,"value":549},{"type":38,"tag":151,"props":3617,"children":3619},{"class":153,"line":3618},29,[3620,3624,3628,3632],{"type":38,"tag":151,"props":3621,"children":3622},{"style":325},[3623],{"type":44,"value":2012},{"type":38,"tag":151,"props":3625,"children":3626},{"style":164},[3627],{"type":44,"value":333},{"type":38,"tag":151,"props":3629,"children":3630},{"style":170},[3631],{"type":44,"value":2021},{"type":38,"tag":151,"props":3633,"children":3634},{"style":164},[3635],{"type":44,"value":549},{"type":38,"tag":151,"props":3637,"children":3639},{"class":153,"line":3638},30,[3640,3644,3648,3652,3656],{"type":38,"tag":151,"props":3641,"children":3642},{"style":164},[3643],{"type":44,"value":539},{"type":38,"tag":151,"props":3645,"children":3646},{"style":170},[3647],{"type":44,"value":901},{"type":38,"tag":151,"props":3649,"children":3650},{"style":158},[3651],{"type":44,"value":759},{"type":38,"tag":151,"props":3653,"children":3654},{"style":762},[3655],{"type":44,"value":235},{"type":38,"tag":151,"props":3657,"children":3658},{"style":164},[3659],{"type":44,"value":214},{"type":38,"tag":151,"props":3661,"children":3663},{"class":153,"line":3662},31,[3664],{"type":38,"tag":151,"props":3665,"children":3666},{"emptyLinePlaceholder":275},[3667],{"type":44,"value":278},{"type":38,"tag":151,"props":3669,"children":3671},{"class":153,"line":3670},32,[3672,3676,3681,3685,3689,3693,3698,3702,3707],{"type":38,"tag":151,"props":3673,"children":3674},{"style":285},[3675],{"type":44,"value":288},{"type":38,"tag":151,"props":3677,"children":3678},{"style":170},[3679],{"type":44,"value":3680}," receipt ",{"type":38,"tag":151,"props":3682,"children":3683},{"style":164},[3684],{"type":44,"value":298},{"type":38,"tag":151,"props":3686,"children":3687},{"style":158},[3688],{"type":44,"value":303},{"type":38,"tag":151,"props":3690,"children":3691},{"style":306},[3692],{"type":44,"value":2948},{"type":38,"tag":151,"props":3694,"children":3695},{"style":170},[3696],{"type":44,"value":3697},"(provider",{"type":38,"tag":151,"props":3699,"children":3700},{"style":164},[3701],{"type":44,"value":178},{"type":38,"tag":151,"props":3703,"children":3704},{"style":170},[3705],{"type":44,"value":3706}," txHash)",{"type":38,"tag":151,"props":3708,"children":3709},{"style":164},[3710],{"type":44,"value":214},{"type":38,"tag":151,"props":3712,"children":3714},{"class":153,"line":3713},33,[3715],{"type":38,"tag":151,"props":3716,"children":3717},{"emptyLinePlaceholder":275},[3718],{"type":44,"value":278},{"type":38,"tag":151,"props":3720,"children":3722},{"class":153,"line":3721},34,[3723,3728,3733,3737,3742,3747,3751,3755,3759,3763],{"type":38,"tag":151,"props":3724,"children":3725},{"style":158},[3726],{"type":44,"value":3727},"if",{"type":38,"tag":151,"props":3729,"children":3730},{"style":170},[3731],{"type":44,"value":3732}," (receipt",{"type":38,"tag":151,"props":3734,"children":3735},{"style":164},[3736],{"type":44,"value":382},{"type":38,"tag":151,"props":3738,"children":3739},{"style":170},[3740],{"type":44,"value":3741},"status ",{"type":38,"tag":151,"props":3743,"children":3744},{"style":164},[3745],{"type":44,"value":3746},"===",{"type":38,"tag":151,"props":3748,"children":3749},{"style":164},[3750],{"type":44,"value":198},{"type":38,"tag":151,"props":3752,"children":3753},{"style":201},[3754],{"type":44,"value":508},{"type":38,"tag":151,"props":3756,"children":3757},{"style":164},[3758],{"type":44,"value":209},{"type":38,"tag":151,"props":3760,"children":3761},{"style":170},[3762],{"type":44,"value":901},{"type":38,"tag":151,"props":3764,"children":3765},{"style":164},[3766],{"type":44,"value":318},{"type":38,"tag":151,"props":3768,"children":3770},{"class":153,"line":3769},35,[3771,3775,3779,3783,3787,3791,3796,3800,3804,3809,3813,3817,3821,3826,3830,3835,3839],{"type":38,"tag":151,"props":3772,"children":3773},{"style":170},[3774],{"type":44,"value":1432},{"type":38,"tag":151,"props":3776,"children":3777},{"style":164},[3778],{"type":44,"value":382},{"type":38,"tag":151,"props":3780,"children":3781},{"style":306},[3782],{"type":44,"value":1441},{"type":38,"tag":151,"props":3784,"children":3785},{"style":325},[3786],{"type":44,"value":313},{"type":38,"tag":151,"props":3788,"children":3789},{"style":164},[3790],{"type":44,"value":209},{"type":38,"tag":151,"props":3792,"children":3793},{"style":201},[3794],{"type":44,"value":3795},"Transaction confirmed in block:",{"type":38,"tag":151,"props":3797,"children":3798},{"style":164},[3799],{"type":44,"value":209},{"type":38,"tag":151,"props":3801,"children":3802},{"style":164},[3803],{"type":44,"value":178},{"type":38,"tag":151,"props":3805,"children":3806},{"style":306},[3807],{"type":44,"value":3808}," parseInt",{"type":38,"tag":151,"props":3810,"children":3811},{"style":325},[3812],{"type":44,"value":313},{"type":38,"tag":151,"props":3814,"children":3815},{"style":170},[3816],{"type":44,"value":3306},{"type":38,"tag":151,"props":3818,"children":3819},{"style":164},[3820],{"type":44,"value":382},{"type":38,"tag":151,"props":3822,"children":3823},{"style":170},[3824],{"type":44,"value":3825},"blockNumber",{"type":38,"tag":151,"props":3827,"children":3828},{"style":164},[3829],{"type":44,"value":178},{"type":38,"tag":151,"props":3831,"children":3832},{"style":747},[3833],{"type":44,"value":3834}," 16",{"type":38,"tag":151,"props":3836,"children":3837},{"style":325},[3838],{"type":44,"value":916},{"type":38,"tag":151,"props":3840,"children":3841},{"style":164},[3842],{"type":44,"value":214},{"type":38,"tag":151,"props":3844,"children":3846},{"class":153,"line":3845},36,[3847,3851,3856],{"type":38,"tag":151,"props":3848,"children":3849},{"style":164},[3850],{"type":44,"value":539},{"type":38,"tag":151,"props":3852,"children":3853},{"style":158},[3854],{"type":44,"value":3855}," else",{"type":38,"tag":151,"props":3857,"children":3858},{"style":164},[3859],{"type":44,"value":419},{"type":38,"tag":151,"props":3861,"children":3863},{"class":153,"line":3862},37,[3864,3868,3872,3877,3881,3885,3890,3894,3898],{"type":38,"tag":151,"props":3865,"children":3866},{"style":170},[3867],{"type":44,"value":1432},{"type":38,"tag":151,"props":3869,"children":3870},{"style":164},[3871],{"type":44,"value":382},{"type":38,"tag":151,"props":3873,"children":3874},{"style":306},[3875],{"type":44,"value":3876},"error",{"type":38,"tag":151,"props":3878,"children":3879},{"style":325},[3880],{"type":44,"value":313},{"type":38,"tag":151,"props":3882,"children":3883},{"style":164},[3884],{"type":44,"value":209},{"type":38,"tag":151,"props":3886,"children":3887},{"style":201},[3888],{"type":44,"value":3889},"Transaction reverted",{"type":38,"tag":151,"props":3891,"children":3892},{"style":164},[3893],{"type":44,"value":209},{"type":38,"tag":151,"props":3895,"children":3896},{"style":325},[3897],{"type":44,"value":544},{"type":38,"tag":151,"props":3899,"children":3900},{"style":164},[3901],{"type":44,"value":214},{"type":38,"tag":151,"props":3903,"children":3905},{"class":153,"line":3904},38,[3906],{"type":38,"tag":151,"props":3907,"children":3908},{"style":164},[3909],{"type":44,"value":996},{"type":38,"tag":133,"props":3911,"children":3913},{"id":3912},"step-7-use-connectwith-for-single-approval-flow",[3914],{"type":44,"value":3915},"Step 7: Use connectWith for single-approval flow",{"type":38,"tag":54,"props":3917,"children":3918},{},[3919,3924],{"type":38,"tag":70,"props":3920,"children":3922},{"className":3921},[],[3923],{"type":44,"value":123},{"type":44,"value":3925}," connects the wallet and sends a transaction in one user interaction:",{"type":38,"tag":140,"props":3927,"children":3929},{"className":142,"code":3928,"language":144,"meta":145,"style":145},"const { accounts, chainId, result } = await client.connectWith({\n  method: 'eth_sendTransaction',\n  \u002F\u002F The params function receives the FIRST connected account (a single\n  \u002F\u002F Address), not the accounts array\n  params: (account: Address) => [\n    {\n      from: account,\n      to: '0xRecipientAddress' as Address,\n      value: ethToHexWei('0.01'),\n    },\n  ],\n  chainIds: ['0x1'],\n});\n\n\u002F\u002F result is the transaction hash\nconst txHash = result as Hex;\nconsole.log('Connected as:', accounts[0]);\nconsole.log('Transaction hash:', txHash);\n",[3930],{"type":38,"tag":70,"props":3931,"children":3932},{"__ignoreMap":145},[3933,3999,4026,4034,4042,4083,4091,4112,4148,4188,4195,4207,4243,4258,4265,4273,4304,4358],{"type":38,"tag":151,"props":3934,"children":3935},{"class":153,"line":154},[3936,3940,3944,3949,3953,3958,3962,3967,3971,3975,3979,3983,3987,3991,3995],{"type":38,"tag":151,"props":3937,"children":3938},{"style":285},[3939],{"type":44,"value":288},{"type":38,"tag":151,"props":3941,"children":3942},{"style":164},[3943],{"type":44,"value":167},{"type":38,"tag":151,"props":3945,"children":3946},{"style":170},[3947],{"type":44,"value":3948}," accounts",{"type":38,"tag":151,"props":3950,"children":3951},{"style":164},[3952],{"type":44,"value":178},{"type":38,"tag":151,"props":3954,"children":3955},{"style":170},[3956],{"type":44,"value":3957}," chainId",{"type":38,"tag":151,"props":3959,"children":3960},{"style":164},[3961],{"type":44,"value":178},{"type":38,"tag":151,"props":3963,"children":3964},{"style":170},[3965],{"type":44,"value":3966}," result ",{"type":38,"tag":151,"props":3968,"children":3969},{"style":164},[3970],{"type":44,"value":539},{"type":38,"tag":151,"props":3972,"children":3973},{"style":164},[3974],{"type":44,"value":617},{"type":38,"tag":151,"props":3976,"children":3977},{"style":158},[3978],{"type":44,"value":303},{"type":38,"tag":151,"props":3980,"children":3981},{"style":170},[3982],{"type":44,"value":626},{"type":38,"tag":151,"props":3984,"children":3985},{"style":164},[3986],{"type":44,"value":382},{"type":38,"tag":151,"props":3988,"children":3989},{"style":306},[3990],{"type":44,"value":123},{"type":38,"tag":151,"props":3992,"children":3993},{"style":170},[3994],{"type":44,"value":313},{"type":38,"tag":151,"props":3996,"children":3997},{"style":164},[3998],{"type":44,"value":318},{"type":38,"tag":151,"props":4000,"children":4001},{"class":153,"line":22},[4002,4006,4010,4014,4018,4022],{"type":38,"tag":151,"props":4003,"children":4004},{"style":325},[4005],{"type":44,"value":1984},{"type":38,"tag":151,"props":4007,"children":4008},{"style":164},[4009],{"type":44,"value":333},{"type":38,"tag":151,"props":4011,"children":4012},{"style":164},[4013],{"type":44,"value":198},{"type":38,"tag":151,"props":4015,"children":4016},{"style":201},[4017],{"type":44,"value":75},{"type":38,"tag":151,"props":4019,"children":4020},{"style":164},[4021],{"type":44,"value":209},{"type":38,"tag":151,"props":4023,"children":4024},{"style":164},[4025],{"type":44,"value":549},{"type":38,"tag":151,"props":4027,"children":4028},{"class":153,"line":271},[4029],{"type":38,"tag":151,"props":4030,"children":4031},{"style":1009},[4032],{"type":44,"value":4033},"  \u002F\u002F The params function receives the FIRST connected account (a single\n",{"type":38,"tag":151,"props":4035,"children":4036},{"class":153,"line":281},[4037],{"type":38,"tag":151,"props":4038,"children":4039},{"style":1009},[4040],{"type":44,"value":4041},"  \u002F\u002F Address), not the accounts array\n",{"type":38,"tag":151,"props":4043,"children":4044},{"class":153,"line":321},[4045,4049,4053,4057,4062,4066,4070,4074,4078],{"type":38,"tag":151,"props":4046,"children":4047},{"style":306},[4048],{"type":44,"value":2012},{"type":38,"tag":151,"props":4050,"children":4051},{"style":164},[4052],{"type":44,"value":333},{"type":38,"tag":151,"props":4054,"children":4055},{"style":164},[4056],{"type":44,"value":1491},{"type":38,"tag":151,"props":4058,"children":4059},{"style":814},[4060],{"type":44,"value":4061},"account",{"type":38,"tag":151,"props":4063,"children":4064},{"style":164},[4065],{"type":44,"value":333},{"type":38,"tag":151,"props":4067,"children":4068},{"style":762},[4069],{"type":44,"value":244},{"type":38,"tag":151,"props":4071,"children":4072},{"style":164},[4073],{"type":44,"value":544},{"type":38,"tag":151,"props":4075,"children":4076},{"style":285},[4077],{"type":44,"value":3402},{"type":38,"tag":151,"props":4079,"children":4080},{"style":170},[4081],{"type":44,"value":4082}," [\n",{"type":38,"tag":151,"props":4084,"children":4085},{"class":153,"line":404},[4086],{"type":38,"tag":151,"props":4087,"children":4088},{"style":164},[4089],{"type":44,"value":4090},"    {\n",{"type":38,"tag":151,"props":4092,"children":4093},{"class":153,"line":422},[4094,4099,4103,4108],{"type":38,"tag":151,"props":4095,"children":4096},{"style":325},[4097],{"type":44,"value":4098},"      from",{"type":38,"tag":151,"props":4100,"children":4101},{"style":164},[4102],{"type":44,"value":333},{"type":38,"tag":151,"props":4104,"children":4105},{"style":170},[4106],{"type":44,"value":4107}," account",{"type":38,"tag":151,"props":4109,"children":4110},{"style":164},[4111],{"type":44,"value":549},{"type":38,"tag":151,"props":4113,"children":4114},{"class":153,"line":439},[4115,4120,4124,4128,4132,4136,4140,4144],{"type":38,"tag":151,"props":4116,"children":4117},{"style":325},[4118],{"type":44,"value":4119},"      to",{"type":38,"tag":151,"props":4121,"children":4122},{"style":164},[4123],{"type":44,"value":333},{"type":38,"tag":151,"props":4125,"children":4126},{"style":164},[4127],{"type":44,"value":198},{"type":38,"tag":151,"props":4129,"children":4130},{"style":201},[4131],{"type":44,"value":1210},{"type":38,"tag":151,"props":4133,"children":4134},{"style":164},[4135],{"type":44,"value":209},{"type":38,"tag":151,"props":4137,"children":4138},{"style":158},[4139],{"type":44,"value":980},{"type":38,"tag":151,"props":4141,"children":4142},{"style":762},[4143],{"type":44,"value":244},{"type":38,"tag":151,"props":4145,"children":4146},{"style":164},[4147],{"type":44,"value":549},{"type":38,"tag":151,"props":4149,"children":4150},{"class":153,"line":552},[4151,4156,4160,4164,4168,4172,4176,4180,4184],{"type":38,"tag":151,"props":4152,"children":4153},{"style":325},[4154],{"type":44,"value":4155},"      value",{"type":38,"tag":151,"props":4157,"children":4158},{"style":164},[4159],{"type":44,"value":333},{"type":38,"tag":151,"props":4161,"children":4162},{"style":306},[4163],{"type":44,"value":807},{"type":38,"tag":151,"props":4165,"children":4166},{"style":170},[4167],{"type":44,"value":313},{"type":38,"tag":151,"props":4169,"children":4170},{"style":164},[4171],{"type":44,"value":209},{"type":38,"tag":151,"props":4173,"children":4174},{"style":201},[4175],{"type":44,"value":1033},{"type":38,"tag":151,"props":4177,"children":4178},{"style":164},[4179],{"type":44,"value":209},{"type":38,"tag":151,"props":4181,"children":4182},{"style":170},[4183],{"type":44,"value":544},{"type":38,"tag":151,"props":4185,"children":4186},{"style":164},[4187],{"type":44,"value":549},{"type":38,"tag":151,"props":4189,"children":4190},{"class":153,"line":561},[4191],{"type":38,"tag":151,"props":4192,"children":4193},{"style":164},[4194],{"type":44,"value":558},{"type":38,"tag":151,"props":4196,"children":4197},{"class":153,"line":570},[4198,4203],{"type":38,"tag":151,"props":4199,"children":4200},{"style":170},[4201],{"type":44,"value":4202},"  ]",{"type":38,"tag":151,"props":4204,"children":4205},{"style":164},[4206],{"type":44,"value":549},{"type":38,"tag":151,"props":4208,"children":4209},{"class":153,"line":586},[4210,4215,4219,4223,4227,4231,4235,4239],{"type":38,"tag":151,"props":4211,"children":4212},{"style":325},[4213],{"type":44,"value":4214},"  chainIds",{"type":38,"tag":151,"props":4216,"children":4217},{"style":164},[4218],{"type":44,"value":333},{"type":38,"tag":151,"props":4220,"children":4221},{"style":170},[4222],{"type":44,"value":499},{"type":38,"tag":151,"props":4224,"children":4225},{"style":164},[4226],{"type":44,"value":209},{"type":38,"tag":151,"props":4228,"children":4229},{"style":201},[4230],{"type":44,"value":508},{"type":38,"tag":151,"props":4232,"children":4233},{"style":164},[4234],{"type":44,"value":209},{"type":38,"tag":151,"props":4236,"children":4237},{"style":170},[4238],{"type":44,"value":1389},{"type":38,"tag":151,"props":4240,"children":4241},{"style":164},[4242],{"type":44,"value":549},{"type":38,"tag":151,"props":4244,"children":4245},{"class":153,"line":594},[4246,4250,4254],{"type":38,"tag":151,"props":4247,"children":4248},{"style":164},[4249],{"type":44,"value":539},{"type":38,"tag":151,"props":4251,"children":4252},{"style":170},[4253],{"type":44,"value":544},{"type":38,"tag":151,"props":4255,"children":4256},{"style":164},[4257],{"type":44,"value":214},{"type":38,"tag":151,"props":4259,"children":4260},{"class":153,"line":686},[4261],{"type":38,"tag":151,"props":4262,"children":4263},{"emptyLinePlaceholder":275},[4264],{"type":44,"value":278},{"type":38,"tag":151,"props":4266,"children":4267},{"class":153,"line":725},[4268],{"type":38,"tag":151,"props":4269,"children":4270},{"style":1009},[4271],{"type":44,"value":4272},"\u002F\u002F result is the transaction hash\n",{"type":38,"tag":151,"props":4274,"children":4275},{"class":153,"line":1558},[4276,4280,4284,4288,4292,4296,4300],{"type":38,"tag":151,"props":4277,"children":4278},{"style":285},[4279],{"type":44,"value":288},{"type":38,"tag":151,"props":4281,"children":4282},{"style":170},[4283],{"type":44,"value":2208},{"type":38,"tag":151,"props":4285,"children":4286},{"style":164},[4287],{"type":44,"value":298},{"type":38,"tag":151,"props":4289,"children":4290},{"style":170},[4291],{"type":44,"value":3966},{"type":38,"tag":151,"props":4293,"children":4294},{"style":158},[4295],{"type":44,"value":759},{"type":38,"tag":151,"props":4297,"children":4298},{"style":762},[4299],{"type":44,"value":235},{"type":38,"tag":151,"props":4301,"children":4302},{"style":164},[4303],{"type":44,"value":214},{"type":38,"tag":151,"props":4305,"children":4306},{"class":153,"line":1600},[4307,4312,4316,4320,4324,4328,4333,4337,4341,4345,4349,4354],{"type":38,"tag":151,"props":4308,"children":4309},{"style":170},[4310],{"type":44,"value":4311},"console",{"type":38,"tag":151,"props":4313,"children":4314},{"style":164},[4315],{"type":44,"value":382},{"type":38,"tag":151,"props":4317,"children":4318},{"style":306},[4319],{"type":44,"value":1441},{"type":38,"tag":151,"props":4321,"children":4322},{"style":170},[4323],{"type":44,"value":313},{"type":38,"tag":151,"props":4325,"children":4326},{"style":164},[4327],{"type":44,"value":209},{"type":38,"tag":151,"props":4329,"children":4330},{"style":201},[4331],{"type":44,"value":4332},"Connected as:",{"type":38,"tag":151,"props":4334,"children":4335},{"style":164},[4336],{"type":44,"value":209},{"type":38,"tag":151,"props":4338,"children":4339},{"style":164},[4340],{"type":44,"value":178},{"type":38,"tag":151,"props":4342,"children":4343},{"style":170},[4344],{"type":44,"value":744},{"type":38,"tag":151,"props":4346,"children":4347},{"style":747},[4348],{"type":44,"value":750},{"type":38,"tag":151,"props":4350,"children":4351},{"style":170},[4352],{"type":44,"value":4353},"])",{"type":38,"tag":151,"props":4355,"children":4356},{"style":164},[4357],{"type":44,"value":214},{"type":38,"tag":151,"props":4359,"children":4360},{"class":153,"line":1613},[4361,4365,4369,4373,4377,4381,4385,4389,4393,4397],{"type":38,"tag":151,"props":4362,"children":4363},{"style":170},[4364],{"type":44,"value":4311},{"type":38,"tag":151,"props":4366,"children":4367},{"style":164},[4368],{"type":44,"value":382},{"type":38,"tag":151,"props":4370,"children":4371},{"style":306},[4372],{"type":44,"value":1441},{"type":38,"tag":151,"props":4374,"children":4375},{"style":170},[4376],{"type":44,"value":313},{"type":38,"tag":151,"props":4378,"children":4379},{"style":164},[4380],{"type":44,"value":209},{"type":38,"tag":151,"props":4382,"children":4383},{"style":201},[4384],{"type":44,"value":1454},{"type":38,"tag":151,"props":4386,"children":4387},{"style":164},[4388],{"type":44,"value":209},{"type":38,"tag":151,"props":4390,"children":4391},{"style":164},[4392],{"type":44,"value":178},{"type":38,"tag":151,"props":4394,"children":4395},{"style":170},[4396],{"type":44,"value":3706},{"type":38,"tag":151,"props":4398,"children":4399},{"style":164},[4400],{"type":44,"value":214},{"type":38,"tag":54,"props":4402,"children":4403},{},[4404,4406,4412,4414,4420,4422,4428],{"type":44,"value":4405},"The ",{"type":38,"tag":70,"props":4407,"children":4409},{"className":4408},[],[4410],{"type":44,"value":4411},"params",{"type":44,"value":4413}," field accepts a function that receives the first connected account (",{"type":38,"tag":70,"props":4415,"children":4417},{"className":4416},[],[4418],{"type":44,"value":4419},"(account: Address) => unknown[]",{"type":44,"value":4421},"), letting you use the connected address as ",{"type":38,"tag":70,"props":4423,"children":4425},{"className":4424},[],[4426],{"type":44,"value":4427},"from",{"type":44,"value":4429}," without knowing it ahead of time.",{"type":38,"tag":133,"props":4431,"children":4433},{"id":4432},"step-8-handle-errors",[4434],{"type":44,"value":4435},"Step 8: Handle errors",{"type":38,"tag":140,"props":4437,"children":4439},{"className":142,"code":4438,"language":144,"meta":145,"style":145},"try {\n  const txHash = await provider.request({\n    method: 'eth_sendTransaction',\n    params: [txParams],\n  });\n} catch (err: any) {\n  switch (err.code) {\n    case 4001:\n      \u002F\u002F User rejected the transaction — offer retry\n      break;\n    case -32002:\n      \u002F\u002F Request already pending — wait for user action in MetaMask\n      break;\n    case -32000:\n      \u002F\u002F Execution error (insufficient funds, gas too low, etc.)\n      console.error('Execution error:', err.message);\n      break;\n    default:\n      console.error('Transaction failed:', err);\n  }\n}\n",[4440],{"type":38,"tag":70,"props":4441,"children":4442},{"__ignoreMap":145},[4443,4454,4493,4520,4547,4562,4597,4629,4646,4654,4666,4685,4693,4704,4724,4732,4790,4801,4813,4861,4868],{"type":38,"tag":151,"props":4444,"children":4445},{"class":153,"line":154},[4446,4450],{"type":38,"tag":151,"props":4447,"children":4448},{"style":158},[4449],{"type":44,"value":1289},{"type":38,"tag":151,"props":4451,"children":4452},{"style":164},[4453],{"type":44,"value":419},{"type":38,"tag":151,"props":4455,"children":4456},{"class":153,"line":22},[4457,4461,4465,4469,4473,4477,4481,4485,4489],{"type":38,"tag":151,"props":4458,"children":4459},{"style":285},[4460],{"type":44,"value":847},{"type":38,"tag":151,"props":4462,"children":4463},{"style":170},[4464],{"type":44,"value":1305},{"type":38,"tag":151,"props":4466,"children":4467},{"style":164},[4468],{"type":44,"value":617},{"type":38,"tag":151,"props":4470,"children":4471},{"style":158},[4472],{"type":44,"value":303},{"type":38,"tag":151,"props":4474,"children":4475},{"style":170},[4476],{"type":44,"value":1318},{"type":38,"tag":151,"props":4478,"children":4479},{"style":164},[4480],{"type":44,"value":382},{"type":38,"tag":151,"props":4482,"children":4483},{"style":306},[4484],{"type":44,"value":1327},{"type":38,"tag":151,"props":4486,"children":4487},{"style":325},[4488],{"type":44,"value":313},{"type":38,"tag":151,"props":4490,"children":4491},{"style":164},[4492],{"type":44,"value":318},{"type":38,"tag":151,"props":4494,"children":4495},{"class":153,"line":271},[4496,4500,4504,4508,4512,4516],{"type":38,"tag":151,"props":4497,"children":4498},{"style":325},[4499],{"type":44,"value":1343},{"type":38,"tag":151,"props":4501,"children":4502},{"style":164},[4503],{"type":44,"value":333},{"type":38,"tag":151,"props":4505,"children":4506},{"style":164},[4507],{"type":44,"value":198},{"type":38,"tag":151,"props":4509,"children":4510},{"style":201},[4511],{"type":44,"value":75},{"type":38,"tag":151,"props":4513,"children":4514},{"style":164},[4515],{"type":44,"value":209},{"type":38,"tag":151,"props":4517,"children":4518},{"style":164},[4519],{"type":44,"value":549},{"type":38,"tag":151,"props":4521,"children":4522},{"class":153,"line":281},[4523,4527,4531,4535,4539,4543],{"type":38,"tag":151,"props":4524,"children":4525},{"style":325},[4526],{"type":44,"value":1371},{"type":38,"tag":151,"props":4528,"children":4529},{"style":164},[4530],{"type":44,"value":333},{"type":38,"tag":151,"props":4532,"children":4533},{"style":325},[4534],{"type":44,"value":499},{"type":38,"tag":151,"props":4536,"children":4537},{"style":170},[4538],{"type":44,"value":1384},{"type":38,"tag":151,"props":4540,"children":4541},{"style":325},[4542],{"type":44,"value":1389},{"type":38,"tag":151,"props":4544,"children":4545},{"style":164},[4546],{"type":44,"value":549},{"type":38,"tag":151,"props":4548,"children":4549},{"class":153,"line":321},[4550,4554,4558],{"type":38,"tag":151,"props":4551,"children":4552},{"style":164},[4553],{"type":44,"value":1401},{"type":38,"tag":151,"props":4555,"children":4556},{"style":325},[4557],{"type":44,"value":544},{"type":38,"tag":151,"props":4559,"children":4560},{"style":164},[4561],{"type":44,"value":214},{"type":38,"tag":151,"props":4563,"children":4564},{"class":153,"line":404},[4565,4569,4573,4577,4581,4585,4589,4593],{"type":38,"tag":151,"props":4566,"children":4567},{"style":164},[4568],{"type":44,"value":539},{"type":38,"tag":151,"props":4570,"children":4571},{"style":158},[4572],{"type":44,"value":1486},{"type":38,"tag":151,"props":4574,"children":4575},{"style":164},[4576],{"type":44,"value":1491},{"type":38,"tag":151,"props":4578,"children":4579},{"style":814},[4580],{"type":44,"value":1496},{"type":38,"tag":151,"props":4582,"children":4583},{"style":164},[4584],{"type":44,"value":333},{"type":38,"tag":151,"props":4586,"children":4587},{"style":762},[4588],{"type":44,"value":1505},{"type":38,"tag":151,"props":4590,"children":4591},{"style":164},[4592],{"type":44,"value":544},{"type":38,"tag":151,"props":4594,"children":4595},{"style":164},[4596],{"type":44,"value":419},{"type":38,"tag":151,"props":4598,"children":4599},{"class":153,"line":422},[4600,4605,4609,4613,4617,4621,4625],{"type":38,"tag":151,"props":4601,"children":4602},{"style":158},[4603],{"type":44,"value":4604},"  switch",{"type":38,"tag":151,"props":4606,"children":4607},{"style":325},[4608],{"type":44,"value":1491},{"type":38,"tag":151,"props":4610,"children":4611},{"style":170},[4612],{"type":44,"value":1496},{"type":38,"tag":151,"props":4614,"children":4615},{"style":164},[4616],{"type":44,"value":382},{"type":38,"tag":151,"props":4618,"children":4619},{"style":170},[4620],{"type":44,"value":70},{"type":38,"tag":151,"props":4622,"children":4623},{"style":325},[4624],{"type":44,"value":901},{"type":38,"tag":151,"props":4626,"children":4627},{"style":164},[4628],{"type":44,"value":318},{"type":38,"tag":151,"props":4630,"children":4631},{"class":153,"line":439},[4632,4637,4641],{"type":38,"tag":151,"props":4633,"children":4634},{"style":158},[4635],{"type":44,"value":4636},"    case",{"type":38,"tag":151,"props":4638,"children":4639},{"style":747},[4640],{"type":44,"value":1547},{"type":38,"tag":151,"props":4642,"children":4643},{"style":164},[4644],{"type":44,"value":4645},":\n",{"type":38,"tag":151,"props":4647,"children":4648},{"class":153,"line":552},[4649],{"type":38,"tag":151,"props":4650,"children":4651},{"style":1009},[4652],{"type":44,"value":4653},"      \u002F\u002F User rejected the transaction — offer retry\n",{"type":38,"tag":151,"props":4655,"children":4656},{"class":153,"line":561},[4657,4662],{"type":38,"tag":151,"props":4658,"children":4659},{"style":158},[4660],{"type":44,"value":4661},"      break",{"type":38,"tag":151,"props":4663,"children":4664},{"style":164},[4665],{"type":44,"value":214},{"type":38,"tag":151,"props":4667,"children":4668},{"class":153,"line":570},[4669,4673,4677,4681],{"type":38,"tag":151,"props":4670,"children":4671},{"style":158},[4672],{"type":44,"value":4636},{"type":38,"tag":151,"props":4674,"children":4675},{"style":164},[4676],{"type":44,"value":1652},{"type":38,"tag":151,"props":4678,"children":4679},{"style":747},[4680],{"type":44,"value":1657},{"type":38,"tag":151,"props":4682,"children":4683},{"style":164},[4684],{"type":44,"value":4645},{"type":38,"tag":151,"props":4686,"children":4687},{"class":153,"line":586},[4688],{"type":38,"tag":151,"props":4689,"children":4690},{"style":1009},[4691],{"type":44,"value":4692},"      \u002F\u002F Request already pending — wait for user action in MetaMask\n",{"type":38,"tag":151,"props":4694,"children":4695},{"class":153,"line":594},[4696,4700],{"type":38,"tag":151,"props":4697,"children":4698},{"style":158},[4699],{"type":44,"value":4661},{"type":38,"tag":151,"props":4701,"children":4702},{"style":164},[4703],{"type":44,"value":214},{"type":38,"tag":151,"props":4705,"children":4706},{"class":153,"line":686},[4707,4711,4715,4720],{"type":38,"tag":151,"props":4708,"children":4709},{"style":158},[4710],{"type":44,"value":4636},{"type":38,"tag":151,"props":4712,"children":4713},{"style":164},[4714],{"type":44,"value":1652},{"type":38,"tag":151,"props":4716,"children":4717},{"style":747},[4718],{"type":44,"value":4719},"32000",{"type":38,"tag":151,"props":4721,"children":4722},{"style":164},[4723],{"type":44,"value":4645},{"type":38,"tag":151,"props":4725,"children":4726},{"class":153,"line":725},[4727],{"type":38,"tag":151,"props":4728,"children":4729},{"style":1009},[4730],{"type":44,"value":4731},"      \u002F\u002F Execution error (insufficient funds, gas too low, etc.)\n",{"type":38,"tag":151,"props":4733,"children":4734},{"class":153,"line":1558},[4735,4740,4744,4748,4752,4756,4761,4765,4769,4773,4777,4782,4786],{"type":38,"tag":151,"props":4736,"children":4737},{"style":170},[4738],{"type":44,"value":4739},"      console",{"type":38,"tag":151,"props":4741,"children":4742},{"style":164},[4743],{"type":44,"value":382},{"type":38,"tag":151,"props":4745,"children":4746},{"style":306},[4747],{"type":44,"value":3876},{"type":38,"tag":151,"props":4749,"children":4750},{"style":325},[4751],{"type":44,"value":313},{"type":38,"tag":151,"props":4753,"children":4754},{"style":164},[4755],{"type":44,"value":209},{"type":38,"tag":151,"props":4757,"children":4758},{"style":201},[4759],{"type":44,"value":4760},"Execution error:",{"type":38,"tag":151,"props":4762,"children":4763},{"style":164},[4764],{"type":44,"value":209},{"type":38,"tag":151,"props":4766,"children":4767},{"style":164},[4768],{"type":44,"value":178},{"type":38,"tag":151,"props":4770,"children":4771},{"style":170},[4772],{"type":44,"value":1740},{"type":38,"tag":151,"props":4774,"children":4775},{"style":164},[4776],{"type":44,"value":382},{"type":38,"tag":151,"props":4778,"children":4779},{"style":170},[4780],{"type":44,"value":4781},"message",{"type":38,"tag":151,"props":4783,"children":4784},{"style":325},[4785],{"type":44,"value":544},{"type":38,"tag":151,"props":4787,"children":4788},{"style":164},[4789],{"type":44,"value":214},{"type":38,"tag":151,"props":4791,"children":4792},{"class":153,"line":1600},[4793,4797],{"type":38,"tag":151,"props":4794,"children":4795},{"style":158},[4796],{"type":44,"value":4661},{"type":38,"tag":151,"props":4798,"children":4799},{"style":164},[4800],{"type":44,"value":214},{"type":38,"tag":151,"props":4802,"children":4803},{"class":153,"line":1613},[4804,4809],{"type":38,"tag":151,"props":4805,"children":4806},{"style":158},[4807],{"type":44,"value":4808},"    default",{"type":38,"tag":151,"props":4810,"children":4811},{"style":164},[4812],{"type":44,"value":4645},{"type":38,"tag":151,"props":4814,"children":4815},{"class":153,"line":1622},[4816,4820,4824,4828,4832,4836,4841,4845,4849,4853,4857],{"type":38,"tag":151,"props":4817,"children":4818},{"style":170},[4819],{"type":44,"value":4739},{"type":38,"tag":151,"props":4821,"children":4822},{"style":164},[4823],{"type":44,"value":382},{"type":38,"tag":151,"props":4825,"children":4826},{"style":306},[4827],{"type":44,"value":3876},{"type":38,"tag":151,"props":4829,"children":4830},{"style":325},[4831],{"type":44,"value":313},{"type":38,"tag":151,"props":4833,"children":4834},{"style":164},[4835],{"type":44,"value":209},{"type":38,"tag":151,"props":4837,"children":4838},{"style":201},[4839],{"type":44,"value":4840},"Transaction failed:",{"type":38,"tag":151,"props":4842,"children":4843},{"style":164},[4844],{"type":44,"value":209},{"type":38,"tag":151,"props":4846,"children":4847},{"style":164},[4848],{"type":44,"value":178},{"type":38,"tag":151,"props":4850,"children":4851},{"style":170},[4852],{"type":44,"value":1740},{"type":38,"tag":151,"props":4854,"children":4855},{"style":325},[4856],{"type":44,"value":544},{"type":38,"tag":151,"props":4858,"children":4859},{"style":164},[4860],{"type":44,"value":214},{"type":38,"tag":151,"props":4862,"children":4863},{"class":153,"line":1668},[4864],{"type":38,"tag":151,"props":4865,"children":4866},{"style":164},[4867],{"type":44,"value":1619},{"type":38,"tag":151,"props":4869,"children":4870},{"class":153,"line":1709},[4871],{"type":38,"tag":151,"props":4872,"children":4873},{"style":164},[4874],{"type":44,"value":996},{"type":38,"tag":47,"props":4876,"children":4878},{"id":4877},"important-notes",[4879],{"type":44,"value":4880},"Important Notes",{"type":38,"tag":60,"props":4882,"children":4883},{},[4884,4908,4930,4952,4985,5000,5030,5069,5079,5089],{"type":38,"tag":64,"props":4885,"children":4886},{},[4887,4898,4900,4906],{"type":38,"tag":4888,"props":4889,"children":4890},"strong",{},[4891,4896],{"type":38,"tag":70,"props":4892,"children":4894},{"className":4893},[],[4895],{"type":44,"value":785},{"type":44,"value":4897}," must be hex-encoded wei",{"type":44,"value":4899}," — ",{"type":38,"tag":70,"props":4901,"children":4903},{"className":4902},[],[4904],{"type":44,"value":4905},"'0xde0b6b3a7640000'",{"type":44,"value":4907}," is 1 ETH. Never pass decimal strings or ETH-denominated numbers directly.",{"type":38,"tag":64,"props":4909,"children":4910},{},[4911,4921,4923,4928],{"type":38,"tag":4888,"props":4912,"children":4913},{},[4914,4919],{"type":38,"tag":70,"props":4915,"children":4917},{"className":4916},[],[4918],{"type":44,"value":4427},{"type":44,"value":4920}," must match the connected account",{"type":44,"value":4922}," — MetaMask rejects transactions where ",{"type":38,"tag":70,"props":4924,"children":4926},{"className":4925},[],[4927],{"type":44,"value":4427},{"type":44,"value":4929}," doesn't match the active account.",{"type":38,"tag":64,"props":4931,"children":4932},{},[4933,4943,4945,4950],{"type":38,"tag":4888,"props":4934,"children":4935},{},[4936,4941],{"type":38,"tag":70,"props":4937,"children":4939},{"className":4938},[],[4940],{"type":44,"value":75},{"type":44,"value":4942}," returns a transaction hash, not a receipt",{"type":44,"value":4944}," — poll ",{"type":38,"tag":70,"props":4946,"children":4948},{"className":4947},[],[4949],{"type":44,"value":112},{"type":44,"value":4951}," to confirm the transaction was mined.",{"type":38,"tag":64,"props":4953,"children":4954},{},[4955,4968,4969,4975,4977,4983],{"type":38,"tag":4888,"props":4956,"children":4957},{},[4958,4960,4966],{"type":44,"value":4959},"Receipt ",{"type":38,"tag":70,"props":4961,"children":4963},{"className":4962},[],[4964],{"type":44,"value":4965},"status",{"type":44,"value":4967}," is hex",{"type":44,"value":4899},{"type":38,"tag":70,"props":4970,"children":4972},{"className":4971},[],[4973],{"type":44,"value":4974},"'0x1'",{"type":44,"value":4976}," means success, ",{"type":38,"tag":70,"props":4978,"children":4980},{"className":4979},[],[4981],{"type":44,"value":4982},"'0x0'",{"type":44,"value":4984}," means the transaction was mined but reverted.",{"type":38,"tag":64,"props":4986,"children":4987},{},[4988,4998],{"type":38,"tag":4888,"props":4989,"children":4990},{},[4991,4996],{"type":38,"tag":70,"props":4992,"children":4994},{"className":4993},[],[4995],{"type":44,"value":99},{"type":44,"value":4997}," can throw",{"type":44,"value":4999}," — if the transaction would revert, estimation fails. Wrap it in a try\u002Fcatch and show the error to the user.",{"type":38,"tag":64,"props":5001,"children":5002},{},[5003,5013,5014,5020,5022,5028],{"type":38,"tag":4888,"props":5004,"children":5005},{},[5006,5011],{"type":38,"tag":70,"props":5007,"children":5009},{"className":5008},[],[5010],{"type":44,"value":123},{"type":44,"value":5012}," params can be a function",{"type":44,"value":4899},{"type":38,"tag":70,"props":5015,"children":5017},{"className":5016},[],[5018],{"type":44,"value":5019},"params: (account) => [{ from: account, ... }]",{"type":44,"value":5021}," — it receives the first connected account (a single ",{"type":38,"tag":70,"props":5023,"children":5025},{"className":5024},[],[5026],{"type":44,"value":5027},"Address",{"type":44,"value":5029},", not an array).",{"type":38,"tag":64,"props":5031,"children":5032},{},[5033,5038,5039,5044,5046,5052,5053,5059,5061,5067],{"type":38,"tag":4888,"props":5034,"children":5035},{},[5036],{"type":44,"value":5037},"Chain IDs are always hex strings in SDK calls",{"type":44,"value":4899},{"type":38,"tag":70,"props":5040,"children":5042},{"className":5041},[],[5043],{"type":44,"value":4974},{"type":44,"value":5045},", ",{"type":38,"tag":70,"props":5047,"children":5049},{"className":5048},[],[5050],{"type":44,"value":5051},"'0x89'",{"type":44,"value":5045},{"type":38,"tag":70,"props":5054,"children":5056},{"className":5055},[],[5057],{"type":44,"value":5058},"'0xaa36a7'",{"type":44,"value":5060},". The ",{"type":38,"tag":70,"props":5062,"children":5064},{"className":5063},[],[5065],{"type":44,"value":5066},"chainId",{"type":44,"value":5068}," in transaction objects follows the same convention when present.",{"type":38,"tag":64,"props":5070,"children":5071},{},[5072,5077],{"type":38,"tag":4888,"props":5073,"children":5074},{},[5075],{"type":44,"value":5076},"Error code 4001",{"type":44,"value":5078}," means the user deliberately rejected — handle gracefully.",{"type":38,"tag":64,"props":5080,"children":5081},{},[5082,5087],{"type":38,"tag":4888,"props":5083,"children":5084},{},[5085],{"type":44,"value":5086},"Error code -32002",{"type":44,"value":5088}," means a request is pending — do not send another transaction.",{"type":38,"tag":64,"props":5090,"children":5091},{},[5092,5102,5104,5110,5112,5118],{"type":38,"tag":4888,"props":5093,"children":5094},{},[5095,5100],{"type":38,"tag":70,"props":5096,"children":5098},{"className":5097},[],[5099],{"type":44,"value":508},{"type":44,"value":5101}," is auto-included",{"type":44,"value":5103}," in every ",{"type":38,"tag":70,"props":5105,"children":5107},{"className":5106},[],[5108],{"type":44,"value":5109},"connect()",{"type":44,"value":5111}," \u002F ",{"type":38,"tag":70,"props":5113,"children":5115},{"className":5114},[],[5116],{"type":44,"value":5117},"connectWith()",{"type":44,"value":5119}," call.",{"type":38,"tag":5121,"props":5122,"children":5123},"style",{},[5124],{"type":44,"value":5125},"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":5127,"total":1613},[5128,5143,5155,5161,5175,5192,5206],{"slug":5129,"name":5129,"fn":5130,"description":5131,"org":5132,"tags":5133,"stars":22,"repoUrl":23,"updatedAt":5142},"migrate-from-sdk","migrate MetaMask SDK to connect-evm and connect-solana","Migrate from @metamask\u002Fsdk to @metamask\u002Fconnect-evm, @metamask\u002Fconnect-multichain, and @metamask\u002Fconnect-solana with step-by-step package, API, and configuration changes",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[5134,5135,5138,5141],{"name":20,"slug":21,"type":15},{"name":5136,"slug":5137,"type":15},"Migration","migration",{"name":5139,"slug":5140,"type":15},"SDK","sdk",{"name":13,"slug":14,"type":15},"2026-07-13T06:11:46.427441",{"slug":5144,"name":5144,"fn":5145,"description":5146,"org":5147,"tags":5148,"stars":22,"repoUrl":23,"updatedAt":5154},"migrate-wagmi-metamask-connector","migrate wagmi apps to MetaMask connector","Migrate a wagmi app from @metamask\u002Fsdk to the new @metamask\u002Fconnect-evm connector (wagmi PR",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[5149,5150,5151,5153],{"name":20,"slug":21,"type":15},{"name":5136,"slug":5137,"type":15},{"name":5152,"slug":5152,"type":15},"wagmi",{"name":13,"slug":14,"type":15},"2026-07-13T06:12:23.110706",{"slug":4,"name":4,"fn":5,"description":6,"org":5156,"tags":5157,"stars":22,"repoUrl":23,"updatedAt":24},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[5158,5159,5160],{"name":17,"slug":18,"type":15},{"name":20,"slug":21,"type":15},{"name":13,"slug":14,"type":15},{"slug":5162,"name":5162,"fn":5163,"description":5164,"org":5165,"tags":5166,"stars":22,"repoUrl":23,"updatedAt":5174},"send-solana-transaction","send Solana transactions via MetaMask","Build and send a Solana transaction using MetaMask Connect. Covers both the React wallet-adapter approach (sendTransaction) and the vanilla browser approach (signAndSendTransaction wallet-standard feature).",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[5167,5170,5173],{"name":5168,"slug":5169,"type":15},"Payments","payments",{"name":5171,"slug":5172,"type":15},"Solana","solana",{"name":13,"slug":14,"type":15},"2026-07-13T06:12:03.942378",{"slug":5176,"name":5176,"fn":5177,"description":5178,"org":5179,"tags":5180,"stars":22,"repoUrl":23,"updatedAt":5191},"setup-evm-browser-app","scaffold EVM browser applications with MetaMask","Scaffold a vanilla JS\u002FTS browser app with MetaMask EVM integration using createEVMClient, EIP-1193 provider event listeners, RPC methods, and chain switching with chainConfiguration fallback",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[5181,5182,5185,5188,5190],{"name":20,"slug":21,"type":15},{"name":5183,"slug":5184,"type":15},"Frontend","frontend",{"name":5186,"slug":5187,"type":15},"JavaScript","javascript",{"name":5189,"slug":144,"type":15},"TypeScript",{"name":13,"slug":14,"type":15},"2026-07-13T06:12:01.334051",{"slug":5193,"name":5193,"fn":5194,"description":5195,"org":5196,"tags":5197,"stars":22,"repoUrl":23,"updatedAt":5205},"setup-evm-react-app","scaffold React apps with MetaMask integration","Scaffold a React app with MetaMask EVM integration using createEVMClient, useState\u002FuseEffect\u002FuseRef patterns, provider.request calls, chain switching, and error handling",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[5198,5199,5200,5201,5204],{"name":17,"slug":18,"type":15},{"name":20,"slug":21,"type":15},{"name":5183,"slug":5184,"type":15},{"name":5202,"slug":5203,"type":15},"React","react",{"name":13,"slug":14,"type":15},"2026-07-13T06:11:52.764143",{"slug":5207,"name":5207,"fn":5208,"description":5209,"org":5210,"tags":5211,"stars":22,"repoUrl":23,"updatedAt":5220},"setup-evm-react-native-app","scaffold React Native apps with MetaMask","Scaffold a React Native app with MetaMask EVM integration including required polyfills, metro.config.js shims, import order constraints, mobile deeplinks, and a full component example",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[5212,5213,5216,5219],{"name":20,"slug":21,"type":15},{"name":5214,"slug":5215,"type":15},"Mobile","mobile",{"name":5217,"slug":5218,"type":15},"React Native","react-native",{"name":13,"slug":14,"type":15},"2026-07-13T06:12:11.764689",{"items":5222,"total":3541},[5223,5241,5253,5265,5274,5284,5297,5313,5320,5327,5333,5339],{"slug":5224,"name":5224,"fn":5225,"description":5226,"org":5227,"tags":5228,"stars":5238,"repoUrl":5239,"updatedAt":5240},"smart-accounts-kit","build dApps with MetaMask Smart Accounts","Build dApps with MetaMask Smart Accounts Kit — ERC-4337 smart accounts, delegations, and Advanced Permissions (ERC-7715)",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[5229,5230,5233,5234,5237],{"name":17,"slug":18,"type":15},{"name":5231,"slug":5232,"type":15},"Auth","auth",{"name":20,"slug":21,"type":15},{"name":5235,"slug":5236,"type":15},"Permissions","permissions",{"name":13,"slug":14,"type":15},54,"https:\u002F\u002Fgithub.com\u002FMetaMask\u002Fsmart-accounts-kit","2026-07-13T06:11:32.8327",{"slug":5242,"name":5242,"fn":5243,"description":5244,"org":5245,"tags":5246,"stars":5238,"repoUrl":5239,"updatedAt":5252},"x402-payments","build x402 payment flows","Build x402 payment flows using MetaMask Smart Accounts Kit, machine to machine payments over HTTP with ERC-7710 delegations and ERC-7715 Advanced Permissions",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[5247,5248,5249,5250],{"name":17,"slug":18,"type":15},{"name":5168,"slug":5169,"type":15},{"name":13,"slug":14,"type":15},{"name":5251,"slug":5251,"type":15},"x402","2026-07-13T06:11:30.877136",{"slug":5254,"name":5254,"fn":5255,"description":5256,"org":5257,"tags":5258,"stars":552,"repoUrl":5263,"updatedAt":5264},"discovery","discover and use services","Use the discovery tools to find and use services through a service matcher. Do not rely on prior knowledge of services, providers, or APIs.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[5259,5260],{"name":17,"slug":18,"type":15},{"name":5261,"slug":5262,"type":15},"Search","search","https:\u002F\u002Fgithub.com\u002FMetaMask\u002Focap-kernel","2026-07-13T06:12:37.024095",{"slug":8,"name":8,"fn":5266,"description":5267,"org":5268,"tags":5269,"stars":552,"repoUrl":5263,"updatedAt":5273},"interact with MetaMask wallet capabilities","Use the MetaMask tools to request and interact with wallet capabilities from the MetaMask capability vendor.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[5270,5271,5272],{"name":17,"slug":18,"type":15},{"name":20,"slug":21,"type":15},{"name":13,"slug":14,"type":15},"2026-07-13T06:12:33.955806",{"slug":5275,"name":5275,"fn":5276,"description":5277,"org":5278,"tags":5279,"stars":552,"repoUrl":5263,"updatedAt":5283},"wallet","manage wallet balances and transactions","Use the wallet tools for all balance, send, and sign operations. Supports both ETH and ERC-20 tokens. The away wallet operates autonomously after setup — the home device does not need to be online.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[5280,5281,5282],{"name":20,"slug":21,"type":15},{"name":5168,"slug":5169,"type":15},{"name":13,"slug":14,"type":15},"2026-07-13T06:12:35.380244",{"slug":5285,"name":5285,"fn":5286,"description":5287,"org":5288,"tags":5289,"stars":422,"repoUrl":5295,"updatedAt":5296},"metamask-connect","integrate MetaMask into dApps","Build dApps that integrate MetaMask via the MetaMask Connect SDK — EVM (@metamask\u002Fconnect-evm), Solana (@metamask\u002Fconnect-solana), and multichain (@metamask\u002Fconnect-multichain), plus the wagmi metaMask() connector. Covers client setup across browser\u002FReact\u002FReact Native, connecting, signing messages, sending transactions, multichain invokeMethod across CAIP-2 scopes, migrating from @metamask\u002Fsdk, and troubleshooting connection\u002Fpolyfill issues.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[5290,5291,5292,5293,5294],{"name":17,"slug":18,"type":15},{"name":20,"slug":21,"type":15},{"name":5171,"slug":5172,"type":15},{"name":5152,"slug":5152,"type":15},{"name":13,"slug":14,"type":15},"https:\u002F\u002Fgithub.com\u002FMetaMask\u002Fconnect-monorepo","2026-07-13T06:11:34.445665",{"slug":5298,"name":5298,"fn":5299,"description":5300,"org":5301,"tags":5302,"stars":321,"repoUrl":5311,"updatedAt":5312},"metamask-agent-wallet","manage blockchain wallets and transactions","Use when the user asks anything about blockchain wallets, transactions, signing, token transfers, supported chains, wallet balances, perpetual futures trading, prediction markets, token swaps, cross-chain bridges, market data, token discovery, decoding EVM calldata, DeFi earn\u002Fyield vaults, or authentication via the MetaMask Agentic CLI; also when an HTTP request returns 402 Payment Required (x402) or the agent needs to pay for a paywalled API, endpoint, file, or resource over HTTP. Single entry point for all mm CLI operations.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[5303,5306,5309,5310],{"name":5304,"slug":5305,"type":15},"Blockchain","blockchain",{"name":5307,"slug":5308,"type":15},"DeFi","defi",{"name":20,"slug":21,"type":15},{"name":13,"slug":14,"type":15},"https:\u002F\u002Fgithub.com\u002FMetaMask\u002Fagent-skills","2026-08-01T05:45:07.976522",{"slug":5129,"name":5129,"fn":5130,"description":5131,"org":5314,"tags":5315,"stars":22,"repoUrl":23,"updatedAt":5142},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[5316,5317,5318,5319],{"name":20,"slug":21,"type":15},{"name":5136,"slug":5137,"type":15},{"name":5139,"slug":5140,"type":15},{"name":13,"slug":14,"type":15},{"slug":5144,"name":5144,"fn":5145,"description":5146,"org":5321,"tags":5322,"stars":22,"repoUrl":23,"updatedAt":5154},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[5323,5324,5325,5326],{"name":20,"slug":21,"type":15},{"name":5136,"slug":5137,"type":15},{"name":5152,"slug":5152,"type":15},{"name":13,"slug":14,"type":15},{"slug":4,"name":4,"fn":5,"description":6,"org":5328,"tags":5329,"stars":22,"repoUrl":23,"updatedAt":24},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[5330,5331,5332],{"name":17,"slug":18,"type":15},{"name":20,"slug":21,"type":15},{"name":13,"slug":14,"type":15},{"slug":5162,"name":5162,"fn":5163,"description":5164,"org":5334,"tags":5335,"stars":22,"repoUrl":23,"updatedAt":5174},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[5336,5337,5338],{"name":5168,"slug":5169,"type":15},{"name":5171,"slug":5172,"type":15},{"name":13,"slug":14,"type":15},{"slug":5176,"name":5176,"fn":5177,"description":5178,"org":5340,"tags":5341,"stars":22,"repoUrl":23,"updatedAt":5191},{"slug":8,"name":9,"logoUrl":10,"githubOrg":9},[5342,5343,5344,5345,5346],{"name":20,"slug":21,"type":15},{"name":5183,"slug":5184,"type":15},{"name":5186,"slug":5187,"type":15},{"name":5189,"slug":144,"type":15},{"name":13,"slug":14,"type":15}]