Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
Update quick-onboarding-guide.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nodiesBlade authored Mar 28, 2024
1 parent 7b1f34a commit 0b27382
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions docs/quick-onboarding-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,13 @@ INSERT INTO pokt_applications (encrypted_private_key) VALUES (pgp_sym_encrypt('{
```
_Note: Replace {private_key} and {encryption_key} in the SQL query with your actual private key and encryption key._

## 5. Compile and Run Gateway Server
## 5. Run Migration Script
Run the migration script to seed your PostgreSQL database.
```sh
./scripts/migration.sh -u
```

## 6. Compile and Run Gateway Server
Copy and paste the following code to compile and run the gateway server. Hit the endpoint http://localhost/relay/{chain_id} with a JSON-RPC payload.

If using testnet, send a request to chain `0007`, http://localhost/relay/0007. This testnet chain id represents Ethereum Node Operators and Nodies is currently supporting the chain id for reliable testing.
Expand All @@ -67,7 +73,9 @@ If using testnet, send a request to chain `0007`, http://localhost/relay/0007. T
go build cmd/gateway_server/main.go
```

## 6. Setup Chain Configuration and Altruist
Alternatively, you can leverage our published [docker images](https://github.com/pokt-network/gateway-server/pkgs/container/pocket-gateway-server)

## 7. Setup Chain Configuration and Altruist
Upon startup of the gateway server, nodes within a session take time to be marked as healthy (~10 seconds), therefore the requests will be routed to the altruist (failover) node. It is suggested each chain that you support has a configured altruist. You can learn more about supplying altruist configurations through [altruist-chain-configuration.md](altruist-chain-configuration.md).

_Remember to keep sensitive information secure and follow best practices for handling private keys and passwords._

0 comments on commit 0b27382

Please sign in to comment.