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
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Getting started with publishing via pyth-client
2
2
3
-
The pyth-client repo consists of a C++ library (libpc.a), a command-line administration tool (pyth), a json/websocket-based server (pythd) and a gateway/proxy server for price publishing (pyth_tx).
3
+
The pyth-client repo consists of a C++ library (libpc.a), two command-line administration tools (pyth & pyth_admin), a json/websocket-based server (pythd) and a gateway/proxy server for price publishing (pyth_tx).
4
4
5
5
You can integrate with libpc directly in your application. See `pctest/test_publish.cpp` for an example. Or, you can integrate with the pythd server via json/websockets. See `pctest/test_publish.py` for an example.
6
6
@@ -34,7 +34,7 @@ Once permissioned, you need two additional public keys in the key-store. The id
34
34
Use the init_key_store.sh script to initialize these account keys:
35
35
36
36
```
37
-
KENV=devnet # or mainnet-beta
37
+
KENV=devnet # or testnet, prodbeta
38
38
39
39
# initialize keys for solana devnet
40
40
../pctest/init_key_store.sh $KENV $KDIR
@@ -47,17 +47,17 @@ Once permissioned, you can test your setup by running the test_publish.cpp examp
47
47
48
48
49
49
```
50
-
KHOST=api.devnet.solana.com
50
+
RHOST=api.devnet.solana.com
51
51
THOST=<your_pyth_tx_host>
52
-
./test_publish -k $KDIR -r $KHOST -t $THOST
52
+
./test_publish -k $KDIR -r $RHOST -t $THOST
53
53
```
54
54
55
55
The -r and -t options correspond to the locations of required solana validator and pyth_tx server instances.
56
56
57
57
You can also publish to solana using the pythd server. Start up the server using the same key-store directory and host specification:
58
58
59
59
```
60
-
./pythd -k $KDIR -r $KHOST -t $THOST
60
+
./pythd -k $KDIR -r $RHOST -t $THOST
61
61
```
62
62
63
63
Run the test_publish.py example program on the same host to connect to the pythd server:
@@ -80,7 +80,7 @@ You can run your own pyth_tx instance (recommended) or connect to provided serve
80
80
Start up the pyth_tx server as follows:
81
81
82
82
```
83
-
./pyth_tx -r $KHOST
83
+
./pyth_tx -r $RHOST
84
84
```
85
85
86
86
The -r option points to the IP address of a solana validator node or rpc end-point. It can be the same or different IP address to that passed to test_publish or pythd as long as it corresponds to the same environment.
@@ -91,7 +91,7 @@ The -r option points to the IP address of a solana validator node or rpc end-poi
91
91
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:
92
92
93
93
```
94
-
./pythd -k $KDIR -r $KHOST -w ../dashboard
94
+
./pythd -k $KDIR -r $RHOST -w ../dashboard
95
95
```
96
96
97
97
Connect to the dashboard via http://localhost:8910.
0 commit comments