Questions tagged [solana-web3js]
322 questions
3
votes
2 answers
How do i execute solana-test-validator command properly?
When i try to execute "solana-test-validator" command in my terminal, i get error and it says:
"libcrypto1_1-x64.dll not found"
"libssl-1_1-x64.dll not found"
I searched everywhere and i looked every solana-test-validator related error things but i…

BOK
- 41
- 3
3
votes
1 answer
Error while sending Serum DEX make new order instruction (makeNewOrderV3Instruction) on Solana
I'm trying to make an order request on Serum DEX V3:
tx.add(market.makeNewOrderV3Instruction( {
owner,
payer,
side: 'buy',
price,
size,
orderType: 'ioc',
selfTradeBehavior: 'decrementTake'
}));
and then later:
await…

Ehsan Khodarahmi
- 4,772
- 10
- 60
- 87
3
votes
1 answer
Get the list of assets associated to a Solana wallet address
I am using web3 sdk of Solana to query balances or make transactions. Now I would like to know if it's possible to achieve one of the following actions:
Get a list of the assets from a provided wallet address.
Get a wallet address from a provided…

Jaume
- 3,672
- 19
- 60
- 119
2
votes
0 answers
I need to get the metadata of a CNFT from Solana to React
I'm working on a React app that displays metadata for Compressed Non-Fungible Tokens (CNFTs) on the Solana blockchain. I've encountered an issue while trying to fetch metadata using the Solana transaction signature. Here's the relevant code I'm…

Tadeo
- 21
- 1
2
votes
0 answers
how to sign message in solana-web3.js?
i want to sign message in solana-web3.js but i can't find signMessage function like the one in phantom extension
using phantom extension will give result like…

Yoga
- 21
- 3
2
votes
1 answer
Solana Tic-Tac-Toe Game - Bad secret key size
I cloned a tic tac toe game repository to understand the logic of smart contracts and rust. It is working on moralis and need two player wallet addresses to play/create a game but when I add the second Phantom wallet ( both of them are my wallet but…

Aleyna Alangil
- 29
- 2
2
votes
1 answer
Getting "Cannot read properties of undefined (reading 'connect')" solana wallet connect
So far it's been working fine, but out of the blue,without changing anything, I get this error Cannot read properties of undefined (reading 'connect') in the line of code "await window.solana.connect()", worked before, but after a refresh it stopped…

Mario Badea
- 31
- 4
2
votes
2 answers
How to get Solana transaction data from transaction object
I'm doing a simple transaction with a single transfer instruction for 0,1 SOL from one account to another. Then I want to get the transaction data and use it to verify the data it carries - in this case that a transfer has been made for 0,1 SOL.
I…

Milkncookiez
- 6,817
- 10
- 57
- 96
2
votes
0 answers
Trying to make a buy transaction on-chain on the solana network, but get seller_trade_state. Error Code: ContraintRaw
I'm trying to execute a buy_now transaction using the Magic Eden API, but when I execute the transaction.
I receive an AnchorError caused by account: seller_trade_state. Error Code: ConstraintRaw. Error Number: 2003. Error Message: A raw constraint…

Michael Foisy
- 21
- 2
2
votes
0 answers
Multi chain wallet provider(EVM + Solana)
I’m trying to find a library or some reference for using both EVM-based wallet provider and Solana Wallet Adapter in a single dApp, but couldn’t find any. If anyone could help me find some references, would really help.

Saicharan Pogul
- 89
- 2
- 11
2
votes
1 answer
Solana transaction , unknown signer
I am trying to buy NFT from Magic Eden Solana with node js/typescript script,
at first I used solana CLI to get the keypair by using the command below
cat .../.config/solana/id.json
typescript :
let Array_key = [98, 90, 131, ...]; ```got it using…

Ray
- 47
- 3
2
votes
0 answers
Error: failed to send transaction: Transaction simulation failed: Error processing Instruction 0: invalid account data for instruction
i was trying to transfer sol from programmatically created wallet to user wallet(withdraw operation).i read documents saying that pda accounts should be create .i created one with my limited knowledge but encountered this error
my rust code for pda…

srb
- 21
- 2
2
votes
1 answer
How to get the Solana unix_timestamp on the front-end (in JavaScript)?
Solana Rust smart contracts have access to
solana_program::clock::Clock::get()?.unix_timestamp
which is seconds from epoch (midnight Jan 1st 1970 GMT) but has a significant drift from any real-world time-zone as a product of Solana's slowdowns over…

Ozymandias
- 2,533
- 29
- 33
2
votes
0 answers
How to find the Pubkey of the user who made a transaction using Solana web3.js websocket
I have tried the following WS methods to get live updates for certain Solana account:
connection.onLogs()
connection.onAccountChange()
But none of them displays the Publickey of the wallet that is performing/signing the transaction. Is there a way…

Ander
- 5,093
- 7
- 41
- 70
2
votes
1 answer
Error: 410 Gone: "The RPC call or parameters have been disabled."
I have been trying to execute this script (link below) to get NFT Mint Addresses . Unfortunately I always get this error no matter which candy machine v1 or v2 I…

ihssane Ouch
- 25
- 1
- 6