Skip to content

Commit e14d024

Browse files
additional comments on using pythd to publish prices and to access the dashboard web page
1 parent bad19a8 commit e14d024

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

doc/getting_started.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ KENV=pythnet # or devnet or mainnet-beta
4343

4444
This creates two files: `$KDIR/program_key.json` and `$KDIR/mapping_key.json`.
4545

46-
Once pemissioned, you can test your setup by running the test_publish.cpp example program for publishing and subscribing to two test symbols. To test publishing on pythnet you need to run:
46+
Once permissioned, you can test your setup by running the test_publish.cpp example program for publishing and subscribing to two test symbols. To test publishing on pythnet you need to run:
4747

4848

4949
```
@@ -52,3 +52,26 @@ KHOST=44.232.27.44 # or devnet.solana.com
5252
```
5353

5454
The certification environment can be found at the IP address 44.232.27.44. Solana devnet can be found at: devnet.solana.com
55+
56+
You can also publish to solana using the pythd server. Start up the server using the same key-store directory and host specification:
57+
58+
```
59+
./pythd -k $KDIR -r $KHOST
60+
```
61+
62+
Run the test_publish.py example program on the same host to connect to the pythd server:
63+
64+
```
65+
../pctest/test_publish.py
66+
67+
```
68+
69+
## Running the dashboard
70+
71+
The pythd server also exports a dashboard web page for watching the ticking pyth prices. The public key you create above does not need publish-permission to watch the ticking pyth prices. To activate the dashboard page include an additional `-w` argument to pythd pointing at the html/javscript code directory:
72+
73+
```
74+
./pythd -k $KDIR -r $KHOST -w ../dashboard
75+
```
76+
77+
Connect to the dashboard via http://localhost:8910.

0 commit comments

Comments
 (0)