Skip to content

Instantly share code, notes, and snippets.

@yuyasugano
Last active May 13, 2021 12:51
Show Gist options
  • Save yuyasugano/28fa2586396691fc3171c04b68b3fd6a to your computer and use it in GitHub Desktop.
Save yuyasugano/28fa2586396691fc3171c04b68b3fd6a to your computer and use it in GitHub Desktop.
build a genesis state in AVM
curl -X POST --data '{
"jsonrpc": "2.0",
"id" : 1,
"method" : "avm.buildGenesis",
"params" : {
"networkId": 16,
"genesisData": {
"asset1": {
"name": "testFixedCapAsset",
"symbol":"TFCA",
"initialState": {
"fixedCap" : []
}
}
},
"encoding": "cb58"
}
}' -H 'content-type:application/json;' 127.0.0.1:9650/ext/vm/avm
{"jsonrpc":"2.0","result":{"bytes":"11111WdAJwMmBJiYYaZJcCDmqdBhzAKSUNe2xDYhSEEXegyWznPNKkby24NtZK3U82cHgbqPTh1ALM9S8hpZhRo6uhnKNaxiggDHrtV6LBZktr9D3hhUGEWwViT7vp6iWvJVEkvVckf","encoding":"cb58"},"id":1}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment