Code to subscribe to transactions calling a specific instruction in Token...
I would like to receive transactions only if the Token Program: SyncNative instruction is called, not on all instructions of a given program. Could you help me with the code to solve this problem?
View ArticleWhat is difference between client/src/tpu_client.rs and...
I'm using client/src/tpu_client.rs to send tx directly to TPU using my owner RPC, using 'send_wire_transaction', i see both versions have this methodAlso how i can set tpu ip and port?
View Articlewhat's the purpose of lookup tables since you need to send several...
i first thought the lookup tables could be used to fit more instructions in a single transaction, because of the indexing accounts feature. The goal on my side would be to reduce the number of...
View ArticleHow to get inputs, outputs and amounts from logs?
If I subscribe to the logs event, I get logs like this:{"jsonrpc":"2.0","method":"logsNotification","params":{"result":{"context":{"slot":263296582...
View ArticleHow can I listen to incoming transactions to my wallet?
I am using solana web3js and have a public key for my wallet.I want to console log every time someone sends me SOL. I’m interested in the amount of sol, and the public key of who went me the sol.Is...
View ArticleIs there any API in Raydium to get the price to token pair?
How can I use the Raydium API to get on chain prices of tokens?
View ArticleIs their any API to fetch tranding meme tokens of solana?
I want to fetch all the meme tokens listed on solana network sorted according to the top tranding token first.
View Articlethe trait bound `solana_sdk::pubkey::Pubkey: BorshDeserialize` is not...
Error:the trait bound `solana_sdk::pubkey::Pubkey: BorshDeserialize` is not satisfied the following other types implement trait `BorshDeserialize`:Pubkey code:#[repr(transparent)]#[cfg_attr(feature =...
View Articlefailed to get recent blockhash: SolanaJSONRPCError: failed to get recent...
todo.js:132 adding todo: Error: failed to get recent blockhash: SolanaJSONRPCError: failed to get recent blockhash: Method not found at Connection.getRecentBlockhash (index.browser.esm.js:6542:13) at...
View ArticlePure Java implementation for determining off curve Solana public key
I'm trying to work out how to write a Java class that will calculate given a Public key input (byte[32]) whether that point lies on the Edd25519 curve.package com.lmax.solana4j.util;import...
View ArticleEvery swap create a new account
In raydium sdk at each swap an account is created according to the instruction (the instruction is in the sdk itself, which must be changed somehow) and deleted.How to create an account only once and...
View Article'blockstore error' when starting solana-test-validator on MacOS 13.0.1
I am trying to start solana-test-validator, but it closes unexpectedly with blockstore error.Error: failed to start validator: Failed to create ledger at test-ledger: blockstore errorHow can I fix this?
View ArticleHow can I get the discriminator of an instruction in an Anchor Solana IDL?
First of all can someone explain to me what a discriminator is, in the context of Solana instructions, in simple terms?Second, how can I get the discriminator of an instruction in an Anchor Solana...
View ArticleImplementing SharkyFi/client
I am trying to implement SharkyFi/client in an angular application and i was wondering if i can get any help and is putting public key and private key of any wallet would work ?const cli = new...
View ArticleError fetching Account Info on Android Kotlin...
I want to fetch an account's data using [Metaplex KT Library][1].I am still facing error while fetching an account:code:try { val serializer =...
View ArticleCan i implement wallet adapter for solana in vanilla js?
I would like to implement wallet adapter in a vanilla js script using something like unpkg or jsdlivr.Is it possible to do that?
View ArticleTrouble sending faucet SOL on devnet from one wallet to another
I've attempted to send funds from one wallet to another. The wallet I intend to send from is credited with 5 SOL and the recipient wallet has 1 SOL. I run either npx esrun transfer.ts...
View ArticleTransfer Hook - How to get destination ATA owner public key
For my program, I need to implement the Token2022 transfer hook.Inside the transfer hook, I need to read and write a PDA account driven from the address of the owner of the destination ATA.EDIT: In the...
View ArticleError: AccountNotFound: on Solana CLI
So I setup Solana CLI on Ubuntu (Windows sub system WSL2).I started up my solana-test-validatorThen I opened up a new Linux terminal instance and set solana config set --url localhostFinally I created...
View ArticleFetching all signatures of a address
getSignaturesForAddress fetches max 1000 signatures at once, and to fetch all signatures of a particular address, this process becomes sequencial, is there any way to parallelize fetching?
View Article