# EVM Native Token Wrap Calldata Builder (WETH-style Deposit)

> EVM Native Token Wrap Calldata Builder (WETH-style Deposit) is a paid API for AI agents from evm-canon-base.onrender.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

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.

## Facts

- Endpoint: POST https://evm-canon-base.onrender.com/encode/wrap
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/evm-native-token-wrap-calldata-builder-weth-style-deposit-f2700ef3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tVmxfpAisuDDtBQGrVSqs

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability evm-native-token-wrap-calldata-builder-weth-style-deposit-f2700ef3 -d '<json body>'
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Build native-token wrapping calldata (WETH-style deposit) with the value to attach

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/evm-native-token-wrap-calldata-builder-weth-style-deposit-f2700ef3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from evm-canon-base.onrender.com](https://www.zero.xyz/host/evm-canon-base.onrender.com/llms.txt)
