Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
create a subnet in P-Chain Avalanche
$ curl -X POST --data '{
"jsonrpc": "2.0",
"method": "platform.createSubnet",
"params": {
"controlKeys":[
"P-fuji1s3056zrcm36y0pzx5d3g9p5quavvpxk2yhssvp",
"P-fuji16ng9sc5vyy99twvza8fg3xdl0262ryfsmcxcwp"
],
"threshold":2,
"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":"2bFRwRRTmvn64z7LuDq4bzLqfjTtFan8GDiMqk6eok85JG8gvK","changeAddr":"P-fuji1s3056zrcm36y0pzx5d3g9p5quavvpxk2yhssvp"},"id":1}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment