我如何将自定义帐户设置为托盘余额?
How can i set custom account to pallet balances?
我用过
托盘天平有默认账户。
我创建并编辑了一个 chainspec json 文件
"palletBalances": {
"balances": [
[
"5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY", //Alice
1152921504606846976
],
[
"5Fem9dGJe9a6CxuGdFmpuNusGJ1GJ5CvYG78fnjngAbwY3D6",//Custom
1152921504606846976
],
[
"5EZX3rWueuPSVag6TT34G1mJmJLQZcVNiSqxSdjSoMnYoFkG",//Custom
1152921504606846976
]
]
},
"palletSudo": {
"key": "5Ffm9dHJe9a6CxuGdFmpuNusGJ1GJ5CvYG78fnjngAbwY3D6"
}
当我运行 substrate-front-end-template
我看不到我的帐户
5Fem9dGJe9a6CxuGsFmpuNusGJ1GJ8CvYG78fnjngAbwY3D6
5EZX3rWueuPSVag6Tt34G1mJmJLqZcVNiSqxSdjSoMnYoFkG
如何在托盘平衡中添加自定义帐户?
您需要确保您的密钥环中有密钥。 here is where they are loaded - the easiest way to manage these is via the https://polkadot.js.org/extension/ and I would highly recommend using that. Then the accounts will appear on the frontend template. You should see the endowed accounts in the chain state, if you query for it. Here is an example
我用过
托盘天平有默认账户。 我创建并编辑了一个 chainspec json 文件
"palletBalances": {
"balances": [
[
"5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY", //Alice
1152921504606846976
],
[
"5Fem9dGJe9a6CxuGdFmpuNusGJ1GJ5CvYG78fnjngAbwY3D6",//Custom
1152921504606846976
],
[
"5EZX3rWueuPSVag6TT34G1mJmJLQZcVNiSqxSdjSoMnYoFkG",//Custom
1152921504606846976
]
]
},
"palletSudo": {
"key": "5Ffm9dHJe9a6CxuGdFmpuNusGJ1GJ5CvYG78fnjngAbwY3D6"
}
当我运行 substrate-front-end-template 我看不到我的帐户
5Fem9dGJe9a6CxuGsFmpuNusGJ1GJ8CvYG78fnjngAbwY3D6
5EZX3rWueuPSVag6Tt34G1mJmJLqZcVNiSqxSdjSoMnYoFkG
如何在托盘平衡中添加自定义帐户?
您需要确保您的密钥环中有密钥。 here is where they are loaded - the easiest way to manage these is via the https://polkadot.js.org/extension/ and I would highly recommend using that. Then the accounts will appear on the frontend template. You should see the endowed accounts in the chain state, if you query for it. Here is an example