Skip to main content

Unanswered Questions

438 questions with no upvoted or accepted answers
4 votes
1 answer
506 views

how to create market id in devnet with js

I was learning solana evm on devnet and I started to code a token with @solana/spl-token library and then I tried to add a liquidity to radiyum and then it asked for openbook market id , I want to ...
4 votes
1 answer
62 views

Reveal URL on mint Solana Anchor Lang

I want to hide the minting URL and reveal it later once a user has minted NFTs. let path = "http://abc.com"; let new_uri = format!("http://abc.com/1.json"); invoke( ...
3 votes
0 answers
68 views

How to implement a wallet button using web3.js v2

I have been using sveltekit + @solana/wallet-adapter-base, @solana/wallet-adapter-phantom to build my solana frontend dapp, this is not good because they depends on web3.js v1 which depends on bs58 ...
3 votes
4 answers
261 views

Where to find ammConfig address?

I'm currently experimenting with AAM Pools from Raydium. Some actions require a ammConfigId. Does someone know where I can find or fetch this address?
3 votes
1 answer
186 views

Error: Data writes to account failed: RPC error: ClientError

I am trying to deploy solana rust program on the devnet and local net but I am getting error. system$ solana program deploy /opt/projects/demo/rust-demo/anchor-escrow/target/deploy/anchor_escrow.so ...
3 votes
0 answers
689 views

How to freeze a Solana token using @solana/web3.js

I have minted a token following this guide: https://www.quicknode.com/guides/web3-sdks/how-to-create-a-fungible-spl-token-with-the-new-metaplex-token-standard I have also set my own public key to be ...
2 votes
1 answer
27 views

how to convert from AccountInfo to UncheckedAccount?

use anchor_lang::prelude::*; use anchor_spl::token::TokenAccount; #[derive(Accounts, Clone)] pub struct InstructionTest<'info> { pub account: Account<'info, TokenAccount>, } pub fn ...
2 votes
0 answers
22 views

Blockhash not found

I'm currently using grpc to subscribe to blockhash. but I'm finding that I'm using grpc to subscribe to the latest blockhash for transactions and he's not able to complete them.
2 votes
0 answers
34 views

solana token transfer An account required by the instruction is missing

I minted an NFT with anchor and would like to send it to a different address. NFT Mint address is BoWAiiGuVTEY7Jsck6KuCoRPMDUgC5wpH84RoRBBNMDS program use anchor_spl::token::{mint_to, Mint, MintTo, ...
2 votes
0 answers
14 views

Web.2 vs. Web.3 Solana Gas Stations - which are people building?

I'm developing an application that requires a gas station to pay user's gas fees. I'm new to Solana, and unclear on whether it's best practice to implement the solution as a Solana program or a ...
2 votes
0 answers
108 views

"TypeError: Cannot read properties of undefined (reading 'toBase58') when performing chained swap on Solana"

I am working on an arbitrage bot on the Solana blockchain that performs chained swaps using the Jupiter API. I aim to swap from SOL to an intermediate token and then back to SOL in a single ...
2 votes
0 answers
108 views

How can I decode the data for an event emitted by an inner instruction?

For this transaction for example - how can I decode the data in the buy function? I have the IDL. I've tried creating a struct and converting the data to an Uint8 Array and then decoding but I'm ...
2 votes
0 answers
84 views

How to simulate transaction at specific slot

Given a connection and a VersionedTransaction I can simulate the tx using web3js like so: await connection.simulateTransaction(tx, config) here config is of type SimulateTransactionConfig: type ...
2 votes
1 answer
54 views

Vec<Pubkey> sorting doesn't work

It's a bit Rust question, but the type I used was anchor's Vec<Pubkey> type, so came here to ask. Here is the code. pub fn set_tokens(&mut self, tokens: Vec<Pubkey>) -> Result<()&...
2 votes
0 answers
57 views

How to create an instruction from an anchor program with rust client?

Hi I have a simple contract testing slots pasted below. I have a question is there a way I can create an instruction for check_slot that passes in the 2 arguments? I read that anchor-client in rust ...

15 30 50 per page
1
2 3 4 5
30