Flag Doc
  • Summary
  • DOCUMENTATION
    • Learn about the Flag Platform
      • Flag Overview: vision, strategy and platform components
      • The Flag Blockchain
        • Discovering the Network
        • Flag Consensus
        • Delegation through Staking with Validators
        • Ethereum (EVM) Compatibility and Smart Contracts
        • Boosting Flag's Scalability
      • Flag Coin (FLAG)
        • FLAG Tokenomics
        • Exchanges, Wallets, On-Ramps and DeFi Tools Supporting FLAG
        • FLAG on Other Chains
      • Interoperability
      • Flag Governance and Development
        • Flag Assembly
        • Flag Improvement Proposals (FIPs)
      • Wallets supporting Flag
    • Flag for Business
    • Things you can do on Flag
      • Interacting with the Flag Blockchain
      • Flag Ecosystem
      • Community
      • Grants and Bounties
  • Developers
    • Network Details
      • Flag Mainnet
      • Flag Testnet
      • Token Faucets
      • Network Upgrades
        • Upgrade Guide
        • Upgrade Guide (explorer nodes)
        • Block 13,800,000 Fork
        • FIP's
    • Flag Consensus
      • Contracts Overview
      • Stake, Delegate and Withdraw
      • Vote
      • End-of-Cycle Flow
      • Contract Addresses
    • How to run network nodes
    • Resources & Tools
      • TheGraph
      • WalletConnect on Flag
    • Important smart contracts
      • Flag Token
      • Major Deployed Contracts
      • Bridges
        • Ethereum ↔ Flag FLG20 Tokens
        • BSC ↔ Flag BNB
        • BSC ↔ Flag Native
        • BSC ↔ Flag FLG20
        • Ethereum ↔ Flag Native
    • How to become a validator
      • Getting started as a validator
      • Getting started as on the Flag testnet
  • Links
    • Discord
    • Facebook
    • GitHub
    • LinkedIn
    • Medium
    • Telegram
    • Twitter
    • YouTube
Powered by GitBook
On this page
  • Stake
  • Delegate
  • Withdraw
  1. Developers
  2. Flag Consensus

Stake, Delegate and Withdraw

PreviousContracts OverviewNextVote

Last updated 1 year ago

The basic requirement to become a Flag chain validator is to have a stake amount of at least 100,000 Flag tokens. The stake amount is the sum of staked and delegated Flag tokens of the address. This guide walks trough the process of using MEW (MyEtherWallet.com) in the process of using Flag network.Roadmap - Those functionalities will be built into our Studio and will not require any technical knowledge in the future.

Stake

There are two options to stake (both should be called from the address which would be the validator)

  1. 1.Send Flag tokens to the - 0xF631D903d6C31b606Ec527558e441108B6211af3 on the flag network.

  2. 2.Call the `stake` function on the - 0xF631D903d6C31b606Ec527558e441108B6211af3 on the flag network.

Delegate

Flag token holders who don't want to run a node by themselves but still wish to participate in governing the network can delegate any amount to one of the validators.Delegating is done by calling the `delegate` function on the with the validator address as data (see screenshot from MEW).

delegate

Withdraw

Both stakers and validators can withdraw their Flag tokens, up to the staked/delegated amount, at any time. The withdrawn amount will be deducted from the validator stake amount, and if the stake amount becomes below the minimum stake amount - the validator will be removed from the Flag chain validators list.There are two options to withdraw:

1.Call the `withdraw` function on the with one parameter - the amount to withdraw. This call is for stakers, and will reduce the stake amount of the sender address.

2.Call the `withdraw` function on the with two parameters - validator address and amount to withdraw. This call is for both stakers (who can use their own address as the parameter) and for delegators to withdraw their delegated stake on a specific validator.

withdraw option no. 1
withdraw option no. 2
consensus contract
consensus contract
consensus contract
consensus contract
consensus contract