Questions tagged [solana-web3js]
322 questions
1
vote
1 answer
Setting up GenesysGo as RPC Host on Candy Machine V2
I am finalizing my first Candy Machine minting project using Candy Machine V2. I have read that its not a good idea to use the default https://api.mainnet-beta.solana.com host because it can't handle large amounts of traffic. I've update the Candy…

bschmitty
- 1,118
- 3
- 16
- 46
1
vote
1 answer
How to get NFTs Information by name with web3.js on solana network
I would start saying that i'm completely new to this world of web3.
What i would like to do is :
Retrieve info's of NFTs from solana network.I would like to retrieve the info by the name.
From reading metaplex documentation and…

Singh
- 783
- 1
- 6
- 24
1
vote
1 answer
How to allow my community, without owning the storefront create their own auctions using the auction-house framework?
I am looking for a way to allow my community to create their own auctions on my storefront, how is this possible?

Frank Boccia
- 81
- 1
- 10
1
vote
0 answers
how to push json array on solana blockchain and get it using anchor project
How can I push json on the blockchain and get it using anchor project. I am trying to push simple json like this:
[
{
"text": "What is React?",
"code": "001",
"Options": ["Framework", "Frontend Language", "User…
1
vote
1 answer
Passing complex types to anchor rpc fails
I modified the basic tutorial example to pass structs but when i run "anchor test" it fails with TypeError: Blob.encode[data] requires (length 4) Buffer as src
I could not find anything on the internet when I searched for this error.
The code is…

DeeHawk
- 305
- 4
- 13
1
vote
2 answers
One Collection, Multiple Candy Machines
I'm trying to create a NFT collection of 999 pieces. Out of this 999 pieces 23 will be reserved for early investors (they will receive a custom NFT). Because there is no way to mint a specific NFT (investor NFT) - I was advised to create 2 candy…

buttcreamz
- 28
- 2
1
vote
0 answers
WalletNotReadyError- I got it when I develop Solana wallet integration with React.js in chrome extension
I am developing twitter extension for the website.
When I try to connect dapp and phantom wallet in react.js project, it works.
but If I try it in chrome extension, then doesn't work.
import {
useConnection,
useWallet,
} from…

memokey
- 51
- 5
1
vote
1 answer
Solana method cannot convert string to Base58 format
I'm using @solana/web3.js and have this code:
const web3 = require("@solana/web3.js");
const clusterApi = process.env.SOLANA_CLUSTER;
module.exports = {
getConfirmedSignaturesForAddress: async address => {
try {
const connection = new…

dokichan
- 857
- 2
- 11
- 44
1
vote
1 answer
Access and iterate over account metadata within a Solana(Anchor) Program?
To access and iterate over Solana account metadata on the client one can simply use solana/web3.js. But how can I access the same data within the solana(Anchor) program itself. How can I get the number of tweet accounts created and access the…

Tom DeVito
- 15
- 4
1
vote
1 answer
How to get transfer signatures of 0 decimal spl tokens?
I want to get spl token's, which 0 decimal, previous owner from the last owner.
When I check solscan's transfers tab I can see which wallets it has been transferred between. But on transactions tab I can only see the transaction which we are…

0xemirhan
- 13
- 3
1
vote
0 answers
How to get the last NFT minted on candy machine
After a user mints an nft, I want to get the token address or metadata and display it.
I'm using the Candy machine's ui from Metaplex
They're using the mintOneToken function and it only returns a confirmation code, and that's not helpful.
const…

jalapina
- 3,962
- 3
- 12
- 19
1
vote
3 answers
anchor test command error - Error: Cannot find module '[@project-serum/anchor] ' Please verify that the package.json has a valid "main" entry
I was following an introduction tutorial using anchor (solana framework), it is based in the official github.
In the testing part, I used anchor test command and I got this error:
BPF SDK:…

sebastian alegria
- 23
- 1
- 5
1
vote
2 answers
Solana: Computational budget exceeded
I am using the Saber deposit instruction on devnet. Yesterday, my code was working perfectly fine.
Today, I reran some of the instructions, and I am getting the error Computational budget exceeded all of a sudden. Did something on devnet change? I…

DaveTheAl
- 1,995
- 4
- 35
- 65
1
vote
3 answers
How to derive PDAs with multiple seeds in Anchor / Rust?
I am trying to create a structure where every user can generate up to 255 PDA's to store data in. I do this by passing a fixed string, the user's wallet Pubkey and an ID (as a u8). However, I always get a Cross-program invocation with unauthorized…

WalrusGumboot
- 372
- 2
- 16
1
vote
0 answers
Can't connect to Solana devnet/testnet
I've been trying to connect to solana devnet/testnet through cli and python solana SDK, but both without success, getting below error from CLI:
"Error: RPC request error: cluster version query failed: error sending request for url…

Sai Ma
- 11
- 4