aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMission Liao <mission.liao@dexon.org>2019-04-18 14:50:32 +0800
committerMission Liao <mission.liao@dexon.org>2019-04-18 14:50:32 +0800
commitaeb13ac1ed709199b64d13fac1fd140671f9d2a8 (patch)
tree2f35a28e13275084206139041b031af4fffaf2ab
parentf5e269a9eda2f6dab322106229613d4d3ad073e5 (diff)
downloaddexon-wiki-aeb13ac1ed709199b64d13fac1fd140671f9d2a8.tar
dexon-wiki-aeb13ac1ed709199b64d13fac1fd140671f9d2a8.tar.gz
dexon-wiki-aeb13ac1ed709199b64d13fac1fd140671f9d2a8.tar.bz2
dexon-wiki-aeb13ac1ed709199b64d13fac1fd140671f9d2a8.tar.lz
dexon-wiki-aeb13ac1ed709199b64d13fac1fd140671f9d2a8.tar.xz
dexon-wiki-aeb13ac1ed709199b64d13fac1fd140671f9d2a8.tar.zst
dexon-wiki-aeb13ac1ed709199b64d13fac1fd140671f9d2a8.zip
Add overview
-rw-r--r--DEXON-RPC-Node-Operation-Guide.md12
1 files changed, 9 insertions, 3 deletions
diff --git a/DEXON-RPC-Node-Operation-Guide.md b/DEXON-RPC-Node-Operation-Guide.md
index 2538e20..9cba418 100644
--- a/DEXON-RPC-Node-Operation-Guide.md
+++ b/DEXON-RPC-Node-Operation-Guide.md
@@ -6,6 +6,12 @@
- [System Requirement](#system-requirement)
- [Software Instruction](#software-instruction)
+## Overview
+
+A RPC node is the data access layer of blockchains. It usually won't join the mining process but only try to sync the latest confirmed state from other nodes. With those datum in hands, a RPC node can provide these functionalities:
+- Pack and send transactions
+- Allow other services (like **wallet** or **explorer**) to access states on blockchains in standard way, like **jsonrpc**.
+
## System Requirement
Refer to [System requirement](https://dexon-foundation.github.io/wiki/DEXON-BP-Node-Operation-Guide.html#system-requirement) section in BP node operation guide.
@@ -16,7 +22,7 @@ Different from running a BP node, you don't have to
- create a node key
- register your node
-The command line to start the node is different.
+The command line to start a RPC node is different, too:
```
docker run -v $PWD:/mnt -it dexonfoundation/dexon \
--datadir=/mnt/datadir \
@@ -45,14 +51,14 @@ INFO [04-18|12:23:37.714] Imported new block receipts ...
INFO [04-18|12:23:38.471] Imported new block receipts ...
...
```
-To make sure your RPC node is ready for usage, you can try to get current block number it holds via this command:
+To make sure your RPC node is ready for usage, you can try to get the count of blocks it received via this command:
```
curl -X POST \
-H "Content-Type: application/json" \
--data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' \
http://localhost:8545
```
-You should be able to see something similar in return:
+You should be able to see something similar in return (**0xd482e** is the hex form of **870062**):
```
{"jsonrpc":"2.0","id":1,"result":"0xd482e"}
``` \ No newline at end of file