diff options
author | Mission Liao <mission.liao@dexon.org> | 2019-04-18 16:13:19 +0800 |
---|---|---|
committer | Mission Liao <mission.liao@dexon.org> | 2019-04-18 16:13:19 +0800 |
commit | 26922a3b1338d96eb6c460dd42ddb30623e90d5a (patch) | |
tree | d4f40562780ef83c4fd896cc62f88f4b5158f437 /DEXON-RPC-Node-Operation-Guide.md | |
parent | a94b1d8ff2d5dbcee428a912f37e3c6a89c8519a (diff) | |
download | dexon-wiki-26922a3b1338d96eb6c460dd42ddb30623e90d5a.tar dexon-wiki-26922a3b1338d96eb6c460dd42ddb30623e90d5a.tar.gz dexon-wiki-26922a3b1338d96eb6c460dd42ddb30623e90d5a.tar.bz2 dexon-wiki-26922a3b1338d96eb6c460dd42ddb30623e90d5a.tar.lz dexon-wiki-26922a3b1338d96eb6c460dd42ddb30623e90d5a.tar.xz dexon-wiki-26922a3b1338d96eb6c460dd42ddb30623e90d5a.tar.zst dexon-wiki-26922a3b1338d96eb6c460dd42ddb30623e90d5a.zip |
Add RPC node for testnet
Diffstat (limited to 'DEXON-RPC-Node-Operation-Guide.md')
-rw-r--r-- | DEXON-RPC-Node-Operation-Guide.md | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/DEXON-RPC-Node-Operation-Guide.md b/DEXON-RPC-Node-Operation-Guide.md index 9cba418..5e62a50 100644 --- a/DEXON-RPC-Node-Operation-Guide.md +++ b/DEXON-RPC-Node-Operation-Guide.md @@ -61,4 +61,28 @@ curl -X POST \ You should be able to see something similar in return (**0xd482e** is the hex form of **870062**): ``` {"jsonrpc":"2.0","id":1,"result":"0xd482e"} +``` + +### RPC Node for Testnet + +It simply to launch a RPC node for testnet by adding network flag `--testnet`: +``` +docker run -v $PWD:/mnt -it dexonfoundation/dexon \ + --testnet \ + --datadir=/mnt/datadir \ + --syncmode=fast \ + --rpc \ + --rpcapi=eth,net,web3 \ + --rpcaddr=0.0.0.0 \ + --rpcvhosts=* \ + --rpccorsdomain=* \ + --ws \ + --wsapi=eth,net,web3 \ + --wsaddr=0.0.0.0 \ + --wsorigins=* \ + --cache=1024 \ + --gcmode=archive \ + --metrics \ + --pprof \ + --pprofaddr=0.0.0.0 ```
\ No newline at end of file |