Enhancement that takes your bridging experience to a whole new level!
Have you ever found yourself forgetting to withdraw your assets from Mainnet after bridging them through Starkgate? Well, thanks to the incredible work of our developers, you can now say goodbye to that concern.
With the 1-click withdrawal feature, you can now effortlessly retrieve your bridged assets from Mainnet without the need to initiate a separate withdrawal transaction. No more worrying about forgetting to withdraw or dealing with complicated withdrawal procedures. 🥳🥳🥳
We invite you to join our early tester program to experience the convenience and efficiency of Starkgate’s 1-click withdrawal feature firsthand. Visit Starkgate website today to become an early tester and explore this exciting advancement in bridging technology.
Make sure you connect with your Metamask and Argent/Braavos wallets.
Go to the withdrawal tab, enter the amount you want to withdraw, and then check “Use the automatic withdrawal service by SpaceShard “.
Depending on the wallet you are using popup will appear. In this case, the Argent wallet is connected to Starkgate (see image below).
Confirm the transaction on the Argent wallet. It will deposit the tokens in the Starkgate bridge and a small ETH fee to the one-click service provider.
The one-click withdrawal service will wait until the transaction gets accepted on L1.
In the meantime, the user can go back to Starkgate to check the status of the withdrawal request. To check the withdrawal history, click on the Argent widget located in the upper right corner. Once it is accepted on L1, users will be notified on Starkgate via popup.
Here’s a closer look at the withdrawal history. Once the withdrawal has been completed, users can access the confirmation by clicking on the Ethereum Tx button. This will redirect them to StarkScan.
Double-checking is always a must and users can find the confirmation also on Etherscan. The final stage of the withdrawal should look like the image below, where the USDC token has been transferred to the L1 recipient account.
Voila! So simple, so Starknet!
Get the current gas cost to process your transaction, then create a multi-call on L2. This transaction must contain the transfer of the gas cost to the relayer address, and withdraw tokens from the bridge contract. Your transaction will be processed when it gets accepted on L1. A node application example is available here.
Currently, we accept L2 ETH tokens. Later we will extend the fee payment options to other tokens such as WBTC and USDC/T.
On Mainnet, the relayer handles 4 tokens: ETH, USDC, USDT, and WBTC. For more details check this list of addresses. On Testnet, only ETH token are available.
The gas cost is calculated using the average of the base fee price recorded on L1 blocks during the last 8 hours. In the future, the gas cost will be even lower because of the batching mechanism that we have implemented. Basically, as more users use the service, it will become cheaper for everyone! Pure magic 🪄✨
The relayer will try to execute your transaction as quickly as possible. But in some cases, the L1 network fees are higher than expected, which means the relayer will wait for better prices before executing the withdrawals.
The relayer executes withdrawals per batch. So, each time the relayer detects valid withdrawals, it buffers them and then executes a withdraw function through a multi-call. This approach allows us to reduce the gas cost for the user.
In this case, the relayer will ignore your transaction and the gas cost paid will not be refunded. The only way to get your tokens is by doing a manual call to withdraw them. We are developing the version where you will be able to get a refund for the tx and make if faster on demand if you are willing to pay more gas.
Currently, this is not possible but we are in the process of developing a solution so you will be able to choose between a normal speed of withdrawal and a faster one.
Either your transaction was not well executed:
Or the relayer is waiting for a gas price drop on L1. If it’s not the case feel free to reach out SpaceShard team on Discord.
You will have access to the relayer feature through Starkgate, the official Starknet bridge.
We hope this guide has been helpful in showing you how to use the SpaceShard one-click withdraw feature on Starkgate.
If you have any questions or require further information, feel free to reach out to us through our Discord community. We are continuously working to enhance the bridging experience and are excited to have you on board as an early tester.
* This article is also available on SpaceShard Medium.