[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CR2NTVBCGSJNP92GCWV6TF":3,"skill-same:01M7CR2NTVBCGSJNP92GCWV6TF":44},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M7CR2NTVBCGSJNP92GCWV6TF","eip-5792",null,"Add EIP-5792 batched transaction support to a Scaffold-ETH 2 project. Use when the user wants to: batch multiple contract calls, use wallet_sendCalls, add EIP-5792 wallet integration, batch onchain transactions, or use wagmi's experimental batch hooks.","bro-rad\u002Fcoti-garbled-data-quickstart","bro-rad","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F325375301?v=4","01M7CR1FXF6N50Z1F90A5PAKE3","rad bro bot","01M7CR1FY2PSK9YKV9XG22M21X",0,"MIT","https:\u002F\u002Fgithub.com\u002Fbro-rad\u002Fcoti-garbled-data-quickstart\u002Fblob\u002Fcoti-garbled-data-quickstart\u002F.agents\u002Fskills\u002Feip-5792\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: eip-5792\ndescription: \"Add EIP-5792 batched transaction support to a Scaffold-ETH 2 project. Use when the user wants to: batch multiple contract calls, use wallet_sendCalls, add EIP-5792 wallet integration, batch onchain transactions, or use wagmi's experimental batch hooks.\"\n---\n\n# EIP-5792 Integration for Scaffold-ETH 2\n\n## Prerequisites\n\nCheck if `.\u002Fpackages\u002Fnextjs\u002Fscaffold.config.ts` exists directly in the current working directory (do not search subdirectories). If it doesn't exist, this is not a Scaffold-ETH 2 project. Follow the instructions at https:\u002F\u002Fdocs.scaffoldeth.io\u002FSKILL.md to scaffold it first. If it exists, continue directly with building.\n\n## Overview\n\n[EIP-5792](https:\u002F\u002Feips.ethereum.org\u002FEIPS\u002Feip-5792) (Wallet Call API) lets apps send batched onchain write calls to wallets via `wallet_sendCalls`. No new dependencies needed — SE-2 already includes wagmi, which has the EIP-5792 hooks at `wagmi\u002Fexperimental`:\n\n- [`useWriteContracts`](https:\u002F\u002Fwagmi.sh\u002Freact\u002Fapi\u002Fhooks\u002FuseWriteContracts) — batch multiple contract calls into one wallet request\n- [`useCapabilities`](https:\u002F\u002Fwagmi.sh\u002Freact\u002Fapi\u002Fhooks\u002FuseCapabilities) — detect what the connected wallet supports (batching, paymasters, etc.)\n- [`useShowCallsStatus`](https:\u002F\u002Fwagmi.sh\u002Freact\u002Fapi\u002Fhooks\u002FuseShowCallsStatus) — ask the wallet to display status of a batch\n\n> **Import paths are moving.** `useCapabilities` and `useShowCallsStatus` have been promoted to `wagmi` (stable). `useWriteContracts` is still in `wagmi\u002Fexperimental` as of early 2026. Always check the [wagmi docs](https:\u002F\u002Fwagmi.sh\u002F) for the current import paths.\n\n## Smart Contract\n\nEIP-5792 works with any contract — the point is batching multiple calls into a single wallet interaction. A simple contract with two or more state-changing functions works well for demonstrating batching:\n\n```solidity\ncontract BatchExample {\n    string public greeting = \"Hello!\";\n    uint256 public counter = 0;\n\n    function setGreeting(string memory _newGreeting) public payable {\n        greeting = _newGreeting;\n    }\n\n    function incrementCounter() public {\n        counter += 1;\n    }\n\n    receive() external payable {}\n}\n```\n\nDeploy using the project's existing deployment pattern (Hardhat `deploy\u002F` or Foundry `script\u002F`).\n\n## EIP-5792 Integration Pattern\n\n### Detecting wallet support\n\nNot all wallets support EIP-5792. Use `useCapabilities` to check before offering batch UI:\n\n```tsx\nimport { useCapabilities } from \"wagmi\u002Fexperimental\";\nimport { useAccount } from \"wagmi\";\n\nconst { address, chainId } = useAccount();\nconst { isSuccess: isEIP5792Wallet, data: walletCapabilities } = useCapabilities({ account: address });\n\n\u002F\u002F Check specific capabilities per chain\nconst isPaymasterSupported = walletCapabilities?.[chainId]?.paymasterService?.supported;\n```\n\n`isSuccess` being `true` means the wallet responded to `wallet_getCapabilities` — i.e., it's EIP-5792 compliant.\n\n### Batching contract calls\n\nUse `useWriteContracts` to send multiple calls in one wallet interaction. Get the contract ABI and address from SE-2's `useDeployedContractInfo` hook:\n\n```tsx\nimport { useWriteContracts } from \"wagmi\u002Fexperimental\";\nimport { useDeployedContractInfo } from \"~~\u002Fhooks\u002Fscaffold-eth\";\n\nconst { data: deployedContract } = useDeployedContractInfo(\"YourContract\");\nconst { writeContractsAsync, isPending } = useWriteContracts();\n\n\u002F\u002F Batch two calls\nconst result = await writeContractsAsync({\n  contracts: [\n    {\n      address: deployedContract.address,\n      abi: deployedContract.abi,\n      functionName: \"setGreeting\",\n      args: [\"Hello from batch!\"],\n    },\n    {\n      address: deployedContract.address,\n      abi: deployedContract.abi,\n      functionName: \"incrementCounter\",\n    },\n  ],\n  \u002F\u002F Optional: add paymaster capability if supported by the wallet\n  capabilities: isPaymasterSupported ? {\n    paymasterService: { url: paymasterURL }\n  } : undefined,\n});\n```\n\n### Showing batch status\n\n```tsx\nimport { useShowCallsStatus } from \"wagmi\u002Fexperimental\";\n\nconst { showCallsStatusAsync } = useShowCallsStatus();\nawait showCallsStatusAsync({ id: batchId });\n```\n\n## Wallet Compatibility & Graceful Fallback\n\n**Graceful degradation is critical.** The UI must work for both EIP-5792 and non-EIP-5792 wallets:\n- Use SE-2's `useScaffoldWriteContract` for individual calls as fallback\n- Only show\u002Fenable the batch button when `useCapabilities` succeeds (`isEIP5792Wallet`)\n- Consider a \"switch to Coinbase Wallet\" prompt for unsupported wallets\n\n**Capabilities vary by chain.** Always check `walletCapabilities?.[chainId]` for the specific chain, not just whether the wallet is EIP-5792 compliant in general.\n\n**SE-2's burner wallet supports EIP-5792** with sequential (non-atomic) calls. Advanced capabilities like paymasters require a live testnet with a compliant wallet (Coinbase Wallet has the most complete implementation).\n\n**Paymaster integration (ERC-7677) is optional.** If you want gas sponsorship, you need a paymaster service URL passed as a `capability` in the `writeContracts` call. The paymaster service is external to SE-2.\n\n## How to Test\n\n1. Deploy the contract: `yarn deploy`\n2. Start the frontend: `yarn start`\n3. For basic batching: use any wallet on localhost (SE-2's burner wallet works)\n4. For advanced capabilities (paymasters, atomic execution): deploy to a live testnet and connect with an [EIP-5792 compliant wallet](https:\u002F\u002Fwww.eip5792.xyz\u002Fecosystem\u002Fwallets)\n","# EIP-5792 Integration for Scaffold-ETH 2\n\n## Prerequisites\n\nCheck if `.\u002Fpackages\u002Fnextjs\u002Fscaffold.config.ts` exists directly in the current working directory (do not search subdirectories). If it doesn't exist, this is not a Scaffold-ETH 2 project. Follow the instructions at https:\u002F\u002Fdocs.scaffoldeth.io\u002FSKILL.md to scaffold it first. If it exists, continue directly with building.\n\n## Overview\n\n[EIP-5792](https:\u002F\u002Feips.ethereum.org\u002FEIPS\u002Feip-5792) (Wallet Call API) lets apps send batched onchain write calls to wallets via `wallet_sendCalls`. No new dependencies needed — SE-2 already includes wagmi, which has the EIP-5792 hooks at `wagmi\u002Fexperimental`:\n\n- [`useWriteContracts`](https:\u002F\u002Fwagmi.sh\u002Freact\u002Fapi\u002Fhooks\u002FuseWriteContracts) — batch multiple contract calls into one wallet request\n- [`useCapabilities`](https:\u002F\u002Fwagmi.sh\u002Freact\u002Fapi\u002Fhooks\u002FuseCapabilities) — detect what the connected wallet supports (batching, paymasters, etc.)\n- [`useShowCallsStatus`](https:\u002F\u002Fwagmi.sh\u002Freact\u002Fapi\u002Fhooks\u002FuseShowCallsStatus) — ask the wallet to display status of a batch\n\n> **Import paths are moving.** `useCapabilities` and `useShowCallsStatus` have been promoted to `wagmi` (stable). `useWriteContracts` is still in `wagmi\u002Fexperimental` as of early 2026. Always check the [wagmi docs](https:\u002F\u002Fwagmi.sh\u002F) for the current import paths.\n\n## Smart Contract\n\nEIP-5792 works with any contract — the point is batching multiple calls into a single wallet interaction. A simple contract with two or more state-changing functions works well for demonstrating batching:\n\n```solidity\ncontract BatchExample {\n    string public greeting = \"Hello!\";\n    uint256 public counter = 0;\n\n    function setGreeting(string memory _newGreeting) public payable {\n        greeting = _newGreeting;\n    }\n\n    function incrementCounter() public {\n        counter += 1;\n    }\n\n    receive() external payable {}\n}\n```\n\nDeploy using the project's existing deployment pattern (Hardhat `deploy\u002F` or Foundry `script\u002F`).\n\n## EIP-5792 Integration Pattern\n\n### Detecting wallet support\n\nNot all wallets support EIP-5792. Use `useCapabilities` to check before offering batch UI:\n\n```tsx\nimport { useCapabilities } from \"wagmi\u002Fexperimental\";\nimport { useAccount } from \"wagmi\";\n\nconst { address, chainId } = useAccount();\nconst { isSuccess: isEIP5792Wallet, data: walletCapabilities } = useCapabilities({ account: address });\n\n\u002F\u002F Check specific capabilities per chain\nconst isPaymasterSupported = walletCapabilities?.[chainId]?.paymasterService?.supported;\n```\n\n`isSuccess` being `true` means the wallet responded to `wallet_getCapabilities` — i.e., it's EIP-5792 compliant.\n\n### Batching contract calls\n\nUse `useWriteContracts` to send multiple calls in one wallet interaction. Get the contract ABI and address from SE-2's `useDeployedContractInfo` hook:\n\n```tsx\nimport { useWriteContracts } from \"wagmi\u002Fexperimental\";\nimport { useDeployedContractInfo } from \"~~\u002Fhooks\u002Fscaffold-eth\";\n\nconst { data: deployedContract } = useDeployedContractInfo(\"YourContract\");\nconst { writeContractsAsync, isPending } = useWriteContracts();\n\n\u002F\u002F Batch two calls\nconst result = await writeContractsAsync({\n  contracts: [\n    {\n      address: deployedContract.address,\n      abi: deployedContract.abi,\n      functionName: \"setGreeting\",\n      args: [\"Hello from batch!\"],\n    },\n    {\n      address: deployedContract.address,\n      abi: deployedContract.abi,\n      functionName: \"incrementCounter\",\n    },\n  ],\n  \u002F\u002F Optional: add paymaster capability if supported by the wallet\n  capabilities: isPaymasterSupported ? {\n    paymasterService: { url: paymasterURL }\n  } : undefined,\n});\n```\n\n### Showing batch status\n\n```tsx\nimport { useShowCallsStatus } from \"wagmi\u002Fexperimental\";\n\nconst { showCallsStatusAsync } = useShowCallsStatus();\nawait showCallsStatusAsync({ id: batchId });\n```\n\n## Wallet Compatibility & Graceful Fallback\n\n**Graceful degradation is critical.** The UI must work for both EIP-5792 and non-EIP-5792 wallets:\n- Use SE-2's `useScaffoldWriteContract` for individual calls as fallback\n- Only show\u002Fenable the batch button when `useCapabilities` succeeds (`isEIP5792Wallet`)\n- Consider a \"switch to Coinbase Wallet\" prompt for unsupported wallets\n\n**Capabilities vary by chain.** Always check `walletCapabilities?.[chainId]` for the specific chain, not just whether the wallet is EIP-5792 compliant in general.\n\n**SE-2's burner wallet supports EIP-5792** with sequential (non-atomic) calls. Advanced capabilities like paymasters require a live testnet with a compliant wallet (Coinbase Wallet has the most complete implementation).\n\n**Paymaster integration (ERC-7677) is optional.** If you want gas sponsorship, you need a paymaster service URL passed as a `capability` in the `writeContracts` call. The paymaster service is external to SE-2.\n\n## How to Test\n\n1. Deploy the contract: `yarn deploy`\n2. Start the frontend: `yarn start`\n3. For basic batching: use any wallet on localhost (SE-2's burner wallet works)\n4. For advanced capabilities (paymasters, atomic execution): deploy to a live testnet and connect with an [EIP-5792 compliant wallet](https:\u002F\u002Fwww.eip5792.xyz\u002Fecosystem\u002Fwallets)\n",{"name":5,"description":7},"coti-garbled-data-quickstart","a42ff7e0f45ad7809fc2db6bd9d2ef253c1688ed",".agents\u002Fskills\u002Feip-5792","https:\u002F\u002Fgithub.com\u002Fbro-rad\u002Fcoti-garbled-data-quickstart","https:\u002F\u002Fgithub.com\u002Fbro-rad","2026-10-01 08:51:30",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add bro-rad\u002Fcoti-garbled-data-quickstart --skill eip-5792",{"tool":36,"command":37},"bunx","bunx skills add bro-rad\u002Fcoti-garbled-data-quickstart --skill eip-5792",{"tool":39,"command":40},"pnpm","pnpm dlx skills add bro-rad\u002Fcoti-garbled-data-quickstart --skill eip-5792","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fbro-rad\u002Fcoti-garbled-data-quickstart\u002Fblob\u002Fcoti-garbled-data-quickstart\u002F.agents\u002Fskills\u002Feip-5792\u002FSKILL.md",true,[],[45,52,59,66,73,80],{"skillNo":46,"name":47,"nameZh":6,"description":48,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":19},"01M7CR605WRFVMSS3PW3CWJBAV","x402","Add x402 payment-gated routes to a Scaffold-ETH 2 project. Use when the user wants to: monetize an API with micropayments, add HTTP 402 payment required to routes, gate content behind crypto payments, implement pay-per-call APIs, or integrate the x402 protocol.","https:\u002F\u002Fgithub.com\u002Fbro-rad\u002Fcoti-garbled-data-quickstart\u002Fblob\u002Fcoti-garbled-data-quickstart\u002F.agents\u002Fskills\u002Fx402\u002FSKILL.md",[],[],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M7CR5WPS4WBP6MRF67SWGK13","why-ethereum","Why build on Ethereum specifically. The AI agent angle — ERC-8004, x402, composability, permissionless deployment. Use when a user asks \"should I build on Ethereum?\", \"why blockchain?\", or when an agent needs to recommend a chain for a project.","https:\u002F\u002Fgithub.com\u002Fbro-rad\u002Fcoti-garbled-data-quickstart\u002Fblob\u002Fcoti-garbled-data-quickstart\u002F.agents\u002Fskills\u002Fwhy\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M7CR5RNY740CT0P9DT9HFB2T","wallets","How to create, manage, and use Ethereum wallets. Covers EOAs, smart contract wallets, multisig (Safe), and account abstraction. Use this skill whenever you are sending transactions, signing messages, or managing funds. Includes guardrails for safe key handling.","https:\u002F\u002Fgithub.com\u002Fbro-rad\u002Fcoti-garbled-data-quickstart\u002Fblob\u002Fcoti-garbled-data-quickstart\u002F.agents\u002Fskills\u002Fwallets\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M7CR5MGAM27HZHA688XRD6PV","tools","Current Ethereum development tools, frameworks, libraries, RPCs, and block explorers. What actually works today for building on Ethereum. Includes tool discovery for AI agents — MCPs, abi.ninja, Foundry, Scaffold-ETH 2, Hardhat, and more. Use when setting up a dev environment, choosing tools, or when an agent needs to discover what's available.","https:\u002F\u002Fgithub.com\u002Fbro-rad\u002Fcoti-garbled-data-quickstart\u002Fblob\u002Fcoti-garbled-data-quickstart\u002F.agents\u002Fskills\u002Ftools\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M7CR5HWD8ZR834W3XDEEKTXY","testing","Smart contract testing with Foundry — unit tests, fuzz testing, fork testing, invariant testing. Use when writing tests for a smart contract.","https:\u002F\u002Fgithub.com\u002Fbro-rad\u002Fcoti-garbled-data-quickstart\u002Fblob\u002Fcoti-garbled-data-quickstart\u002F.agents\u002Fskills\u002Ftesting\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M7CR5DW03X87CNGQ1BX7QX0Q","subgraph","Integrate The Graph subgraph into a Scaffold-ETH 2 project for indexing blockchain events. Use when the user wants to: index contract events with The Graph, add a subgraph, query onchain data with GraphQL, set up a local graph node, or deploy a subgraph to Subgraph Studio.","https:\u002F\u002Fgithub.com\u002Fbro-rad\u002Fcoti-garbled-data-quickstart\u002Fblob\u002Fcoti-garbled-data-quickstart\u002F.agents\u002Fskills\u002Fsubgraph\u002FSKILL.md",[],[]]