You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/getting_started.md
+24-1Lines changed: 24 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ KENV=pythnet # or devnet or mainnet-beta
43
43
44
44
This creates two files: `$KDIR/program_key.json` and `$KDIR/mapping_key.json`.
45
45
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:
47
47
48
48
49
49
```
@@ -52,3 +52,26 @@ KHOST=44.232.27.44 # or devnet.solana.com
52
52
```
53
53
54
54
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