Loopring Smart Wallet
DownloadFundTroubleshootSecure
  • Loopring Smart Wallet
  • 🛠️Create your wallet
    • Wallet activation
      • Activate a Counterfactual wallet
      • Activate the full Loopring wallet
      • Video guides
    • Name your wallet with an ENS
  • 💰Funding
    • Deposit
      • In-app L1 to L2
    • Withdraw
      • In-app L2 to L1
      • L2 to External L1
      • In-app L1 to External L1
      • Cross-chain
    • Transfer
      • L2 to L2
    • Bridge
    • Fiat On-ramp
      • L1 On-ramp
    • Fiat Off-ramp
      • L1 Off-ramp
      • L2 Off-ramp
  • ⚙️Troubleshooting
    • Recovery
      • Recover into Multi-wallet UI
        • Recover with Cloud
        • Recover with Guardians
    • Import
      • Import Process
  • 🔐Security
    • Guardians
      • Guardian set-up
    • Two-Factor Authentication (2FA)
      • Video Guide
      • 2FA Options
    • Cloud back-up
    • Daily Quota
    • Address Whitelist
  • 💸Earn
    • Dual Investment
      • Beginner's Guide
      • Intermediate Guide
    • Staking
      • ETH Staking
        • Reedem staked ETH
      • LRC Staking
        • Staking Rewards
    • AMM
  • ✨Additional features
    • Red Packets
      • Send a Red Packet
      • Receive a Red Packet
      • NFT Blind Box
    • Points
    • Forced Withdrawal
    • Gas Tank
      • Withdraw ETH from Gas Tank
  • Wallet Closure
    • Tips
    • Guides
      • Deploying Legacy Smart Wallets on Ethereum L1
      • Transferring Assets from Taiko L2
      • Withdraw ETH from Gas Tank
    • Error Messages
      • You Have Not Created a Wallet Yet
  • ❓FAQs
    • General FAQs
      • Smart wallet vs EOA
      • EOA import to Smart wallet
      • Incorrect balance
      • Sent funds to wrong address
      • Wallet to web dApp connection
      • Wallet Logs
      • New device
      • Forgotten wallet address
      • Connected to a Phishing site
    • Wallet Creation FAQs
      • Alloted creation time expired
      • Insufficient token transferred
      • Locating initial funds
      • Funds landed on Layer 1
      • Inactivated Layer 1
      • Cache clearing
    • Fee FAQs
      • Fee types
      • Fee reduction tips
      • Charged for funds not moved
    • Security FAQs
      • Loopring has access?
      • "Do not uninstall the app"
  • 🔧Change Logs
    • iOS
      • 3.2
        • 3.2.42
        • 3.2.41
        • 3.2.40
        • 3.2.39
        • 3.2.38
        • 3.2.37
        • 3.2.35
        • 3.2.34
        • 3.2.33
        • 3.2.32
        • 3.2.31
        • 3.2.28
        • 3.2.27
        • 3.2.24
        • 3.2.23
        • 3.2.22
        • 3.2.21
        • 3.2.19
        • 3.2.17
        • 3.2.16
        • 3.2.15
        • 3.2.14
        • 3.2.13
        • 3.2.12
        • 3.2.11
        • 3.2.10
        • 3.2.9
        • 3.2.8
        • 3.2.7
        • 3.2.6
        • 3.2.5
        • 3.2.3
        • 3.2.2
        • 3.2.1
      • 3.1
        • 3.1.26
        • 3.1.25
        • 3.1.23
        • 3.1.22
        • 3.1.21
        • 3.1.20
        • 3.1.19
        • 3.1.18
        • 3.1.17
        • 3.1.16
        • 3.1.15
        • 3.1.14
        • 3.1.13
        • 3.1.9
        • 3.1.8
        • 3.1.7
        • 3.1.6
        • 3.1.5
        • 3.1.4
        • 3.1.3
        • 3.1.1
        • 3.1.0
      • 3.0
        • 3.0.24
        • 3.0.23
        • 3.0.20
        • 3.0.19
        • 3.0.18
        • 3.0.17
        • 3.0.15
        • 3.0.14
        • 3.0.13
        • 3.0.12
        • 3.0.11
        • 3.0.10
        • 3.0.8
        • 3.0.7
        • 3.0.6
    • Android
      • 3.9
        • 3.9.2.310
        • 3.9.1.309
      • 3.8
        • 3.8.9.308
        • 3.8.8.307
        • 3.8.7.306
        • 3.8.5.304
        • 3.8.3.302
        • 3.8.2.300
        • 3.8.1.299
        • 3.8.0.298
      • 3.7
        • 3.7.9.297
        • 3.7.8.296
        • 3.7.7.295
        • 3.7.6.294
        • 3.7.5.293
        • 3.7.4.292
        • 3.7.2.290
        • 3.7.1.289
        • 3.7.0.288
      • 3.6
        • 3.6.9.287
        • 3.6.8.286
        • 3.6.7.285
        • 3.6.6.284
        • 3.6.5.283
        • 3.6.4.282
        • 3.6.3.281
        • 3.6.2.279
        • 3.6.1.278
        • 3.6.0.277
      • 3.5
        • 3.5.9.276
        • 3.5.8.275
        • 3.5.7.274
        • 3.5.5.272
        • 3.5.4.271
        • 3.5.2.269
        • 3.5.1.268
        • 3.5.0.267
      • 3.4
        • 3.4.9.266
        • 3.4.8.265
        • 3.4.6.263
        • 3.4.5.262
        • 3.4.4.261
        • 3.4.3.260
        • 3.4.2.259
        • 3.4.1.258
        • 3.4.0.257
      • 3.3
        • 3.3.9.256
        • 3.3.8.255
        • 3.3.7.254
        • 3.3.6.253
        • 3.3.5.252
        • 3.3.4.251
        • 3.3.2.249
        • 3.3.1.248
        • 3.3.0.247
      • 3.2
        • 3.2.9.246
        • 3.2.8.245
        • 3.2.7.244
        • 3.2.6.243
        • 3.2.5.242
        • 3.2.4.241
        • 3.2.3.240
        • 3.2.2.239
        • 3.2.1.238
      • 3.1
        • 3.1.9.236
        • 3.1.8.234
        • 3.1.7.233
        • 3.1.6.232
        • 3.1.5.231
        • 3.1.4.230
        • 3.1.3.229
        • 3.1.2.228
        • 3.1.1.226
