Build a wrap-native-ETH transaction (Universal Router)
build_wrapBuild an unsigned transaction to wrap native ETH into WETH using the Universal Router, with optional recipient and simulation support.
Instructions
Build an UNSIGNED payable tx that wraps amountWei native ETH into WETH via the Universal Router WRAP_ETH command (works under UR-allowlisting wallet policies where a direct WETH.deposit() doesn't). recipient defaults to the tx sender — omit it unless the WETH should go elsewhere. Returns the tx plus unsigned rlp. Pass sender (the signing wallet) to eth_call-simulate before signing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sender | No | ||
| chainId | Yes | ||
| deadline | No | ||
| simulate | No | ||
| amountWei | Yes | ||
| recipient | No |