Tokamak Network Documents
  • Docs
  • Getting Started
  • Languages iconEnglish
    • 한국어

›Tokamak Optimism

General

    Basic

    • Tokamak Network

Optimistic Rollup

    Tokamak Optimism

    • Optimism Introduction
    • Natasha faucet
    • Build Optimism Environment
    • Build new Optimism layer2
    • Test and deploy Optimism-ERC20
    • Test and deploy Optimism-ERC721
    • Porting smart contract L1 to Optimism

DAO & Staking

    TON Staking

    • How to Set Candidate
    • Private Testnet Staking
    • Rinkeby Testnet Staking
    • How to Commit

Token Economics

    Token Economy

    • TON
    • Child Chain and Staking
    • Token Supply and Distribution
    • PowerTON
    • Transaction Fee
    • Challenge
    • Parameters

Another Layer2

    Plasma EVM

    • Interoperability
    • Convenience
    • Comparison with Other Solutions
    • Design Rationale
    • Plasma EVM Architecture
    • RootChain
    • Child Chain
    • Continuous Rebase
    • Plasma EVM Smart Contracts
    • Examples and Best Practices
Edit

Natasha faucet

In Natasha Optimism, you pay specific ERC20 token for Layer2 transaction fee, not Ether. This document explains how to get fee token on L1 and move it to L2 to use the testnet.

Setup

Clone and install the repository as below.

git clone https://github.com/Onther-Tech/natasha-faucet-example.git
cd natasha-faucet-example
yarn install

Configuration

Copy .env.example file to .env file, and insert below variables.

  • RINKEBY_NODE_WEB3_URL: Insert Rinkeby RPC Endpoint URL.
  • PRIVATE_KEY: Insert your private key corresponding to your ethereum address.

Faucet

Run the script as below. After all transactions in the script are processed, you can get the token to be used as fee.

yarn faucet
Last updated on 9/1/2021 by modagi
← Optimism IntroductionBuild Optimism Environment →
  • Setup
  • Configuration
  • Faucet
Docs
LearnGuides
Community
DiscordTelegramTwitterFacebook
More
Onther BlogOnther GitHub
Family site
Tokamak NetworkOriginal StakingSimple StakingStaking SimulatorPrice DashboardVesting DashboardTON-WTON Swapper
Tokamak Network
Copyright © 2021 Onther Inc.