metaplex-foundation / metaplex

A directory of what the Metaplex Foundation works on!
https://metaplex.com
Apache License 2.0
3.32k stars 6.26k forks source link

Getting 0x1 wrror during uploading when using v2 #1399

Closed prashantcrypto closed 2 years ago

prashantcrypto commented 2 years ago

npx ts-node metaplex\js\packages\cli\src\candy-machine-v2-cli.ts upload -k keypair.json -e mainnet-beta -l debug -cp config-v2 assests setting the log value to: debug wallet public key: *** program id from anchor ** Beginning the upload for 50 (img+json) pairs started at: 1641352755893 Size 50 { mediaExt: '.png', index: '0' } initializing candy machine Transaction simulation failed: Error processing Instruction 0: custom program error: 0x1 Program 11111111111111111111111111111111 invoke [1] Transfer: insufficient lamports 30888954, need 89554320 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 (F:\mehta\Metaplex yarn installed\metaplex\js\packages\cli\node_modules\@solana\web3.js\src\connection.ts:3553:13) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async Connection.sendRawTransaction (F:\mehta\Metaplex yarn installed\metaplex\js\packages\cli\node_modules\@solana\web3.js\src\connection.ts:3513:20) at async sendAndConfirmRawTransaction (F:\mehta\Metaplex yarn installed\metaplex\js\packages\cli\node_modules\@solana\web3.js\src\util\send-and-confirm-raw-transaction.ts:27:21) at async Provider.send (F:\mehta\Metaplex yarn installed\metaplex\js\packages\cli\node_modules\@project-serum\anchor\src\provider.ts:114:18) at async Object.rpc [as initializeCandyMachine] (F:\mehta\Metaplex yarn installed\metaplex\js\packages\cli\node_modules\@project-serum\anchor\src\program\namespace\rpc.ts:19:23) at async createCandyMachineV2 (F:\mehta\Metaplex yarn installed\metaplex\js\packages\cli\src\helpers\accounts.ts:150:11) at async uploadV2 (F:\mehta\Metaplex yarn installed\metaplex\js\packages\cli\src\commands\upload.ts:133:21) at async Command. (F:\mehta\Metaplex yarn installed\metaplex\js\packages\cli\src\candy-machine-v2-cli.ts:183:7) { logs: [ 'Program 11111111111111111111111111111111 invoke [1]', 'Transfer: insufficient lamports 30888954, need 89554320', 'Program 11111111111111111111111111111111 failed: custom program error: 0x1' ] } Error deploying config to Solana network. SendTransactionError: failed to send transaction: Transaction simulation failed: Error processing Instruction 0: custom program error: 0x1 at Connection.sendEncodedTransaction (F:\mehta\Metaplex yarn installed\metaplex\js\packages\cli\node_modules\@solana\web3.js\src\connection.ts:3553:13) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async Connection.sendRawTransaction (F:\mehta\Metaplex yarn installed\metaplex\js\packages\cli\node_modules\@solana\web3.js\src\connection.ts:3513:20) at async sendAndConfirmRawTransaction (F:\mehta\Metaplex yarn installed\metaplex\js\packages\cli\node_modules\@solana\web3.js\src\util\send-and-confirm-raw-transaction.ts:27:21) at async Provider.send (F:\mehta\Metaplex yarn installed\metaplex\js\packages\cli\node_modules\@project-serum\anchor\src\provider.ts:114:18) at async Object.rpc [as initializeCandyMachine] (F:\mehta\Metaplex yarn installed\metaplex\js\packages\cli\node_modules\@project-serum\anchor\src\program\namespace\rpc.ts:19:23) at async createCandyMachineV2 (F:\mehta\Metaplex yarn installed\metaplex\js\packages\cli\src\helpers\accounts.ts:150:11) at async uploadV2 (F:\mehta\Metaplex yarn installed\metaplex\js\packages\cli\src\commands\upload.ts:133:21) at async Command. (F:\mehta\Metaplex yarn installed\metaplex\js\packages\cli\src\candy-machine-v2-cli.ts:183:7) { logs: [ 'Program 11111111111111111111111111111111 invoke [1]', 'Transfer: insufficient lamports 30888954, need 89554320', 'Program 11111111111111111111111111111111 failed: custom program error: 0x1' ] } upload was not successful, please re-run. SendTransactionError: failed to send transaction: Transaction simulation failed: Error processing Instruction 0: custom program error: 0x1 at Connection.sendEncodedTransaction (F:\mehta\Metaplex yarn installed\metaplex\js\packages\cli\node_modules\@solana\web3.js\src\connection.ts:3553:13) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async Connection.sendRawTransaction (F:\mehta\Metaplex yarn installed\metaplex\js\packages\cli\node_modules\@solana\web3.js\src\connection.ts:3513:20) at async sendAndConfirmRawTransaction (F:\mehta\Metaplex yarn installed\metaplex\js\packages\cli\node_modules\@solana\web3.js\src\util\send-and-confirm-raw-transaction.ts:27:21) at async Provider.send (F:\mehta\Metaplex yarn installed\metaplex\js\packages\cli\node_modules\@project-serum\anchor\src\provider.ts:114:18) at async Object.rpc [as initializeCandyMachine] (F:\mehta\Metaplex yarn installed\metaplex\js\packages\cli\node_modules\@project-serum\anchor\src\program\namespace\rpc.ts:19:23) at async createCandyMachineV2 (F:\mehta\Metaplex yarn installed\metaplex\js\packages\cli\src\helpers\accounts.ts:150:11) at async uploadV2 (F:\mehta\Metaplex yarn installed\metaplex\js\packages\cli\src\commands\upload.ts:133:21) at async Command. (F:\mehta\Metaplex yarn installed\metaplex\js\packages\cli\src\candy-machine-v2-cli.ts:183:7) { logs: [ 'Program 11111111111111111111111111111111 invoke [1]', 'Transfer: insufficient lamports 30888954, need 89554320', 'Program 11111111111111111111111111111111 failed: custom program error: 0x1' ] }

*Desktop window 10

i am using candy-machiev2

Solseum commented 2 years ago

The error is super clear, you need more SOL. For 500NFTs yiu need 0.84 SOL for rent + arweave cost + fees so with 1 SOL you should have enough