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
      • Rollup Hub SDKv1
        • Introduction
        • Getting Started
        • Rollup Stack
          • Thanos Stack
            • Thanos Stack Overview
            • Deployment Guide
              • Devnet
              • Testnet
              • Mainnet
            • Operation Guide
              • Devnet
              • Testnet
            • Integrations
              • Block Explorer
              • Bridge
                • How to use the Bridge?
            • Troubleshooting
      • Rollup Hub (Deprecated)
        • 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
  • Hardware requirements & Software Requirements
  • Deployment Style
  • SDK Setup
  1. Service Guide
  2. Rollup Hub
  3. Rollup Hub SDKv1

Getting Started

Choose the deployment style, install and prepare the SDK for use.

This section guides you through selecting a deployment style, followed by SDK setup.

Note: For both Testnet and Mainnet deployments, the appchain infrastructure is deployed on AWS. Prerequisites and setup details for AWS are provided in the respective deployment sections. Support for additional cloud providers will be introduced in future releases.

Hardware requirements & Software Requirements

Please verify that your system meets these hardware requirements prior to starting the SDK setup.

CPU
RAM
Storage

Minimum

2 vCPU

4

20

Recommended

4 vCPU

8

50

Users must have an AWS account to proceed with Testnet or Mainnet deployment.

Deployment Style

We offer three flexible deployment styles to support a range of developer environments. Choose the one that best fits your needs:


1. Local Machine Deployment (macOS and Linux)

In this approach, the SDK is installed and run directly on your local machine to deploy an appchain.

  • Supports both Devnet and Testnet deployments. (Note : Testnet infra will be deployed in AWS)

  • To use this method, follow the SDK setup instructions in your local machine.


2. EC2-Based Deployment (Preferred Choice)

This method allows you to deploy the appchain from an AWS EC2 instance.

  • Once your EC2 instance is ready and accessible, continue with the SDK setup and deployment process.


3. Docker-Based Deployment

This approach uses a Docker container to deploy the chain.

  • Currently supports Testnet deployments only.

  • Useful for isolated or containerized environments.

  • Once your Docker environment is ready, proceed with the SDK setup and deployment steps.

SDK Setup

Follow these step-by-step instructions to set up the SDK:

  1. curl https://raw.githubusercontent.com/tokamak-network/trh-sdk/main/setup.sh > setup.sh
  2. chmod +x setup.sh
    ./setup.sh
  3. Source the shell config

    MacOS

    source ~/.zshrc

    Linux

    source ~/.bashrc
  4. Verify the installation

    trh-sdk version
    
    ## The expected output of this command
    v0.0.0-${commit-id}

This completes the SDKv1 setup on your instance. You can now proceed to the Rollup Stack section to explore the available stacks and their respective deployment options.

PreviousIntroductionNextRollup Stack

Last updated 3 days ago

Begin by launching and configuring an EC2 instance using this .

To get started, follow this .

Download the file

Run the file

⚙️
step-by-step guide
Docker setup guide
setup.sh
setup.sh