Last active
May 13, 2021 03:33
-
-
Save yuyasugano/ed76694e466ec8826427efcc668f3686 to your computer and use it in GitHub Desktop.
add a validator into the primary network
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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