Skip to content

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.

swaps:wrap <amount>
NameTypeEvaluationDescription
amountnumberRuntime in smart blocksNative amount to wrap, in base units (wei)
# Wrap 1 xDAI into WXDAI (on Gnosis)
swaps:wrap 1e18