Created
May 13, 2021 05:15
-
-
Save yuyasugano/a9462c5ad5d9f23a54da3de51a93e8e8 to your computer and use it in GitHub Desktop.
add a validator into the created subnet
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.addSubnetValidator", | |
"params": { | |
"nodeID":"NodeID-EggGmnQFaTffeRNG1Kzs9dXJzFGdxac3D", | |
"subnetID":"2bFRwRRTmvn64z7LuDq4bzLqfjTtFan8GDiMqk6eok85JG8gvK", | |
"startTime":'$(date --date="10 minutes" +%s)', | |
"endTime":'$(date --date="30 days" +%s)', | |
"weight":100, | |
"changeAddr": "P-fuji1s3056zrcm36y0pzx5d3g9p5quavvpxk2yhssvp", | |
"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":"2PieJ6vFtu1Q3RpRfE1EoM3NRhrRJpAQbjKi3NQETyeiHqerEk","changeAddr":"P-fuji1s3056zrcm36y0pzx5d3g9p5quavvpxk2yhssvp"},"id":1} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment