Skip to content

Instantly share code, notes, and snippets.

@yuyasugano
Created May 13, 2021 12:22
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/791a9caf35e0f533ee055d275b83dbd3 to your computer and use it in GitHub Desktop.
Save yuyasugano/791a9caf35e0f533ee055d275b83dbd3 to your computer and use it in GitHub Desktop.
create a blockchain in Avalanche
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