Install Truebit on Ethereum
Last updated
Last updated
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 deprecated Goerli testnet. The Goerli testnet is expected to sunset in early 2024, and Truebit recommends updating your test environment as soon as possible.
1. Download & Install Git
2. Clone the Truebit on Ethereum Git repository.
3. Download & Install Docker.
4. Build the Truebit on Ethereum Docker container.
5. Install hardhat
Create a new directory called "v1" and move into it
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 Prerequisites. Copy the following file into the directory.
Verify the Installed version to validate that the installed version corresponds to the "2.20.1"
6. Register on Infura and get the Infura API Key.
To fork from Ethereum Mainnet, you need a free Infura account.
Create an Infura account Ethereum API | IPFS API & Gateway | ETH Nodes as a Service
Create a New Project and then click on "Create"
After the creation, click on your key
Copy the API KEY string
1. Install the MetaMask browser extension.
2. Import account from Docker shared folder (keystore).
3. Add TRU token contract to each address.