⏹️
Truebit on Ethereum v1
  • About Truebit on Ethereum
    • Overview
    • Use Cases
    • Research
    • FAQ
  • Getting Started
    • Install Truebit on Ethereum
    • Truebit on Ethereum Structure
    • Start Docker container
    • Create a Wallet
    • Synchronize the Ethereum Node
    • Start a Truebit on Ethereum Terminal for Each Role
    • Start Truebit on Ethereum
    • Purchase TRU tokens
    • Check Balances
    • Purchase Solver License
    • Start Solve and Verify
    • IPFS connection for distributed file sharing
    • Glossary
  • COMMUNITY
    • Support & More Information
Powered by GitBook
  1. Getting Started

Install Truebit on Ethereum

PreviousFAQNextTruebit on Ethereum Structure

Last updated 1 year ago

The Getting Started Guide has been updated to provide instructions on testing Truebit v1 using Hardhat and a locally forked Ethereum node. This replaces the previous version of the guide, which referenced the . The Goerli testnet is expected to sunset in early 2024, and Truebit recommends updating your test environment as soon as possible.

Install Prerequisites

1. Download & Install

2. Clone the .

git clone https://github.com/TruebitProtocol/truebit-eth

3. Download & Install .

4. Build the Truebit on Ethereum Docker container.

docker pull truebitprotocol/truebit-eth:latest

5. Install hardhat

Create a new directory called "v1" and move into it

npm install hardhat@"2.20.1"
npx hardhat init

Copy the following file into the directory

Open the file and update the field <YOUR_INFURA_API_KEY> with your API KEY generated at the . Copy the following file into the directory.

Verify the Installed version to validate that the installed version corresponds to the "2.20.1"

npx hardhat --version 

6. Register on Infura and get the Infura API Key.

To fork from Ethereum Mainnet, you need a free Infura account.

  • Create a New Project and then click on "Create"

  • After the creation, click on your key

  • Copy the API KEY string

Accessing Truebit on Ethereum Smart Contracts with MetaMask (Optional)

2. Import account from Docker shared folder (keystore).

3. Add TRU token contract to each address.

Ethereum Mainnet
Contract: 0xf65B5C5104c4faFD4b709d9D60a185eAE063276c
Decimals: 18

Create an Infura account

1. Install the browser extension.

Ethereum API | IPFS API & Gateway | ETH Nodes as a Service
MetaMask
deprecated Goerli testnet
Git
Truebit on Ethereum Git repository
Docker
Prerequisites
385B
hardhat.config.ts
My Accounts -> Import Account
Import Account -> Type Json File
Path to get Keystore