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.
View ArticleHow to handle both SPLs and native SOL token in my contract?
Hi I was working on making a contract that should support both SOL and SPL tokens.Is there a recommended way to manage SOL and SPL token altogether? It looks like we need to wrap SOL to make it work. A...
View ArticleUsing FeePayer on web3 solana token swap?
I am using javascript from github to create a solana SPL token swap, but I want to use feepayer to pay the transaction fee, I am a beginner, can you explain how to implement it? I have attached the...
View ArticleHow to get a list of all SPL tokens and their token contract which have been...
I would like to get a list of all Solana token contracts which have traded on Raydium. Once I have this list I expect to be able to retrieve all trade data for each token contract (x/Sol) through...
View ArticleIs there an API that returns a swap transaction on Raydium using mint...
Looking for an API that can generate a swap transaction on Raydium Liquidity V4 using token mint addresses, with parameters like amountIn and minAmountOut. Does anyone know of an available API that...
View Articlewhy do we still need to write contracts in Rust?
I have a question that has troubled me for a long time. Since Solana contract instructions can be called using TypeScript and there are SDKs available for them (such as spl-token, Metaplex core and...
View Articleweb3js@2 How can i call getFeeForMessage?
I am trying to call the rpc function getFeeForMessage but i cant figure out what to pass into the function: // What do I need to do here? // Doesnt work: Argument of type...
View ArticleHow to generate and save a keypair with solana/web3.js v2?
I'm trying to generate a keypair and reuse it as a payer with the new web3.js.import { generateKeyPairSigner } from "@solana/web3.js";const keypair = await generateKeyPairSigner();console.log("keypair:...
View ArticleGuide for Expo SDK 51 for wallet connection
Hi I am confused in how to set up the solana web3 adapter for new expo 51.
View ArticleHow Swap on Jupiter via Jito tips?
jupiter = Jupiter(async_client=solana_client,keypair=sender,)token_mint = "T1oYbAejEESrZLtSAjumAXhzFqZGNxQ4kVN9vPUoxMv" # Mint адрестокена, которыйвыхотитекупитьamount_in_sol = 0.01 # Количество SOL,...
View ArticleHow do derive a keypair from mnemonic using web3.js v2?
I don't see an equivalent of Keypair.fromSeed() in keypair-signer.d.tsHow do you derive a keypair from mnemonic using web3.js v2?import { Address } from '@solana/addresses';import { ReadonlyUint8Array...
View Articlewhat arguments are passed in the accounts method in...
I am trying to follow Solana Bootcamp 2024 project 9 that I will use as boilerplate for my dapp.When I get to test the program I run into an error and I can't find anything in the docs (or I don't...
View ArticleRaydium swap tracking
First of all I am new to Solana and Raydium (already build a dexsceener clone for Ethereum uniswap)I am looking for some help to track swaps on Raydium, currently I do subscribe to the...
View ArticleHow can I get the SOL balance change for a pumpfun swap?
I am trying to get the SOL balance change for a pumpfun swap transaction in Typescript. The transaction response I am getting from getTransaction() only seems to contain the pumpfun token balance...
View Article"Error: No such file or directory (os error 2)" Error from Anchor Test
My tests all run successfully, but at the end of my test execution, I get error Error: No such file or directory (os error 2).On the anchor discord, I found a thread from February detailing the same...
View ArticleInteraction with an SPL token using Solang
I am looking to take an SPL token as a payment in my Solang contract, but the transfer function is marked as internal. (function transfer(address from, address to, address owner, uint64 amount)...
View ArticleToken deploy on mainnet, create metadata custom program error: 0x4b
We are trying to deploy our token (AIDS) on mainnet: https://explorer.solana.com/address/ExCgGC6CEegjjif7yqxpcreEaarb83K8YaXzmf3PRWAZ .When we are trying to create metadata for this token, we call...
View ArticleHow do I resolve the anchor build error: Failed to obtain package metadata
I created a project with the command: anchor init solanasc and I receive this error when I run anchor buildERROR cargo_build_sbf] Failed to obtain package metadata: `cargo metadata` exited with an...
View ArticleHow to combine two jupiter swaps in one?
I'm new to solana and I'm trying to combine two swap transactions I got from jupiter API. In my attempt I got multiple types of errors depending on how the transaction's structure. I will post an error...
View ArticleCandy Machine - Error running command DataTypeMismatch
This was the error that came when I used the Sugar deploy CLI, it used to work with the same metadata and everything but it doesn't now? Im not sure why, or if anything changed in the metadata...
View Article