GLIF Docs
V2 English
V2 English
  • Introduction
    • Quick Guide
    • GLIF Overview
    • Protocol Users
  • For Liquidity Providers
    • Benefits for token holders
    • GLIF Reward Mechanism - iFIL
    • Exit - Withdraw FIL
    • Asset Security
    • Risks
  • For Storage Providers
    • Benefits for Storage Providers
    • SP Liquidation Values
    • Borrowing Limits & DTL
    • Uses of Borrowed FIL
    • Liquidations
    • Borrowing Cost
    • Manage Miner Actors with Agents
    • Guarantor Model
  • Developer Resources
    • GLIF SDK
    • GLIF CLI
    • Deployed Contracts
  • TROUBLESHOOTING
    • FAQ
      • FAQ for Liquidity Providers
        • About GLIF
        • Deposit FIL
        • Withdraw FIL
        • Risk
        • Wallet Connection
        • GLIF Points
        • Miscellaneous
      • FAQ for Storage Providers
        • Borrow and Withdraw FIL
        • Key Financial Ratio
        • Payment
        • Liquidation
        • Agents
        • Transaction Issue
    • TUTORIALS
      • For Token Holders
        • Wallets
          • How to find your corresponding 0x/f410 wallet address
          • How to obtain a Ledger wallet as the intermediary wallet
          • How to obtain a burner wallet as the intermediary wallet
          • How to obtain a FilSnap wallet as the intermediary wallet
          • How to connect your wallet to Filecoin Mainnet
          • How to transfer FIL from a 0x address to an f1 address
          • How to create a multisig wallet on GLIF
        • Using the Pool
          • Deposit FIL into GLIF to earn rewards
          • How to deposit Filecoin from a hardware wallet with GLIF
          • How to deposit FIL to GLIF using multisig wallet
          • Withdraw FIL from GLIF
          • How to withdraw FIL from GLIF using a multisig wallet
        • Transfer FIL to/from exchanges
          • Transfer FIL between exchange and GLIF
          • Binance
            • Transfer FIL from Binance to GLIF
            • Transfer FIL from GLIF to Binance
          • MEXC
            • Transfer FIL from MEXC to GLIF
            • Transfer FIL from GLIF to MEXC
      • For Storage Providers
        • GLIF Agent Website Tutorial Part I— Preparation Setup
        • GLIF Agent Website Tutorial Part II — Create your Agent
        • GLIF Agent Website Tutorial Part III — Add Your Miner
        • How to withdraw FIL from the agent to an exchange at GLIF
      • How to Claim $GLF Airdrop
    • Glossary
    • Contact Us
  • Governance
    • Governance
    • Delegation
    • Proposals (GIPs)
    • Voting Process
Powered by GitBook
On this page
  • Agents, Agent Owners, and Login Keys
  • Agent Creation Wizard
  • Create your Agent on the website
  • Important Agent Information
  • Next Steps
  • Join our community!
  1. TROUBLESHOOTING
  2. TUTORIALS
  3. For Storage Providers

GLIF Agent Website Tutorial Part II — Create your Agent

Create your Agent on the GLIF Website

PreviousGLIF Agent Website Tutorial Part I— Preparation SetupNextGLIF Agent Website Tutorial Part III — Add Your Miner

Last updated 4 months ago

If you don’t yet understand the basics of GLIF Agents and the preparation steps to get started creating Agents on the GLIF website, we suggest you start by reading of this tutorial.


Agents, Agent Owners, and Login Keys

Before creating your Agent on the website, it’s important to understand 2 “roles” within GLIF. As a brief refresher:

  1. Agent — An Agent is a smart contract that borrows FIL from GLIF. You will deploy, own, and operate your Agent smart contract yourself (covered in Part II of the tutorial). In order to borrow FIL, your Agent needs collateral, which it gets by taking ownership of your Filecoin miner(s). A more detailed description of Agents can be found .

  2. Agent owner wallet — The Agent’s owner wallet is the wallet that controls your Agent. Whoever is in control of your Agent’s owner wallet can operate your Agent. It is very important to keep the Agent’s owner wallet secure, which GLIF will help you do automatically.

Agent Creation Wizard

In this tutorial, you will:

  1. Create your Agent Owner multisig wallet

  2. Create your Agent smart contract

The Agent Creation Wizard on the GLIF website will walk you through these steps. Read on for a guided walkthrough.

Create your Agent on the website

Step 1 — go to and click the “Create new agent” button on the left hand panel:


Once you click the “Connect” button, you must approve GLIF to connect to your wallet. You may see this popup appear two times, you should approve both requests to connect.

Your FilSnap wallet needs some funds to perform the transactions required to create a new Agent.


If you want to use 2 signers only, open the owner settings, set 'Required approvals' to 2, and remove the "Signer 3".

Once you click “Create Owner”, you must approve the transaction in MetaMask:

Great work so far! Once you’ve approved this Agent Owner multisig creation transaction, you’re almost ready to create your Agent smart contract.


Step 4 — Wait for your Agent owner multisig creation transaction to complete.

In order to create your Agent, we must first wait for your Agent owner multisig wallet to exist on-chain.

If you see “Failed to load address information” under your “owner address”, this is because your Agent owner multisig wallet creation transaction is still pending.

Once your Agent owner multisig creation transaction has confirmed, you should be able to click the “Create Agent” button, and approve the transaction in MetaMask.

Once you click the “Create Agent” button, you must approve the transaction in MetaMask:


Step 5 — wait for your Agent creation transaction to confirm

Step 6 — Success! You can see we’ve created a new Agent.

Important Agent Information

A couple pieces of important information to note after creating your Agent:

  1. Agent ID — The Agent ID is a number that GLIF uses internally in its smart contract infrastructure to identify your Agent.

  2. Agent f410 Address — The Agent f410 address is the smart contract address of your Agent, displayed in a Filecoin native format.

  3. Agent 0x Address — The Agent 0x address is another representation of the smart contract address of your Agent, dislayed in an Ethereum native format. An Agent’s f410 and 0x addresses are functionally equivalent to each other.

  4. Agent Owner — The Agent Owner is the multisig wallet that owns your Agent smart contract, which we created at the beginning of this tutorial.

  5. Agent Operator — the Agent Operator is written about in more detail in later part of this tutorial.

Next Steps

Congratulations! You just created your GLIF Agent. To recap, in Part II of this tutorial, you should have:

  1. Created a new Agent Owner multisig wallet, using your FilSnap wallet and 2 Ledger wallets or buner wallet addresses as signers

  2. Created a new Agent smart contract

Join our community!

Step 2 — Connect the “proposer” Filecoin Snap wallet you created in of the tutorial.

If your wallet is empty, please make a deposit from another wallet using the 'Deposit' button, or send funds to the wallet's address from an exchange. If you encounter any issues with the deposit, check the tutorial .

Step 3 — Enter your two additional wallet addresses (“approver”, “backup”) signers and create your Agent owner wallet. These are the two other FilSnap or Ledger wallet addresses you created in of this tutorial.

In of this tutorial, we will show you how to add miners to your Agent.

Feel free to join our and or follow us on for the latest updates.

If you encounter any difficulties, please feel free to contact us through our .

Part I
here
Part I
Part III
Discord
Telegram
X
Discord support ticket
Part
I
here
https://glif.io/agent