How to withdraw FIL from the agent to an exchange at GLIF
In order to withdraw from a GLIF Agent smart contract to an exchange like Binance, you need to use an intermediary wallet, which can be a FilSnap, Burner Wallet, or Ledger Wallet. The strategy is to withdraw FIL from your Agent to your intermediary wallet, and from your intermediary wallet to the exchange. The reason for this approach is due to certain exchanges not yet supporting Filecoin deposits from FEVM smart contracts.
Contents
This guide will walk you through:
Step 1: Setting up your intermediary wallet
Step 2: Withdrawing from your agent to the intermediary wallet
You can choose from the following options:
Step 3: Transferring FIL from the intermediary wallet to the desired "f1" address on the exchange
Before your send any FIL to any wallet, test it with a small amount of FIL.
No matter which wallet you use, always make sure to back up your secret recovery phrase, store it securely, and never share it with anyone.
When withdrawing FIL from the agent using multisig wallets, you have five minutes to finish the proposal, from proposing it to approving the transaction. Missing the window means starting the process again.
Step 1: Setting up your intermediary wallet
You can choose an intermediary wallet to obtain an f1 address from the following options:
For details on creating an intermediary wallet, please refer to the tutorial by clicking the link above.
Step 2a : Withdrawing from your agent to the intermediary wallet - through GLIF website
Connect to one of the wallets that is a signer for your agent's multisig wallet.
Navigate to the "Withdraw" tab within the agent.
Enter the intermediary wallet you created in Step 1 as the recipient.
Enter the amount to withdraw.
Click "Withdraw"
Wallets with no prior transactions on chain are not supported as the intermediary wallet.
Click "Sign Transaction".
After signing the transaction, you will receive a signed credential that expires in around 5 minutes. Complete the transaction within this time.
Click "Send".
If you do not complete the transaction and sign the proposal with your other signer wallets within 5 minutes, you will need to repeat this step.
Approve the transaction in your wallet.
Wait for the transaction to be processed. This may take 1-2 minutes.
Sign in to the additional signer wallet in your agent’s multisig wallet.
Click on the proposal just made in the "Owner Proposals" tab on the agent page..
Click "Approve proposal".
Make sure all signer wallets have enough gas fees to proceed with the transaction.
Wait for the transaction to be processed. This may take 1-2 minutes.
Once the multisig proposal is complete, it will disappear, and a successful transaction will be displayed in the "Transaction" tab.
Verify your balance in the intermediary wallet to ensure the transaction was successful on the GLIF "wallet" page, or verify it by searching your f1 address on filfox.info.
Step 2b : Withdrawing from your agent to the intermediary wallet - through CLI
Open your agent's command line interface.
Use the following commands:
1st Command:
glif agent --help
2nd Command:
glif agent withdraw --help
3rd Command:
glif agent withdraw 100 f1...abc
Replace 100 with the amount you want to withdraw.
Replace f1...abc with your intermediary wallet address.
Verify your balance in the intermediary wallet to ensure the transaction was successful on the GLIF "wallet" page, or verify it by searching your f1 wallet address on filfox.info.
Step 3: Transferring FIL from the intermediary wallet to the desired "f1" address on the exchange
Connect to your intermediary wallet made in step 1. On the GLIF website, click "Send FIL."
Paste your f1 address on the exchange in the recipient field.
Enter the desired amount of FIL to transfer.
Click "Send" and confirm the transaction.
After the transaction completed, you can check the transaction hash in the bottom right corner of the GLIF page.
Once the transaction is completed, you can verify the balance of your final f1 address on filfox.info or by pasting your address after https://www.glif.io/en/address/(your f1 address).
Congrats! Your FIL has been successfully withdraw FIL from your agent to your f1 address on the exchange!
Conclusion
By following this step-by-step guide, you can successfully withdraw FIL from your agent to an f1 address on exchange using an intermediary wallet. Remember to always double-check addresses and transaction details to ensure the accuracy and security of your funds.
Join our community!
Feel free to join our Discord and Telegram or follow us on X for the latest updates.
If you encounter any difficulties, please feel free to contact us through our Discord support ticket.
Last updated