https://github.com/oraichain/oraichain-us-static-file
https://github.com/oraichain/oraichain-us-static-file
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/oraichain/oraichain-us-static-file
- Owner: oraichain
- Archived: true
- Created: 2022-07-18T10:14:10.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-10-26T07:09:39.000Z (over 2 years ago)
- Last Synced: 2025-02-28T12:18:50.329Z (3 months ago)
- Language: Shell
- Size: 20.6 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Add a full node
Preconditional: docker, docker-compose, a name for your node. OS: Linux
Step 1: Download necessary prerequisite files:
```
wget https://raw.githubusercontent.com/oraichain/oraichain-us-static-file/master/fullnode/docker-compose.yml && wget https://raw.githubusercontent.com/oraichain/oraichain-us-static-file/master/fullnode/init.sh
```Step 2: Edit docker-compose.yml file. Let change the value of NODE_NAME & PERSISTENT_PEERS (from environment).
Step 3: run up command.
`docker-compose up -d`
Step 4: Please enter the container and get more info.
`docker-compose exec orain bash`
- get your node status:
> evmosd status
* get your node id:
> evmosd tendermint show-node-id
* check your server port:
> ip_public:1317/blocks/latest
> ip_public:26657/status## Add a validator
Preconditional: docker, docker-compose, a name, mnemonic, password for your node You can generate a mnemonic: https://iancoleman.io/bip39/ or through OWallet, Keplr wallet.
Step 1: Download necessary prerequisite files:
```
wget https://raw.githubusercontent.com/oraichain/oraichain-us-static-file/master/validator/docker-compose.yml && wget https://raw.githubusercontent.com/oraichain/oraichain-us-static-file/master/validator/init.sh
```Step 2: Edit docker-compose.yml file. Let change the value of NODE_NAME & PERSISTENT_PEERS (from environment).
Example for the list of persistent peers in the docker-compose file: [email protected]:26656,[email protected]:26656
Current usable persistent peers:
```
[email protected]:25656
```Step 3: run up command.
`docker-compose up -d`
Step 4: Please enter the container and setup your validator node.
`docker-compose exec orain bash`
Step 5: Create your validator key. Run below command and following the instruction (need to input mnemonic and password)
`evmosd keys add validator_key --recover`
Step 6: After your validator node synced successfully, you can create validator account. (You need some orain) Please enter the container and run bellow command (you can change your content)
```
evmosd tx staking create-validator \
--amount=1aorain \
--pubkey=$(evmosd tendermint show-validator) \
--moniker="validator" \
--website="https://orai.io" \
--details="To infinity and beyond!" \
--chain-id=oraichainpro_66666-1 \
--commission-rate="0.05" \
--commission-max-rate="1" \
--commission-max-change-rate="0.01" \
--min-self-delegation="1" \
--gas="auto" \
--gas-adjustment="1.5" \
--from=validator_key -y -b block
```Step 8: Please enter the container and get more info.
`docker-compose exec orain bash`
- get your node status:
> evmosd status