GLIF Agent 教程 第三部分 — 添加您的矿工
Last updated
Last updated
If you don’t understand the basics of GLIF Agents, Agent owners, or how to create your Agent on the GLIF website, we suggest starting with Part I and Part II of this tutorial series.
In the previous parts of this tutorial, you created:
Your Agent Owner multisig wallet
Your Agent smart contract
With your Agent now set up, the next step is to add a miner to your Agent. By doing this, you will provide your Agent with the asset in your miner as the collateral needed to borrow FIL from GLIF. In this part of the tutorial, we will guide you through the process of adding a miner to your Agent using the GLIF website interface.
Connect to the wallet that is one of the signers of your multisig created in Part II.
Go to the "Miners" section in your Agent page. Click “Add a Miner”.
Enter your miner address in the "Add a miner to your Agent" page.
Click "Sign transaction".
After clicking 'Sign transaction,' a message will be displayed indicating how many minutes remain for this credential. You can also revoke the credential by clicking "Revoke credential".
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.
Click “Send” to create a new proposal. You will be prompted to sign the transaction with your currently connected wallet.
Approve the transaction in your wallet.
Wait for the transaction to complete, which may take 1-2 minutes.
Your Agent owner wallet is a multisig wallet which requires multiple signers to confirm important changes. Now that you have created aproposal to add a miner, you need the other signer(s) to approve it.
Connect with the other signer wallets. You can find all signer wallets in the "Required Approvals" section on your multisig page. These should be the same wallets used in Part II.
Navigate to the "Multisig" tab.
The 'AddMiner' proposal should appear in the "Multisig proposals" queue.
Select the Proposal that you just created.
Click “Approve proposal”.
Confirm the transaction in your wallet.
If your multisig requires approval from more than two signers, repeat the same steps using the other signer wallets. Once approved by the required number of signers, the proposal will be executed on-chain. Wait for the transaction confirmation, which may take a few minutes.
Return to your Agent’s page on the GLIF website. You should now see the newly added miner associated with your Agent in the "Miners" section.
You’ve successfully added a miner to your Agent!
In Part IV of this tutorial, we will show you how to push and pull fund into your miner from your Agent.
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.