Skip to content
TechPay
  • Website
  • GitHub
  • Discord
  • Twitter
Search
TechPay
  • betterdocs_homepage

Quick Start

  • Short Guide

Staking

  • Quick start
  • Overview
  • Stake on TechPay
  • Run a Validator Node
  • Run a Read-only node
  • Run a Testnet Validator
  • Testnet Faucet
  • Troubleshooting
  • Run a Full node
  • Run a Testnet read node

API

  • Public API endpoints
  • Getting Started
  • Installation
  • GraphQL Schema Basics
  • Schema Structure
  • Implementation Details and Notes
  • Covalent indexing and querying API

Tutorials

  • Set up metamask wallet
  • Deploy a Smart Contract
  • Set up Metamask (testnet)
  • Verify a Deployed Smart Contract
  • Create a Fixed-cap Asset
  • Create a Variable-cap Asset
  • Create a Local Test Network

Technology

  • Overview
  • Sirius pBFT
  • Proof of Stake
  • Transaction Fees
  • FAQ

How to use Ledger Nano with TechPay

  • Manage TechPay Assets with Ledger Nano S
  • How to Navigate techPay TPC
  • How to Check Your Account Balance
  • How to Receive TechPay Assets
  • How to Send TechPay Assets
  • Ledger FAQ
  • Home
  • Docs
  • Staking
  • Run a Testnet read node

Run a Testnet read node

Table of Contents
  • Requirements
    • Network Settings
  • Install Required Tools
    • Install Go
    • Validate your Go installation
      • Install Photon
  • Download genesis file

Requirements #

  • Minimum hardware requirements: AWS EC2 m5.large with 8GB RAM, 2 vCPUs and at least 300GB of Amazon EBS General Purpose SSD (gp2) storage (or equivalent).
  • We would recommend going with Ubuntu Server 20.04 LTS (64-bit).

Network Settings #

Open up port 22 for SSH, as well as port 7946 for both TCP and UDP traffic. A custom port can be used with “–port <port>” flag when run your opera node.

Install Required Tools #

You are still logged in as the new user via SSH. Now we are going to install Go and Photon.
First, install the required build tools:

# Install build-essential
(validator)$ sudo apt-get install -y build-essential

Install Go #

# Install go
(validator)$ wget https://dl.google.com/go/go1.15.10.linux-amd64.tar.gz
(validator)$ sudo tar -xvf go1.15.10.linux-amd64.tar.gz
(validator)$ sudo mv go /usr/local

Export the required Go paths:

# Export go paths
$ vi ~/.bash_aliases
# Append the following lines
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH

Validate your Go installation #

Install Photon #

# Install Photon
(validator)$ git clone https://github.com/TechPay-io/go-photon.git
(validator)$ cd go-photon/
(validator)$ make

Validate your Photon installation:

$./build/photon version

VERSION:
1.0.2-rc.5

Download genesis file #

Start the Photon read-only node using old genesis file ‘testnet.g’.

# Start opera node
(validator)$ cd build/
(validator)$ wget https://photon.techpay.io/testnet.g
(validator)$ nohup ./opera --genesis testnet.g --nousb &

You can start a node with a syncmode flag. There are two possible options “–syncmode snap” and “–syncmode full”. The default is full syncmode.

For archive node and validator node, you should use full syncmode.

What are your Feelings
Run a Full node
Table of Contents
  • Requirements
    • Network Settings
  • Install Required Tools
    • Install Go
    • Validate your Go installation
      • Install Photon
  • Download genesis file

Copyright © 2023 TechPay