Skip to content

superfluid:wrap

Wrap an underlying token into its SuperToken (DAI to DAIx, native xDAI to xDAIx...), approving the SuperToken automatically when needed. The amount is in the underlying token's base units (e.g. 100e6 for 100 USDC); SuperTokens themselves are always 18 decimals.

superfluid:wrap <amount> <into> <token>
NameTypeDescription
amountnumberAmount to wrap, in the underlying token's base units
intocommandKeyword into
tokensupertokenSuperToken symbol (e.g. USDCx) or address
NameTypeDescription
--no-approveboolSkip the automatic allowance check and approve action
# Wrap 100 native xDAI into xDAIx on Gnosis (no approval needed)
superfluid:wrap 100e18 into xDAIx
# Wrap 100 USDC (6 decimals) into USDCx — the amount is in the underlying's base units and the approval is inserted automatically
superfluid:wrap 100e6 into USDCx