How Does xDAI Become WXDAI? The 1:1 Wrap
Wrap xDAI into WXDAI with a 1:1 deposit to the Gnosis Chain contract, keep xDAI for gas, and send the ERC-20 token to your DeFi app, then unwrap it.
Onchain Daily Newsroom5 min read

Gnosis Chain DeFi users holding xDAI can wrap it into the same amount of WXDAI through the wrapper contract’s deposit function. WXDAI is the ERC-20 form that DeFi apps can accept; native xDAI remains useful for transaction fees.
- You end up with WXDAI in your wallet, redeemable for xDAI at a 1:1 rate.
- You need xDAI on Gnosis Chain, a little extra for gas, and a wallet such as MetaMask.
The Gnosis Bridge moves tokens and messages between Ethereum and Gnosis Chain. The xDai Bridge is a concrete example: it can deliver DAI from Ethereum as native xDAI, which is ready to wrap for an ERC-20-only app. The Gnosis Bridge is relevant here because the bridge’s native xDAI output can go straight into the WXDAI deposit.
What happens when you wrap xDAI into WXDAI?
The WXDAI contract receives native xDAI and credits the caller with an equal amount of WXDAI. The Gnosis Chain documentation describes xDAI as the native currency used for gas; because it is not an ERC-20 token, a contract that accepts ERC-20 assets needs its wrapped form.
WXDAI follows the WETH9 wrapping design. Its payable deposit() function accepts xDAI and records a matching WXDAI balance for the caller. Its withdraw(amount) function burns the caller’s WXDAI balance and returns that amount of xDAI from the contract.
That 1:1 conversion is a contract deposit, not a market trade. It does not route through a liquidity pool, so the wrap itself has no slippage or pool fee. You still pay Gnosis Chain transaction gas in xDAI. A DEX route that swaps xDAI for WXDAI can introduce a pool fee and price impact, so use the direct wrapper when you want the one-for-one conversion.
For a 100 xDAI deposit, the contract credits 100 WXDAI. The transaction consumes gas, so the wallet’s spendable xDAI balance also covers that cost. Keep a small amount of xDAI aside rather than wrapping the whole balance; otherwise, you may not have enough native currency for the next transaction.
On Gnosis Chain, the WXDAI contract address is 0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d. You can confirm the address and inspect the contract’s available functions on GnosisScan. The GnosisScan contract page identifies the wrapper’s deposit and withdrawal functions. Use the verified WXDAI contract, and check that MetaMask is connected to Gnosis Chain before submitting a call.
Many DeFi apps include a wrap button that calls the same contract. That is usually the shortest path when the app supports it: connect MetaMask, choose the xDAI amount, retain some xDAI for gas, and confirm the deposit transaction. If you interact through GnosisScan instead, connect your wallet on the contract page, open the write functions, choose deposit, and enter the xDAI value to send. Since deposit is payable, the wallet must hold enough xDAI for both the amount and gas.
After confirmation, check the wallet for WXDAI or view the token balance on GnosisScan. Some wallets may require adding the token contract address to display it. The balance is then available for an app that accepts WXDAI, including a token deposit or another ERC-20 action. The app may still require a separate approval transaction before it can spend the WXDAI.
Consider a constructed case: a user bridges DAI from Ethereum through the xDai Bridge and receives native xDAI on Gnosis Chain. Their lending app accepts WXDAI but not the native gas coin. They wrap 100 xDAI, leave a little xDAI for gas, and supply the resulting 100 WXDAI to the app. Bridging and wrapping are separate steps: the bridge moves value across chains; the wrapper changes its representation on Gnosis Chain.
Is WXDAI the same value as DAI?
WXDAI represents native xDAI at a 1:1 contract redemption rate; it is not itself the Ethereum DAI token. DAI bridged through the xDai Bridge arrives on Gnosis Chain as native xDAI, according to the Gnosis Chain documentation. Wrapping that output gives WXDAI, which can then be used where an ERC-20 balance is required.
That distinction matters when selecting a token in a DeFi app. Use the asset and network the app specifies. A token with a familiar name on another chain is not automatically interchangeable with WXDAI on Gnosis Chain.
How do I unwrap WXDAI back to xDAI?
Call withdraw(amount) on the WXDAI contract to redeem WXDAI for the same amount of native xDAI. Use the app’s unwrap control if it provides one, or connect MetaMask to Gnosis Chain and call the verified contract on GnosisScan. The wallet needs WXDAI to redeem and xDAI for gas.
For instance, withdrawing 25 WXDAI returns 25 xDAI, less the transaction’s gas cost from the wallet balance. Keep some WXDAI if you still need the ERC-20 token for another app; withdraw only the amount you want back as native xDAI.
Related
Wrapping is useful when a DeFi app requires an ERC-20, because the WXDAI contract converts native xDAI one-for-one through deposit and withdraw. That direct contract path gives you the token format the app needs while keeping xDAI available to pay for transactions.