我正在尝试完成上传步骤以部署糖果机,我得到以下输出

I'm trying to complete the upload step to deploy a candy machine and I get the below output

我正在尝试完成上传步骤以部署糖果机,我使用的是 Metaplex v2,我使用的是 devnet(未使用 minnet-beta)和“storage”:“arweave”也设置为 devnet 但我仍然收到以下输出错误:

编辑:谢谢你的建议,实际上我已经检查了我的余额,它是 0 然后添加到 SOL 现在它运行良好!


Beginning the upload for 10 (img+json) pairs
started at: 1642285341323
initializing candy machine
Transaction simulation failed: Attempt to debit an account but found no record of a prior credit. 
    
Translating error SendTransactionError: failed to send transaction: Transaction simulation failed: Attempt to debit an account but found no record of a prior credit.
    at Connection.sendEncodedTransaction (/Users/aziz/Desktop/nft/test/metaplex/js/node_modules/@solana/web3.js/src/connection.ts:3689:13)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Connection.sendRawTransaction (/Users/aziz/Desktop/nft/test/metaplex/js/node_modules/@solana/web3.js/src/connection.ts:3649:20)
    at async sendAndConfirmRawTransaction (/Users/aziz/Desktop/nft/test/metaplex/js/node_modules/@solana/web3.js/src/util/send-and-confirm-raw-transaction.ts:27:21)
    at async Provider.send (/Users/aziz/Desktop/nft/test/metaplex/js/packages/cli/node_modules/@project-serum/anchor/src/provider.ts:114:18)
    at async Object.rpc [as initializeCandyMachine] (/Users/aziz/Desktop/nft/test/metaplex/js/packages/cli/node_modules/@project-serum/anchor/src/program/namespace/rpc.ts:19:23)
    at async createCandyMachineV2 (/Users/aziz/Desktop/nft/test/metaplex/js/packages/cli/src/helpers/accounts.ts:149:11)
    at async uploadV2 (/Users/aziz/Desktop/nft/test/metaplex/js/packages/cli/src/commands/upload.ts:134:19)
    at async Command.<anonymous> (/Users/aziz/Desktop/nft/test/metaplex/js/packages/cli/src/candy-machine-v2-cli.ts:184:7) {
  logs: []
}
Error deploying config to Solana network. SendTransactionError: failed to send transaction: Transaction simulation failed: Attempt to debit an account but found no record of a prior credit.
    at Connection.sendEncodedTransaction (/Users/aziz/Desktop/nft/test/metaplex/js/node_modules/@solana/web3.js/src/connection.ts:3689:13)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Connection.sendRawTransaction (/Users/aziz/Desktop/nft/test/metaplex/js/node_modules/@solana/web3.js/src/connection.ts:3649:20)
    at async sendAndConfirmRawTransaction (/Users/aziz/Desktop/nft/test/metaplex/js/node_modules/@solana/web3.js/src/util/send-and-confirm-raw-transaction.ts:27:21)
    at async Provider.send (/Users/aziz/Desktop/nft/test/metaplex/js/packages/cli/node_modules/@project-serum/anchor/src/provider.ts:114:18)
    at async Object.rpc [as initializeCandyMachine] (/Users/aziz/Desktop/nft/test/metaplex/js/packages/cli/node_modules/@project-serum/anchor/src/program/namespace/rpc.ts:19:23)
    at async createCandyMachineV2 (/Users/aziz/Desktop/nft/test/metaplex/js/packages/cli/src/helpers/accounts.ts:149:11)
    at async uploadV2 (/Users/aziz/Desktop/nft/test/metaplex/js/packages/cli/src/commands/upload.ts:134:19)
    at async Command.<anonymous> (/Users/aziz/Desktop/nft/test/metaplex/js/packages/cli/src/candy-machine-v2-cli.ts:184:7) {
  logs: []
}
upload was not successful, please re-run. SendTransactionError: failed to send transaction: Transaction simulation failed: Attempt to debit an account but found no record of a prior credit.
    at Connection.sendEncodedTransaction (/Users/aziz/Desktop/nft/test/metaplex/js/node_modules/@solana/web3.js/src/connection.ts:3689:13)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Connection.sendRawTransaction (/Users/aziz/Desktop/nft/test/metaplex/js/node_modules/@solana/web3.js/src/connection.ts:3649:20)
    at async sendAndConfirmRawTransaction (/Users/aziz/Desktop/nft/test/metaplex/js/node_modules/@solana/web3.js/src/util/send-and-confirm-raw-transaction.ts:27:21)
    at async Provider.send (/Users/aziz/Desktop/nft/test/metaplex/js/packages/cli/node_modules/@project-serum/anchor/src/provider.ts:114:18)
    at async Object.rpc [as initializeCandyMachine] (/Users/aziz/Desktop/nft/test/metaplex/js/packages/cli/node_modules/@project-serum/anchor/src/program/namespace/rpc.ts:19:23)
    at async createCandyMachineV2 (/Users/aziz/Desktop/nft/test/metaplex/js/packages/cli/src/helpers/accounts.ts:149:11)
    at async uploadV2 (/Users/aziz/Desktop/nft/test/metaplex/js/packages/cli/src/commands/upload.ts:134:19)
    at async Command.<anonymous> (/Users/aziz/Desktop/nft/test/metaplex/js/packages/cli/src/candy-machine-v2-cli.ts:184:7) {
  logs: []
} ```

Please let me know if you have the other question.
Can you please help me with that and thanks to you in advance!

检查您正在使用的钱包密钥对中是否有资金。

solana balance

然后用 -cp 选项仔细检查您使用的配置文件。

显示您的确切命令 运行 也会很有用。

根据metaplex candy machine v2 document,这是最低配置:

{
    "price": 1.0,
    "number": 10,
    "gatekeeper": null,
    "solTreasuryAccount": "<YOUR WALLET ADDRESS>",
    "splTokenAccount": null,
    "splToken": null,
    "goLiveDate": "25 Dec 2021 00:00:00 GMT",
    "endSettings": null,
    "whitelistMintSettings": null,
    "hiddenSettings": null,
    "storage": "arweave-sol",
    "ipfsInfuraProjectId": null,
    "ipfsInfuraSecret": null,
    "awsS3Bucket": null,
    "noRetainAuthority": false,
    "noMutable": false
}

所以,您应该输入您的开发网络帐户 public 密钥而不是 solTreasuryAccount

用于创建此钱包

solana-keygen new --outfile ~/.config/solana/devnet.json

从上面的命令,你有生成钱包的public密钥。我们称它为 devnet-wallet-pubkey,所以为了空投一些 sol(再次重复此命令以获得足够的 sol):

solana airdrop 2 devnet-wallet-pubkey

现在您可以放置​​这个钱包 public 密钥而不是那个 solTreasuryAccount。