Initial Setup
Build and Configure layerd
There are 9 steps in this part.
Clone the Layer repo, change directory to
layer
Build layerd with the command:
An ethereum RPC is used for reporting tellor bridge transactions Using your favorite text editor, create a file called
secrets.yaml
:
Add this code to the file, replacing `your_sepolia_testnet_rpc_url` with the url of a reliable sepolia rpc:
Exit nano with ctrl^x
then enter y
to save the changes.
Add variables to .bashrc (or .zshrc) Setting variables in .bashrc or .zshrc is not required, but it helps to avoid many common errors.
Open your .bashrc
or .zshrc
file:
Add these lines at the end, editing NODE_MONIKER
be to whatever you'd like to name your node. Edit the ACCOUNT_NAME to whatever you'd like to call your wallet account:
Exit nano with ctrl^x
then enter y
to save the changes.
Restart your terminal, or use source ~/.bashrc
before you continue. (if Linux) Restart your terminal, or use source ~/.zshrc
before you continue. (if mac)
Note: We may need to reset the chain again as we are still cooking. This causes the
TELLORNODE_ID
to change. You can check the current correct id with:
Initialize .layer folder in your home directory
Create and Run the configure_layer script We need to change the config files a bit using one of the provided
configure_layer_nix.sh
orconfigure_layer_mac.sh
scripts from the layerdocs repo.If on linux:
create the script file locally:
Navigate here, select all and copy the code to your clipboard.
Paste the code, then exit nano with
ctrl^x
then entery
to save the changes.
If on Mac:
create the script file locally:
Navigate here, select all and copy the code to your clipboard.
Paste the code, then exit nano with
ctrl^x
then entery
to save the changes.
Give your new script permission to execute and run it to replace the default configs with proper layer chain configs:
You're now ready to start your node with default sync settings. If you want to do a state sync, do the additional config steps here before you continue.
Last updated