{"uid":"cap_tVmxfpAisuDDtBQGrVSqs","slug":"evm-native-token-wrap-calldata-builder-weth-style-deposit-f2700ef3","name":"EVM Native Token Wrap Calldata Builder (WETH-style Deposit)","description":"Build native-token wrapping calldata (WETH-style deposit) with the value to attach","url":"https://evm-canon-base.onrender.com/encode/wrap","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_zLQv2_vtIRavh2b_M5Pwt","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":"Generates ready-to-sign EVM calldata for wrapping native tokens (e.g. ETH→WETH) using a WETH-style deposit pattern, including the value to attach to the transaction.","exampleAgentPrompt":"Build me the calldata to wrap 0.5 ETH into WETH on Base using the standard WETH contract at 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 — I need the full transaction payload including the value to attach.","exampleUseCases":[{"title":"Pre-swap ETH wrapping for DeFi","prompt":"I need to wrap 1.2 ETH into WETH before executing a Uniswap swap on Base — can you build me the deposit calldata for the WETH contract at 0x4200000000000000000000000000000000000006 with the correct value to attach?"},{"title":"Automated treasury rebalancing","prompt":"Our treasury bot needs to wrap 10 ETH into WETH on Base as part of a rebalancing workflow — generate the WETH deposit calldata and the ETH value that needs to go with the transaction."},{"title":"Safe transaction batching in a multisig","prompt":"I'm batching transactions in a Gnosis Safe and need the calldata for wrapping 0.25 ETH into WETH on Base using the canonical WETH contract — give me the encoded deposit call and the value field so I can add it to the batch."}],"resultDescription":"Returns encoded calldata for the WETH deposit() function (typically 0xd0e30db0 with no arguments) along with the native token value (in wei) that must be attached to the transaction when submitted on-chain. The response is ready to be used directly in a transaction object without further encoding.","failureModes":["Invalid or missing amount results in encoding error","Unsupported chain or contract address may produce incorrect calldata","Amount of zero rejected as a no-op","Malformed address input causes validation failure","Extremely large amounts may trigger overflow or rejection"],"whenToPreferThis":"Use this endpoint when you need deterministic, pre-verified calldata for wrapping native EVM tokens (ETH→WETH style) without spinning up a full ethers.js/viem stack or trusting a wallet library to handle encoding. Ideal for agent workflows, multisig batching, or transaction builders that need the raw calldata and value field separately. Prefer this over general ABI encoders when you want the wrapping operation specifically validated and flagged before signing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:36:04.364Z","isFirstParty":false}