我正在运行以下命令来列出devnet上的NFT。
ts-node src/auction-house-cli.ts sell
-k /Users/wizard/.config/solana/devnet.json
-ah 7sghryHrhZ48DKAt8jCtaZGcX9DioVzykwAeqQhwstKn
--buy-price 1
--mint DJPcJZkmpazb75Eu2moXjt8dfE2sTqxeZAWH6fYEFu4Q
--token-size 1
返回输出
wallet public key: 6SNzXuypAYyC7U41c4J6i7X5XGe9J6fG2w3iZPpoJgAV
Using cluster devnet
Rejected via websocket { InstructionError: [ 0, { Custom: 1 } ] }
Timeout Error caught {
err: { InstructionError: [ 0, [Object] ] },
slot: 145039789,
confirmations: 0
}
/Users/wizard/metaplex-folder/metaplex/js/packages/cli/src/helpers/transactions.ts:136
throw new Error(
^
Error: Transaction failed: Transfer 897840 lamports to the new account
at sendSignedTransaction (/Users/wizard/metaplex-folder/metaplex/js/packages/cli/src/helpers/transactions.ts:136:19)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async sendTransactionWithRetryWithKeypair (/Users/wizard/metaplex-folder/metaplex/js/packages/cli/src/helpers/transactions.ts:59:26)
at async Command.<anonymous> (/Users/wizard/metaplex-folder/metaplex/js/packages/cli/src/auction-house-cli.ts:329:5)
我的钱包地址:6SNzXuypAYyC7U41c4J6i7X5XGe9J6fG2w3iZPpoJgAV有我试图列出的NFT和用于支付交易的SOL。我做错了什么?
您的费用账户是空的,似乎您还没有加满。
您可以使用以下命令检查费用账户中的金额:
ts-node src/auction-house-cli.ts show -k <wallet_location> -ah <auction_house_key>
你的输出很可能会显示:
Fee Payer Bal: 0
您可以在此处阅读有关费用账户的更多信息:https://docs.metaplex.com/auction-house/cli#fee-账户
最重要的是,您可以简单地将airdrop
SOL转换为FeeAccount
。更准确地说,您需要将897840
lamports转移到您的FeeAccount,如错误消息中所述