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