Closed FaisalAli19 closed 2 years ago
Looks like the custom RPC youre using is a devnet RPC, but youre trying to upload on mainnet beta.
Thanks for pointing it out. But right now I am getting this error even though I have selected the nft.storage
Beginning the upload for 10000 (img+json) pairs
started at: 1648656720597
initializing candy machine
Transaction simulation failed: Error processing Instruction 0: custom program error: 0x1
Program 11111111111111111111111111111111 invoke [1]
Transfer: insufficient lamports 999990000, need 16727350800
Program 11111111111111111111111111111111 failed: custom program error: 0x1
Translating error SendTransactionError: failed to send transaction: Transaction simulation failed: Error processing Instruction 0: custom program error: 0x1
at Connection.sendEncodedTransaction (/Users/jinesh/Desktop/Project/tapintech/metaplex/js/node_modules/@solana/web3.js/src/connection.ts:3964:13)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Connection.sendRawTransaction (/Users/jinesh/Desktop/Project/tapintech/metaplex/js/node_modules/@solana/web3.js/src/connection.ts:3921:20)
at async sendAndConfirmRawTransaction (/Users/jinesh/Desktop/Project/tapintech/metaplex/js/node_modules/@solana/web3.js/src/util/send-and-confirm-raw-transaction.ts:27:21)
at async Provider.send (/Users/jinesh/Desktop/Project/tapintech/metaplex/js/node_modules/@project-serum/anchor/src/provider.ts:114:18)
at async Object.rpc [as initializeCandyMachine] (/Users/jinesh/Desktop/Project/tapintech/metaplex/js/node_modules/@project-serum/anchor/src/program/namespace/rpc.ts:19:23)
at async createCandyMachineV2 (/Users/jinesh/Desktop/Project/tapintech/metaplex/js/packages/cli/src/helpers/accounts.ts:156:11)
at async uploadV2 (/Users/jinesh/Desktop/Project/tapintech/metaplex/js/packages/cli/src/commands/upload.ts:148:19)
at async Command.
Airdrop yourself solana on that wallet. Your error "insufficient lamports" is a result of not having enough sol for the tx.
@100xlongx I do have sol in my wallet. But I am trying to upload using the nft.storage option and according to the document no payment is required but for some reason, it's asking for around 16 sol.
creating-candy-machine CAUTION To create a Candy Machine, space is allocated on chain to temporarily store the names and URI links (mirroring what is in your .json file in the .cache directory). To store this data on chain, you are required to pay on chain rent costs. After your mint (or whenever you want to end it), you can run the withdraw command to reclaim all of the rent costs. Check the withdraw section for more details. For a 10k collection, the rent costs are approximately 16.7 SOL. This scales linearly with the number of items in your collection. Thus, you can get an approximate on chain rent cost estimate by multiplying the number of items in your collection by 0.00167 SOL.
Thanks for linking the docs! Closing this issue
Which package is this bug report for?
candy machine cli
Issue description
When uploading the images and JSON using nft.storage keep throwing "Attempt to debit an account but found no record of a prior credit." error.
Here is the config file { "price": 5.0, "number": 10000, "gatekeeper": null, "solTreasuryAccount": "",
"splTokenAccount": null,
"splToken": null,
"goLiveDate": "1st April 2022 00:00:00 GMT",
"endSettings": null,
"whitelistMintSettings": null,
"hiddenSettings": null,
"storage": "nft-storage",
"ipfsInfuraProjectId": null,
"ipfsInfuraSecret": null,
"nftStorageKey": "",
"awsS3Bucket": null,
"noRetainAuthority": false,
"noMutable": false,
"batchSize": 10000
}
Please help me solve this issue. Also is there a way to achieve manual image and json upload ?
Thanks.
Command
Relevant log output
Operating system
Macos
Priority this issue should have
Medium (should be fixed soon)
Check the Docs First