Powered by GitBook
On this page
  • Withdraw ETH from Loopring Wallet’s Gas Tank
  • 1. Check ETH Balance in the Gas Tank
  • 2. Reserve a Small Amount for Fees
  • 3. Withdraw ETH Using the Smart Contract
  • 4. Approve the Transaction in the Wallet App
  • 5. Confirm the Transaction

Was this helpful?

  1. Additional features
  2. Gas Tank

Withdraw ETH from Gas Tank

PreviousGas TankNextTips

Last updated 3 days ago

Was this helpful?

Withdraw ETH from Loopring Wallet’s Gas Tank

1. Check ETH Balance in the Gas Tank

The Loopring Wallet app displays your Gas Tank balance, but only up to 7 decimal places. To view the full ETH balance, use the on-chain contract reader:

🔗

  • Scroll to the balanceOf function.

  • Enter your wallet address.

  • Click Query to see the full ETH balance displayed in wei.

If you’re not withdrawing the exact balance, keeping up to 6 decimal digits should work fine.


2. Reserve a Small Amount for Fees

ETH in your Gas Tank is used to pay gas fees on the Taiko network. Withdrawing the full balance may cause the transaction to fail if there's not enough ETH left to cover the fee.

Gas fees on Taiko are minimal, but we recommend reserving a small amount of ETH in the Gas Tank to avoid issues.

How to Estimate and Subtract for Gas

If you want to calculate your withdrawAmount precisely, follow these steps:

  1. Estimate the gas cost

    • Try submitting a full withdrawal.

    • If it fails, note the estimated gas cost (e.g., 0.0000023 ETH).

  2. Add a buffer Multiply the estimated cost by 1.5 to ensure your transaction succeeds:

0.0000023 ETH × 1.5 = 0.00000345 ETH

  1. Convert to wei Convert the buffered amount from ETH to wei:

0.00000345 ETH × 1e18 = 3,450,000,000,000 wei

  1. Subtract from your balance Subtract the buffered gas fee (in wei) from your total ETH balance (also in wei).

Example:

Full Balance

376667029381073 wei

Gas Fee Buffer

-3450000000000 wei

Withdraw Amount

373217029381073 wei

  1. Use this value Use the result as your withdrawAmount when calling the smart contract’s withdraw function.

It's okay to slightly overestimate the buffer. Leaving a tiny amount of ETH in the tank ensures your transaction won’t fail due to insufficient gas.


3. Withdraw ETH Using the Smart Contract

Steps:

  1. Connect Wallet: Use WalletConnect to link the Loopring Wallet you want to withdraw from.

  1. Click on Write Contract

  2. Use the withdrawTo method:

  • withdrawAddress: Enter the wallet address where you want to send the ETH.

  • withdrawAmount: Enter the amount to withdraw (your total balance minus the reserved fee).

  1. Click Write to submit the transaction.


4. Approve the Transaction in the Wallet App

The Loopring Wallet app will show a confirmation popup:

  • Tap Approve.

  • Enter your wallet password if prompted.

You can close the popup immediately after approving — no further action is required.


5. Confirm the Transaction

After approving:

  • Go to the Transactions section in your wallet app.

  • Confirm that the ETH has been successfully withdrawn from the Gas Tank.

🔗

✨
Open writeContract on TaikoScan
View full balance on TaikoScan