Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
add a validator into the created subnet
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