Skip to content

Instantly share code, notes, and snippets.

@yuyasugano
Created May 11, 2021 13:17
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/76b7e06ee24a9f942758d6ef26acd66f to your computer and use it in GitHub Desktop.
Save yuyasugano/76b7e06ee24a9f942758d6ef26acd66f to your computer and use it in GitHub Desktop.
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