Questions tagged [solana-web3js]
322 questions
1
vote
1 answer
How to verify with Python (PyNaCl) a message signed by Solana wallet adapter (javascript)
I have signed a message using Solana's wallet adapter example:
import { useWallet } from '@solana/wallet-adapter-react';
import bs58 from 'bs58';
import React, { FC, useCallback } from 'react';
import { sign } from 'tweetnacl';
export const…

Ander
- 5,093
- 7
- 41
- 70
1
vote
1 answer
Solana JSON RPC API getBalance method always returns 0
I am trying to get the SOL balance from a phantom wallet. The wallet has > 0 SOL in it, so I know that something is wrong when I make the call. Here is my code:
(async () => {
const connection = new solanaWeb3.Connection(
…

Z.Dorcinville
- 11
- 1
1
vote
1 answer
React, Web3.js & Metaplex: Unable to import `programs.metadata.Metadata` from @metaplex/js
Issue
Attempting to follow the 'your first request' example here: https://docs.metaplex.com/sdk/js/getting-started#your-first-request
The module referred to in the examples doesn't contain the data needed.
For context, I am using this example to…

Muckee
- 474
- 1
- 8
- 26
1
vote
0 answers
Solana SplToken web3 : How can i create address/account owned by other address/account?
I would like to create other address/accounts belonging to my initial account, the goal is to have several separate addresses and carry out transactions by paying the fees from my main accounts.
It's like the exchanges create accounts that belong to…

rokitman
- 29
- 4
0
votes
0 answers
Solana "Signature Verification Failed"
Need a bit of help
I've been trying to complete a "cancel sell" operation using the instructions gotten from the magicEden Api
But the problem I keep facing is after signing the transaction
At the point of serializing
It returns "signature…

random_dev
- 153
- 2
- 9
0
votes
0 answers
var pubkeyString = accountMeta.pubkey.toString(); TypeError: Cannot read properties of undefined (reading 'toString')
trying to partial sign a compressed NFT, console.log all params being used so that is not an issue.
const addNFTToTree = async (keypair, owner, metadata, collection) => {
owner = new PublicKey(owner);
let treeAddress = keypair.publicKey;
…

ARYAN
- 1
- 1
0
votes
1 answer
Solana transfer instruction for programmable NFTs
Using the following transfer instruction, I get Error: Account is frozen when transferring programmable NFTs.
Is there another method on the spl-token library or do I need to manually create the instruction…

Hyetigran
- 1,150
- 3
- 11
- 29
0
votes
1 answer
Error: Invalid option 'tokenMint' after connecting phantom wallet to Candy Machine UI
I'm currently integrating the Candy Machine UI from the QuickNode documentation (link: https://www.quicknode.com/guides/solana-development/nfts/how-to-deploy-an-nft-collection-on-solana-using-sugar-candy-machine#set-up-a-minting-site) into my web…

Hemin Patel
- 5
- 2
0
votes
0 answers
How to get the ethereum address on phantom wallet?
I am trying to get the ethereum address on phantom wallet but I can't find a way to do it, Here in my code I check first if phantom wallet is installed then get the solana addess but i need also to get the ethereum address.
const handlePhantom =…

user18528865
- 65
- 5
0
votes
0 answers
Want to get information about solana validators using solana/web3js
I want to get information about solana validator. information like name, sociallink and other.
I tried using solana-cli solana validator-info get --output json it's give me excepetd result that i want but i want same result using solana/web3js
I…

Jasmeen Maradeeya
- 150
- 2
- 11
0
votes
1 answer
TokenAccountNotFoundError encountered while trying to create token account
I have been followind solana buildspace and I am currently on core 2, but I'm stuck on "mint token on solana". I keep getting the error TokenAccountNotFoundError. I followed the exact steps on the buildspace, parharps, a change might have been…
0
votes
1 answer
Solana wallets transaction failing in Flutter
I am using solana_wallet_adapter to launch any installed Solana wallet like Solflare & Phantom to approve a transaction to send SOL from the user's account to an address I've given.
Following is my code triggered on a button click
final adapter =…

Wilfred Almeida
- 601
- 8
- 15
0
votes
0 answers
Transaction simulation failed: Error processing Instruction 0: custom program error: 0x5b
This is on the frontend of a staking ui.(Locks Metaplex NFTs.).This occured after deployment on mainnet,the same program was working just fine on devnet.
I am using a helius RPC.
Here's the instruction. (All the accounts are…
0
votes
0 answers
I had a signature verification error with migration from Helium to Solana
everyone.
As you know, the migration from Helium to Solana is finished in April 18th.
I tried to move hotspots from Helium Network to Solana using this reference.
https://docs.helium.com/solana/rewardable-entites
But after execute the last part, I…

Faustin Daro
- 1
- 1
0
votes
0 answers
Got error "Cross-program invocation with unauthorized signer or writable account"
I'm new in Solana and tries to reassign account's owner.
I do next:
Deploy program
Create account with owner = program deployed id
Call program, which change owner
But on step 3 I got error:
SendTransactionError: failed to send transaction:…

Nikita Duginets
- 163
- 1
- 6