Questions tagged [solana-program-library]

90 questions
0
votes
2 answers

Add Multiple wallet addresses in the whiteListMintSetting using candy machine v2

I am working on a project where I want to pass multiple address as whitelist which can mint before the public mint, I want to know how can I pass multiple addresses in whitelListMintSetting, like "whitelistMintSettings": { "mode" : {…
0
votes
1 answer

Token.createAccount vs Token.createInitAccountInstruction vs Token.createTransferInstruction in solana. What is the difference

I am new to solana and exploring the things. I came across these terms SystemProgram.createAccount Token.createInitAccountInstruction Token.createTransferInstruction What is the difference between these three?
0
votes
1 answer

Transaction failing while transferring NFT on solana: Error processing Instruction 0: custom program error: 0x1

Error: Failed to send transaction: Transaction simulation failed: Error processing Instruction 0: custom program error: 0x1. Getting this error when transferring the NFT token. After looking up the error code 0x1 from here, got to know that the…
0
votes
0 answers

How Can You Create a Solana PDA and then add Data to it?

I have figured out how to create a PDA in the rust contract, but each time I try to serialize the data into the new PDA account, it fails with the following message: WalletSendTransactionError: failed to send transaction: Transaction simulation…
0
votes
0 answers

Bundling Multiple instructions in one Solana SPL transaction - React App

So I'm trying to create a transaction in a React App that bundles multiple instructions. The fromWallet is captured using the wallet adapter and the useAnchorWallet hook. The toWallet is specified with a web3 PublicKey that I'm specifying. My…
0
votes
0 answers

Another way of binding the instructions

I know the most common and recommended way is separate "initialize" and "update" instructions and pack them inside the single transaction in the client-side. However, I am wondering is there any way to achieve the kind of logic on the…
0
votes
0 answers

When I run this command to deploy the solana contract this error is reported

So when I run this ts-node C:\Users\ras zebi\Desktop\solana boobs\metaplex-master\js\packages\cli\src\candy-machine-v-cli.ts upload -e devnet -k C:\Users\ras zebi\Desktop\solana boobs\keypair\my-keypair.json -cp C:\Users\ras zebi\Desktop\solana…
0
votes
0 answers

how to create a transaction to burn SPL tokens in react app?

I wrote a function burnSplToken which takes two inputs: (account(wallet address): string, {account(token address): string, amount: number(token amount)}) I am trying to create a transaction to burn specific amount of tokens. But it's giving me a…
0
votes
1 answer

solana rpc get_program_accounts_with_config return Tokenkeg... excluded from account secondary indexes

curl versions working fine curl http://api.mainnet-beta.solana.com -X POST -H "Content-Type: application/json" -d ' { "jsonrpc": "2.0", "id": 1, "method": "getProgramAccounts", "params": [ …
katopz
  • 591
  • 6
  • 14
0
votes
1 answer

Use another Fee Payer for SOLANA spl-token Transfer

I was actually developing a token in SOLANA Blockchain and stuck in a place. The problem is. I need to transfer a custom token ( Eg: MyCustomToken ) I created ( Not SOL ) from one wallet to another and charge the gas fee from another wallet. So the…
0
votes
1 answer

Issue with getOrCreateAssociatedAccountInfo on Quicknode

I just switched to Quicknode (testnet) as the public Solana node has IP limits. I notice that when I call token.getOrCreateAssociatedAccountInfo I encounter an issue which never happened on the main public node: {"name":"Error","message":"Failed to…
1977
  • 2,580
  • 6
  • 26
  • 37
0
votes
1 answer

Solana build crashing on the compilation of solana-validator package

super new to Solana. Trying to get the cloned repo build on my local machine. But the build stops while compiling solana-validator package and the terminal closes itself (crashes if you will) without showing any error or warning. screenshot Nothing…
0
votes
2 answers

How can I return an array of integers from Solana rust program function to front end?

I don't know how can I write a smart contract in Solana that after executing the logic, returns an array of integers, strings, ... to the client, and how can I fetch it using Web3?
0
votes
1 answer

429 issues on Solana/metaplex

I thought Solana/Metaplex etc should be able to handle large numbers of transactions in quick succession. I just wrote a load test to do 50 mints of an existing SPL token (that has metaplex token-data associated with it) In my code I dont specify…
1977
  • 2,580
  • 6
  • 26
  • 37
0
votes
0 answers

About solana web3 minting Token with phantom wallet

I wanna create a mint token by phantom wallet, here are the code snippet, https://github.com/longmengua/contract-solana/blob/9231643fa85ff115404ad37f07453a3d47e160a1/solana/module/components/index/index.tsx#L88 Before minting a mint token, I need to…