Questions tagged [solana]

Use for questions about programming on the Solana Blockchain Platform or using its Anchor Framework. Use with the appropriate language tag.

From the website:

Solana is a decentralized blockchain built to enable scalable, user-friendly apps for the world.

Developer documentation can be found here, including information about Solana's Anchor Framework.

1213 questions
0
votes
1 answer

How to make a call to nft programs by '@solana/web3.js' and "@solana/spl-token"?

I want to make a call to nft programs but i dont know how. I've been looking for the official documentations and other resources for a long time, but I couldn't find examples related it. Could you please let me know if you have any information on…
0
votes
2 answers

How do you implement multisig functionality within a team in solana?

I understand how to create multisig accounts as specified in the below documentation but am not sure how this works in practice. Suppose I have a partner, we both create a new keypair, and we both need to sign a transaction. The point is that I…
wxecqz123
  • 325
  • 1
  • 5
  • 12
0
votes
1 answer

Solana - How to get the account from my local keypair in JavaScript / Node.js?

I'm trying to write a node.js program that airdrops one SOL into my devnet account (I know I can use the CLI for this, but I want to continue with the program after I managed to handle an airdrop). In many examples online they first generate a new…
Boommeister
  • 1,591
  • 2
  • 15
  • 54
0
votes
2 answers

Problem getting the balance of Phantom wallet with json-rpc request using javascript async function?

I have a connection to the Phantom wallet. I'm expecting phantom_balance() to return a balance or data containing the balance. Do I have an error in the json-rpc formatting? I'm getting the following JsonRpcEngine failure on the catch(). Phantom -…
AIRAD LABS
  • 136
  • 1
  • 4
  • 13
0
votes
1 answer

how can i get the symbol/name of a token in solana using solana web3 js?

using getTokenSupply in solana web 3 i was able to get amount and decimals, how can get the name of the token and other metadata? let from_pairs = new anchor.web3.PublicKey("DUru78GcRB8Ucg24Gy6WNTyufuyBhqcL5wppZJkckQHz") const NETWORK =…
mohan A
  • 65
  • 2
  • 10
0
votes
1 answer

Issue with Solana wallet by sending funds to Associated Token Metadata account

I sent a token to an "associated token metadata" account from my main Solana wallet. Now the tokens are allocated to a sub-account whose owner is the associated token metadata. I can't get access to this account, so my question is, is there a way to…
eblancode
  • 31
  • 3
0
votes
1 answer

Problems creating a token on solana through the SPL on the command line

I have a problem. When I use spl-token create-token, it shows: error: No such file or directory (os error 2). I've funded a solana wallet in Phantom to create the account. I also made sure to install all dependencies and checked if they were…
0
votes
3 answers

How do I fix this error when creating a candy machine with metaplex?

I am following this tutorial "https://www.youtube.com/watch?v=4LLx7SMAOag&t=446s" and at 9:28 he tells us to input this ts-node js/packages/cli/src/candy-machine-cli.ts upload ./assets --env devnet --keypair ~/config/solana/devnet-test.json His…
0
votes
1 answer

Solana JSON RPC requests time out

I'm trying to query information from the Solana blockchain using the API examples in the documentation (https://docs.solana.com/developing/clients/jsonrpc-api). I'm using: curl https://api.mainnet-beta.solana.com:8899 -X POST -H "Content-Type:…
joejoejoejoe4
  • 1,206
  • 1
  • 18
  • 38
0
votes
1 answer

How to close associated token account using web3js solana tools

Is there any way to close the associated account using JS libs?
0
votes
1 answer

How to grab the Token count in solana Web3

Hey i want to fetch the token amount how do I do that? I have reached this point but want to hold just the value used this till here console.log("Signature: ",hash.meta.postTokenBalances);
0
votes
1 answer

It's possible to build a game using other project's ntf?

As in the title, It's possible to build a game using other project's ntf? How can I do that? For example, a game where in the 3D space, players can add frames of their own ntfs in his room.
Yugo Harago
  • 321
  • 3
  • 11
0
votes
1 answer

How to transfer custom token

I want to send my deployed token other than sol using rust solana-sdk, but I don't know how. I've been looking for the official documentation for a long time, but I can't find it. Could you please let me know if you have any information on this?…
Raid Lafi
  • 91
  • 1
  • 12
0
votes
1 answer

unresolved import `crate::sys` on rust project building

I am working on the Solana contract with rust language. When I execute cargo build, it returns ok result. But when I execute cargo +bpf build --target bpfel-unknown-unknown --release, it returns below the error console. error[E0432]: unresolved…
Gnoose
  • 75
  • 2
  • 9
0
votes
2 answers

Changing a PDA owned token account authority fails because of privilege escalation

I am getting a privilege escalation error (Hw5dRzdcUNHahscRYr1AtsS3t6KXoxyHiGaeShjF7Wq3's signer privilege escalated) when I try to change the authority of an SPL. Hw5dRzdcUNHahscRYr1AtsS3t6KXoxyHiGaeShjF7Wq3 is the address of the escrow_signer in…
motia
  • 1,939
  • 16
  • 22