- VPS server with 1 CPU and 2G mem
- Static public IP
- Golang ^1.12
git clone https://github.com/fsn-dev/dcrm-walletService.git
cd dcrm-walletService && make
First generate the node key:
cd bin/cmd
./gdcrm --genkey node1.key
then run the dcrm node 7x24 in the background:
nohup ./gdcrm --nodekey node1.key &
default port: 4449
example dcrm_getEnode()
curl --location --request POST 'http://52.78.219.113:4449' \
--header 'Content-Type: application/json' \
--data-raw '{
"jsonrpc":"2.0",
"method":"dcrm_getEnode",
"params":[],
"id":67
}'
# return
# {
# "jsonrpc": "2.0",
# "id": 67,
# "result": {
# "Data": {
# "Enode": "enode://7d55f2cf654d5d8ab52158ac3513c132160969c5608c8cc5e4d9dae889d1d10cfb6ad963727cb36b93b8f18718f8d9da6aaad5bb5df32eeae62b2a4165c37b27@172.31.29.222:4441",
# "Status": "OnLine"
# },
# "Error": "",
# "Status": "Success",
# "Tip": ""
# }
# }
see more json rpc api