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 Apr 3, 2024
1 parent 8e42c89 commit 06e4577
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/quick-onboarding-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,19 @@ Fill out the `.env` variables for the gateway server. This can be done by inject

See [.env.sample](..%2F.env.sample) for a sample.

## 4. Insert App Stake Private Keys
## 4. Run Migration Script
Run the migration script to seed your PostgreSQL database.
```sh
./scripts/migration.sh -u
```

## 5. Insert App Stake Private Keys
Copy and paste the following SQL query to insert app stake private keys into the database:
```sql
INSERT INTO pokt_applications (encrypted_private_key) VALUES (pgp_sym_encrypt('{private_key}', '{encryption_key}'));
```
_Note: Replace {private_key} and {encryption_key} in the SQL query with your actual private key and encryption key._

## 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.

Expand Down

0 comments on commit 06e4577

Please sign in to comment.