Graphite
  • Overview
    • Introduction
    • What is Graphite?
    • Connect to Graphite
    • Graphite account activation
    • Graphite Wrapped Tokens
  • Build on Graphite
    • Getting started
    • System Contracts
      • Account Activation
      • Filter Contract (KYC Transaction Filters)
      • KYC Contract
      • Reputation
    • How to Complete KYC in a Testnet
    • How to Deploy Smart Contracts Using Hardhat: A Step-by-Step Guide
    • SDK
      • JS SDK
  • Infrastructure
    • Graphite Nodes
      • Graphite testnet node setup
      • Graphite mainnet node setup
  • Ecosystem
    • Graphite Wallet
      • Graphite Web3 Documentation
    • Graphite Bridge
    • The Graphite Explorer
      • API documentation
    • Faucet Testnet
Powered by GitBook
On this page
  • Intro
  • Network address of the contract
  • Functions
  • pay()
  • changeFee(...)
  1. Build on Graphite
  2. System Contracts

Account Activation

PreviousSystem ContractsNextFilter Contract (KYC Transaction Filters)

Last updated 7 months ago

Intro

FeeContract.sol is a Graphite system smart contract. The contract is used to perform Account Activation. Without Account Activation, an account isn't able to send transactions to the blockchain.

  • To activate your account and pay the fee for Account Activation, call pay().

  • changeFee(initialFee) is for administrative purposes and changes the fee for Account Activation.

Network address of the contract

FeeContract_address = "0x0000000000000000000000000000000000001000"

Functions

pay()

  • Purpose

Call pay() in order to pay the fee for Account Activation and activate the wallet address that called this function.

  • Arguments

none

  • After Execution

Upon successful execution of a function, the wallet address becomes activated.

If the currency value of a calling transaction is less than the InitialFee, the message Not enough Ether Provided. will be sent and account won't be activated.

  • Details

An Activated Account is an account (wallet address) that is capable of sending outgoing transactions. Transactions from non-activated accounts are rejected by Graphite Nodes. To determine if an account is activated, Graphite Nodes check if there are any transcations in the blockchain that originated from the account. Account Activation is always the first transaction of any user account on the network.

The excessive value (fee) for account activation will be returned to the function caller.

changeFee(...)

  • Purpose

Determines the size of the fee for Account Activation. Only Graphite network admins (owners of the FeeContract smart-contract) can execute this function.