{"uid":"cap_yms-qMme-VTn7H_W4is2w","slug":"evm-collection-wide-nft-approval-calldata-encoder-high-risk-2f1da3e5","name":"EVM Collection-Wide NFT Approval Calldata Encoder (High Risk)","description":"Build collection-wide NFT approval calldata, flagged as high risk","url":"https://evm-canon-base.onrender.com/encode/approve-all","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["args"],"properties":{"args":{"type":"object","description":"arguments keyed by parameter name"},"chain":{"description":"chain name, alias or numeric chainId"},"token":{"type":"string","description":"symbol or contract address"},"value":{"type":"string","description":"native value in wei"},"function":{"type":"string","description":"name or full signature (generic route only)"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_dgtdzImFeBx6K_C5oJadM","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Builds EVM calldata for setApprovalForAll NFT operations, flagging the transaction as high risk before any signing occurs","exampleAgentPrompt":"Build the setApprovalForAll calldata for my NFT contract at 0xABC...123 to grant operator 0xDEF...456 full collection approval — and flag it with the high-risk warning before I sign anything.","exampleUseCases":[{"title":"NFT marketplace listing approval","prompt":"I want to list my entire CryptoPunks collection on a marketplace — can you encode the setApprovalForAll calldata to approve the marketplace contract 0xDEF...456 as operator for my NFT contract at 0xABC...123, and make sure the high-risk flag is included so I know what I'm signing?"},{"title":"DeFi protocol NFT collateral setup","prompt":"I need to approve a lending protocol at 0x789...ABC to manage all NFTs in my ERC-721 contract 0x111...222 — please build the collection-wide approval calldata and flag it as high risk before I submit it."},{"title":"Revoking operator access across a collection","prompt":"Can you encode the calldata to revoke setApprovalForAll for operator 0xBAD...999 on my NFT collection contract 0x333...444, setting approval to false, and include the high-risk warning in the output?"}],"resultDescription":"Returns encoded EVM calldata for a setApprovalForAll function call along with a high-risk flag indicating that this operation grants an operator unrestricted access to an entire NFT collection. The agent receives the hex-encoded transaction data ready to be signed and broadcast, plus risk metadata warning of the broad permissions being granted.","failureModes":["Invalid contract address format returns a 400 error","Invalid operator address returns a validation error","Missing required fields (contract, operator, approved boolean) returns a 400 bad request","Malformed request body returns a parsing error","Service unavailable on Render cold start returns a 503 or timeout"],"whenToPreferThis":"Use this endpoint when you need to encode setApprovalForAll calldata for NFT contracts (ERC-721 or ERC-1155) and want a built-in high-risk warning surfaced before the transaction is signed. Prefer this over generic calldata encoders when working specifically with collection-wide NFT approvals and you want the risk flag to be part of the encoded output metadata rather than a separate audit step.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:39:53.719Z","isFirstParty":false}