{"uid":"cap_SdZWhA6Wnsh5wUv8gisj8","slug":"evm-weth-unwrap-calldata-builder-3a921ba6","name":"EVM WETH Unwrap Calldata Builder","description":"Build unwrapping calldata (WETH-style withdraw)","url":"https://evm-canon-base.onrender.com/encode/unwrap","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_BnYPztsjGurT0_VbVtaKE","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":"Encodes calldata for a WETH-style withdraw (unwrap) operation to convert wrapped native token back to native ETH on EVM chains","exampleAgentPrompt":"Build the calldata to unwrap 1.5 WETH back to native ETH — I need the ABI-encoded withdraw transaction data I can send directly to the WETH contract on Base.","exampleUseCases":[{"title":"DeFi bot unwrapping WETH after swap","prompt":"I just swapped some tokens and ended up with 2.0 WETH, but I need native ETH to pay gas — can you build me the calldata to unwrap all 2.0 WETH back to ETH on Base?"},{"title":"Smart contract wallet withdrawal flow","prompt":"Generate the ABI-encoded withdraw calldata for 0.5 WETH so my multisig can queue a transaction to convert it back to native ETH on Base."},{"title":"Automated treasury rebalancing pipeline","prompt":"As part of my treasury rebalance, I need to unwrap 10 WETH to native ETH — give me the encoded calldata for the WETH withdraw call so I can batch it with my other transactions."}],"resultDescription":"Returns ABI-encoded hex calldata for a WETH-style withdraw(uint256) function call, ready to be included as the data field in an EVM transaction sent to the WETH contract address.","failureModes":["Invalid or missing amount parameter returns 400 bad request","Amount exceeds uint256 max value causes encoding error","Malformed request body returns validation error","Service temporarily unavailable on Render cold start returns 503","Payment not attached or insufficient USDC returns 402"],"whenToPreferThis":"Use this endpoint when you need to programmatically generate WETH unwrap calldata without running a local ABI encoder or ethers.js/viem. Ideal for serverless pipelines, cross-language environments, or agents that need to construct EVM transaction data on demand without a full Web3 library dependency.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:46:59.239Z","isFirstParty":false}