在 Solana 中创建 Fungible 代币时出现非 base58 字符错误
我正在尝试使用 metaplex 创建可替代令牌(这里)
其余工作正常,但发送交易时出现错误。
我发现添加交易中的
createCreateMetadataAccountV2Instruction
在指南中有不同类型的道具。如果我为此使用打字稿,它会抛出createMetadataAccountArgsV2 is not a type of PublicKey
.
所以我检查了
@metaplex-foundation/mpl-token-metadata
,它的道具是account: createMetadataAccountV2InstructionAccounts
和programId?: PublicKey
,这与here不同。
如何在
createCreateMetadataAccountV2Instruction
中传递参数?
或者如果这不是问题,项目有什么问题(我只是复制并粘贴指南)?
回答如下: