swaps:wrap
Wrap the native token into its canonical wrapped form (ETH to WETH, xDAI to WXDAI...).
⚗️ Experimental — available at next.evmcrispr.com.
Supports runtime fields inside smart blocks. Use explicit @helper! expressions or captured outputs; other fields are evaluated at build time.
Syntax
Section titled “Syntax”swaps:wrap <amount>Arguments
Section titled “Arguments”| Name | Type | Evaluation | Description |
|---|---|---|---|
amount | number | Runtime in smart blocks | Native amount to wrap, in base units (wei) |
Examples
Section titled “Examples”# Wrap 1 xDAI into WXDAI (on Gnosis)swaps:wrap 1e18