Start typing to search this publication.
jumper bridge
Open menu

Subscribe to jumper bridge

Get new posts delivered straight to your inbox.

How to Wrap xDAI Into WXDAI on Gnosis Chain: See Your Balance

0xeC4db87e5569978b3395DA4e6bA8D11c7e7D97b7
2 min read

Call deposit() on the WXDAI contract with the amount of xDAI you want to wrap as the transaction value, or choose a DEX’s Wrap action. Each xDAI wrapped mints one WXDAI. WXDAI is an ERC-20 token that DeFi contracts can use; native xDAI is also the token that pays Gnosis Chain gas.

Start with xDAI in your wallet on Gnosis Chain. A DAI transfer through Gnosis Bridge can leave you with that native balance, ready to wrap. Gnosis Bridge moves assets between chains; wrapping takes place entirely on Gnosis Chain.

Wrap xDAI Through the WXDAI Contract

The WXDAI contract mints WXDAI when you call deposit() and send xDAI with the call. Think of the contract as an envelope holding xDAI and WXDAI as a transferable claim ticket: one goes in for each one issued. The analogy stops at the envelope—code holds the xDAI and tracks the ERC-20 balance.

  1. Set MetaMask or your wallet to Gnosis Chain, chain ID 100. Make sure your xDAI balance covers both the amount you plan to wrap and the network gas. The contract charges no conversion fee or spread; the transaction still uses xDAI for gas.

  2. Open the GnosisScan WXDAI contract record. It identifies the Gnosis Chain address as 0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d and exposes its contract functions. Compare the full address with the one your wallet or app shows before signing.

  3. Open Contract, then Write Contract, and connect your wallet. Select deposit(). This function takes no arguments: there is no recipient address or amount parameter to fill in. The WXDAI goes to the wallet that sends the transaction.

  4. Enter the amount in deposit()’s payable value field. GnosisScan labels that value in xDAI, not wei. To wrap 0.5 xDAI, enter 0.5, not 500000000000000000. That long integer is the amount expressed in wei and would be read as an enormous xDAI value in this field.

  5. Submit the call and inspect the wallet confirmation. Its destination should be the verified WXDAI contract, and its value should match the xDAI amount you entered. Confirm the transaction and wait for it to succeed.

  6. Import 0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d as a custom token if your wallet does not show WXDAI automatically. Your WXDAI balance should rise by exactly the amount wrapped; your xDAI balance falls by that amount plus gas.

A DEX interface such as CoW Swap offers the same conversion in a swap-style screen: select xDAI and WXDAI, then use its Wrap action. The wrap calls deposit() on the WXDAI contract, so the result is still 1:1 and still requires xDAI for Gnosis Chain gas. Use the contract route when you want to inspect the payable value directly; either route leaves you holding the same WXDAI token.

WXDAI can return to native xDAI, and its name does not make it the DAI token.

How do I unwrap WXDAI back to xDAI?

Call withdraw(wad) on the same WXDAI contract or use a DEX’s Unwrap action. The contract burns the specified WXDAI and returns xDAI 1:1. Unlike deposit()’s payable value field, wad is a contract argument expressed in the token’s smallest units.

Is WXDAI the same as DAI?

WXDAI is wrapped native xDAI on Gnosis Chain; DAI is a separate ERC-20 token. A WXDAI balance works in DeFi apps that accept WXDAI, while gas payments require native xDAI.

  • Keep some xDAI for future gas.

  • Confirm the WXDAI balance in your wallet.

  • Use WXDAI in the DeFi app that requested it.

Subscribe to jumper bridge