我是区块链的新手,我正在尝试使用区块链,所以我使用 metaplex 和糖果机来上传和铸造虚拟 nft,它工作正常。我正在使用的开源存储库如下:
https://github.com/metaplex-foundation/metaplex https://github.com/exiled-apes/candy-machine-mint
然后出于学习的目的,我想将铸币和二级销售分成多个钱包,所以我更改了 JSON 并将三个测试钱包添加到创建者的数组中。
{
"name": "#0",
"symbol": "%$%",
"description": "description goes here",
"seller_fee_basis_points": 500,
"image": "image.png",
"external_url": "",
"edition": 0,
"attributes": [
{
"trait_type": "Background",
"value": "Street"
}
],
"properties": {
"files": [
{
"uri": "image.png",
"type": "image/png"
}
],
"category": "image",
"creators": [
{
"address": "<public address 1>",
"share": 34
},
{
"address": "<public address 1>",
"share": 33
},
{
"address": "<public address 1>",
"share": 33
}
]
}
}
但问题是分裂发生在二级销售而不是铸币上。在将钱包设置为国库资源时,将获得所有金额。我也想在铸币时拆分交易金额。