Skip to content

Instantly share code, notes, and snippets.

@yuyasugano
Last active May 13, 2021 03:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yuyasugano/ed76694e466ec8826427efcc668f3686 to your computer and use it in GitHub Desktop.
Save yuyasugano/ed76694e466ec8826427efcc668f3686 to your computer and use it in GitHub Desktop.
add a validator into the primary network
curl -X POST --data '{
"jsonrpc": "2.0",
"method": "platform.addValidator",
"params": {
"nodeID":"NodeID-EggGmnQFaTffeRNG1Kzs9dXJzFGdxac3D",
"startTime":'$(date --date="10 minutes" +%s)',
"endTime":'$(date --date="90 days" +%s)',
"stakeAmount":1000000000,
"rewardAddress":"P-fuji1s3056zrcm36y0pzx5d3g9p5quavvpxk2yhssvp",
"delegationFeeRate":10,
"username": "testuser_jp01",
"password": "<your user password>"
},
"id": 1
}' -H 'content-type:application/json;' 127.0.0.1:9650/ext/P
{"jsonrpc":"2.0","result":{"txID":"2r8b8ZE5Tuc1ARvGM9r8pdqxb6iLb61uTev7M95uxx4uD8cbem","changeAddr":"P-fuji1s3056zrcm36y0pzx5d3g9p5quavvpxk2yhssvp"},"id":1}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment