Created
May 13, 2021 12:22
-
-
Save yuyasugano/791a9caf35e0f533ee055d275b83dbd3 to your computer and use it in GitHub Desktop.
create a blockchain in 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.createBlockchain", | |
"params" : { | |
"subnetID": "2bFRwRRTmvn64z7LuDq4bzLqfjTtFan8GDiMqk6eok85JG8gvK", | |
"vmID":"avm", | |
"name":"New test AVM", | |
"genesisData": "11111WdAJwMmBJiYYaZJcCDmqdBhzAKSUNe2xDYhSEEXegyWznPNKkby24NtZK3U82cHgbqPTh1ALM9S8hpZhRo6uhnKNaxiggDHrtV6LBZktr9D3hhUGEWwViT7vp6iWvJVEkvVckf", | |
"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":"dNHknFVgmxc3snHtDmvhXwanDTderFRMPYjRv5kSyNRqej4hR","changeAddr":"P-fuji1s3056zrcm36y0pzx5d3g9p5quavvpxk2yhssvp"},"id":1} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment