Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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