Wrap ETH logo

Catalog action EVM Onchain wallet Gas swap

Wrap native ETH (or MATIC, BNB, AVAX) to WETH (or WMATIC, WBNB, WAVAX). Deposits native tokens to receive equal amount of wrapped ERC20 token. Ideal for: Railgun shielding prep, DEX operations, protocol compatibility.

This action can require a wallet connector, gas, token movement, or an external side effect. Test with simulation or a controlled amount before using it in a live workflow.

At a Glance

FieldValue
Action IDwrap-eth
CategoryEVM Onchain
Connectorwallet
Requires gasYes
Funds movementswap
Tagsblockchain, evm, wrap, weth, wmatic, defi, railgun

Payload Schema

FieldTypeRequiredDescription
amountstringYesAmount of ETH to wrap in wei as string (e.g., "1000000000000000000" for 1 ETH). Must be a positive integer.
chainIdnumberYesChain ID (1=Ethereum, 42161=Arbitrum, 137=Polygon, 8453=Base, etc.)
gasLimitstringNoOptional gas limit override

Result Schema

FieldTypeRequiredDescription
statusstringYes-
transactionHashstringYes-
blockNumbernumberNoBlock number where the transaction was confirmed
wethAddressstringNoThe WETH contract address used
amountWrappedstringNoAmount of ETH wrapped in wei

Examples

json
{ "type": "wrap-eth", "payload": { "amount": "1000000", "chainId": 8453 }, "children": [], "connector": { "type": "wallet", "id": "conn_wallet" }}

Payload fields can use workflow expressions such as {{$trigger.body.amount}}, {{$nodes.fetch.result.price}}, and {{$props.asset}} when the value should come from a trigger, prior node, or reusable workflow prop.

Ask a question... ⌘I