LogoLogo
English
English
  • ⚡Introduction
    • What is Tokamak Network?
    • Vision
    • Whitepaper
  • ⚙️Service Guide
    • Tokamak L2
      • Thanos Stack
        • Introduction
        • Differences Between Ethereum and Thanos Stack
        • Transaction Fee
        • L2 Native Token Bridge
          • Overview
          • Contracts Modifications
          • Deposit & Withdraw Flow
          • Security Considerations
        • Testnet Information
    • Staking & DAO
      • Simple staking
        • Stake
        • Withdraw
        • Staking reward
        • Contract addresses
        • Contract addresses (testnet)
      • Tokamak Network DAO
        • DAO candidates
          • DAO candidate registration
        • Propose
        • Agenda
        • Contract addresses
        • Contract addresses (testnet)
    • Rollup Hub
      • Devnet
        • Parameter Definitions
        • Creating your own rollup Devnet
      • Mainnet Beta
        • Deployment Configuration Parameters
        • Deploy with AWS
          • Introduction
          • Prerequisites
          • Deploy contracts
          • Building AWS infra with terraform
          • Deploy Thanos chain
        • Operation Guide
          • Chain Operators
            • Architecture
            • Node Operations
            • Chain Configurations
          • Developer Tools
            • SDK
              • Bridge ERC-20 tokens with the Thanos SDK
              • Bridge the Native Token with the Thanos SDK
              • Bridge ETH with the Thanos SDK
            • Contracts
            • About USDCBridge
        • Additional Features
          • Mini Bridge
            • Deployment Guide
            • How to use the Mini Bridge?
          • Seigniorage Rewards (Coming Soon)
      • Troubleshooting
    • Faucet (testnet)
  • 📖Information
    • Get TON
    • TON ↔ WTON
    • Glossary
    • Link
  • 😀Get Involved
    • Global Telegram
    • Community Discord
Powered by GitBook
On this page
  • 1. Funding Requirements
  • 2. L1 RPC endpoint
  • 3. Beacon RPC endpoint
  • 4. Set-up AWS account
  • 5. Stake TON as an Operator
  • 6. Tools
  1. Service Guide
  2. Rollup Hub
  3. Mainnet Beta
  4. Deploy with AWS

Prerequisites

The following are the prerequisites you need to ensure before you start deploying the chain.

  1. Funding Requirements

  2. L1 RPC Endpoint

  3. Beacon RPC Endpoint

  4. AWS IAM account

  5. (Optional) Operators can stake TON to earn seigniorage rewards

  6. Tools

Let's go step by step about each of them.

1. Funding Requirements

Funding for multiple EOA accounts is a critical aspect of network setup and operation. These costs can be categorized into deployment costs and post-deployment operational costs.

Operator account

The operator account plays a crucial role in the operation of the Thanos chain. It is mainly responsible for network upgrades, data availability, and network security.

Below is an explanation of the roles for each account:

  • Admin: the ability to upgrade contracts.

  • Batcher: Publish Sequencer transaction data to L1.

  • Proposer: Publish L2 transaction results (output roots) to L1.

  • Sequencer: Sign blocks on the p2p network.

  • Challenger: Resolve dispute game

Deployment Costs

  • Admin - 0.6 ETH

    • The admin fee constitutes the primary deployment expense, covering the deployment of system contracts on L1. This process requires approximately 80,000,000 gas. Assuming a base fee of 7–8 gwei, the estimated cost is approximately 0.6 ETH.

    • This cost is a one-time expense necessary to establish the foundational infrastructure.

  • Batcher, Proposer, Challenger

    • Post-deployment, Batcher, Proposer, and Challenger accounts incur ongoing operational costs. These expenses are highly variable, depending on the network's configuration and usage patterns.

  • Sequencer - Not required.

To ensure smooth operation, users must define an operational funding strategy, including determining the appropriate funding intervals for these accounts. It is recommended to use the provided spreadsheet to estimate operational costs based on the desired network configuration. By doing so, users can allocate sufficient ETH to these accounts to cover anticipated expenses, thereby maintaining seamless network functionality.

2. L1 RPC endpoint

You need an L1 RPC endpoint to handle deposits, withdrawals between L1 and L2 chains, and to ensure data availability and security for the L2 chain.

We currently recommend Alchemy as the L1 RPC endpoint provider. Since Thanos is an Ethereum-based L2 chain, make sure to select Ethereum.

3. Beacon RPC endpoint

To reduce data availability costs by using blobs. You’ll need to set up a Beacon node. You can create an endpoint through Quicknode.

4. Set-up AWS account

Terraform is used to set up an AWS-based infrastructure to deploy the Thanos chain. For Terraform to function properly, it needs to be integrated with your AWS account.

Create IAM user

  1. In the IAM console, navigate to Users and click Create User.

  1. Enter the User name and click the Next button.

  1. To select the Attach policies directly option and proceed with the deployment, you need most of the permissions for AWS resources, so select AdministratorAccess.

  1. Click the Next button, then click the Create user button to create the user.

  2. On the user screen, click on the newly created user.

  1. In the Security credentials tab, click Create access key.

  1. Select Command Line Interface as the use case and click Next.

  1. Click on Create access key .

  1. Copy and store the Access key and Secret access key.

Copy and securely store the Access key and Secret access key for later use. Ensure they are not exposed to unauthorized access

  1. Configure the settings using the AWS command.

$ aws configure
AWS Access Key ID [****************G3HD]: [ Input your Access Key ID ]
AWS Secret Access Key [****************2suN]: [ Input your Secret Access Key ]
Default region name [ap-northeast-2]: ap-northeast-2
Default output format [json]: json
  1. Use the following command to verify that the registration was successful.

$ aws sts get-caller-identity
{
    "UserId": "AIDA6ODU3FACNHKZTMP2I",
    "Account": "992382494724",
    "Arn": "arn:aws:iam::992382494724:user/thanos-stack"
}

Once the setup is complete, proceed to the next phase

5. Stake TON as an Operator

In the current Thanos Beta release, the operator registration mechanism for TON staking is not yet integrated.

This feature will be introduced in Staking v2.5, which is currently undergoing audit. However, operators who wish to explore staking early can use Staking v1 to stake TON and earn seigniorage rewards.

Note: TON staked in Staking v1 cannot be migrated to Staking v2.5 for operator registration.

6. Tools

To use the Thanos stack, you will need the following tools:

Tool
Version

^2

^1.21

^20

^8

0.2.0

^3

^1.6

^2

^2.1

^1.9

^1.28

^3

PreviousIntroductionNextDeploy contracts

Last updated 3 months ago

The explanation and process for customizing parameters can be found at:

You can input the desired parameters to calculate the fees in the following spreadsheet:

As detailed in our , operators launching a new chain must deposit TON as collateral (optional for now) which is used for challenge mechanism and opportunity for operator to earn seigniorage rewards.

🔗 More details:

🔗 Try Staking v1:

🔗 Staking v1 Guide:

⚙️
Chain Configuration
Thanos Stack Operation Fee Adjustment Spreadsheet
Alchemy
Quicknode
whitepaper
Whitepaper link
Staking v1 link
Guide
git
go
node
pnpm
foundry
make
jq
direnv
aws-cli
terraform
kubectl
helm