Skip to main content

Questions tagged [jsonrpc-api]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
14 views

Need help with determining what is truly a buy transaction

I have been creating a node.js script that watches for buy transactions and I'm having some difficulties. I am fairly new to the Solana RPC API, so some of the data contained within RPC responses such ...
BinaryJ's user avatar
  • 23
0 votes
1 answer
31 views

How can I track all buy and sell transactions that relate to a specific Token address?

I am new to this and have been trying to figure out how to track buy and sell transactions from any specific token address, such as $WIF(dogwifhat). I want to create something similar to the ...
BinaryJ's user avatar
  • 23
2 votes
1 answer
33 views

How to obtain the top 5 holders of a Solana token using getProgramAccounts?

I've been trying to use the getProgramAccounts method in the Solana Python API to get the top 5 holders of a specific token. My code looks like this: from solana.rpc.types import MemcmpOpts from ...
Nerevaine's user avatar
  • 139
0 votes
1 answer
60 views

Fetching Trending Token Data: How to Access via API from Dexscreener or Birdeye

I'm trying to gather data on currently trending tokens, and I've been exploring options like Dexscreener and Birdeye. Unfortunately, I haven't found a direct way to access this information via their ...
Nerevaine's user avatar
  • 139
0 votes
1 answer
44 views

How 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":{ ...
user80100's user avatar
0 votes
1 answer
25 views

Does logsSubscribe only send notifications when the mentions address is logged?

https://solana.com/docs/rpc/websocket/logssubscribe I was looking through this and I saw mentions: [ ] - array containing a single Pubkey (as base-58 encoded string); if present, subscribe to only ...
qqqqqqqq's user avatar
0 votes
0 answers
23 views

How can I get historical swaps/syncs or transactions (including amount and price) from dex pool (i.e. RAY/SOL) [duplicate]

new to sol from eth, wondering if there is an equivalent to querying block by block and getting sync/swap pool price and amount. Thank you in advance
ethprinter's user avatar
0 votes
0 answers
79 views

tracking solana transfers from wallet via python

I am trying to retrieve all solana transfers from an exchange wallet via the solana json api. My current process is: send a post request with "method": "getSignaturesForAddress". ...
soltrack's user avatar
0 votes
1 answer
31 views

Unable to Retrieve Data Using get_program_account with SPL Token Program (Python)

I'm developing a script to track newly created tokens on the Solana network. However, I'm encountering an issue when attempting to retrieve data using client.get_program_account. Despite my efforts, I'...
Nerevaine's user avatar
  • 139
1 vote
0 answers
102 views

Trying to run a JS script that connects to Solana RPC using solana/web3.js

The error shows, bigint: Failed to load bindings, pure JS will be used (try npm run rebuild?) Solana node version: 1.18.11 I have found some info online but nothing that has helped. This being the ...
Dalt's user avatar
  • 11
1 vote
0 answers
93 views

Transaction history is not available from this node : Solana validator RPC setup

Even though i have successfully setup solana-validator(mainnet) RPC(--no-voting) node in my computer and the newwork catchup also success as solana-validator --ledger /mnt/ledger monitor also shows ...
ppegu's user avatar
  • 111
0 votes
0 answers
131 views

How to retrieve pool adresses

My goal is to obtain pool addresses associated with a given mint address. I'm looking for a method or approach that would allow me to efficiently fetch this data. To clarify i dont want to download ...
otamtubol's user avatar
1 vote
0 answers
23 views

Get Accounts involved in a transaction using Rust [duplicate]

Suppose I have the signature of a transaction that has been processed, I want to get the accounts involved in a transaction. Usually I would look at the staticAccounts field of a transaction using the ...
qubitz's user avatar
  • 178
0 votes
0 answers
58 views

Fetch trending solana tokens without 3rd party API

GM Buildooors! What's the optimal approach to fetching on-chain data about trending SPL tokens like we have on platforms like Dextools, Birdeye, Step Finance etc.? Preferably without the help of 3rd ...
Abdullah Aftab's user avatar
2 votes
1 answer
84 views

Adding Solana to Edinburgh Decentralization Index

I'm an independent crypto guy working on trying to improve and expand the Edinburgh Decentralization Index (EDI) that recently relased its alpha version: http://blockchainlab.inf.ed.ac.uk/edi-...
Cerkoryn's user avatar
1 vote
1 answer
259 views

getSignaturesForAddress RPC Method is unreliable on the same block when using "before"/"until"

It turns out that the getSignaturesForAddress RPC method is unreliable as soon the "before" or "until" parameter is being used. An example would be: POST https://explorer-api....
Butzelino's user avatar
2 votes
0 answers
683 views

How to listen for raydium and other pools live transactions in solana

i want to listen to transactions from pools like raydium or orca and get buy or sell amounts and holder address but im confused about the limitation of the rpc , i don't want to use paid rpc even if ...
The Yoo-Dev's user avatar
0 votes
0 answers
60 views

Blank Transactions on block explorer but returns successful in code

How can I prevent this from happening https://solscan.io/tx/3gphnLPNXHMkE2M8QgRgGXkUPZtZsxs2PEeSZVPBUfmEUemKnpasR3AV6QAVjgsVia5LtCXp9nAK512KvqynfxTm ? Or make it so those are retried until success? ...
Muhit Raihan's user avatar
1 vote
1 answer
43 views

best way to convert `account_index` to address using rust rpc-client and JSON RPC response

When using the solana-rpc-client in Rust to retrieve a transaction, the output is EncodedTransactionWithStatusMeta. The metadata includes the following struct: pub struct UiTransactionTokenBalance { ...
S.R's user avatar
  • 141
1 vote
1 answer
143 views

Get latest Solana token transfers

I need to get the latest transactions that have Solana token transfers. For this I tried out the blockSubscribe WSS method but it seems to be throwing errors. I am using Alchemy WSS on the mainnet for ...
Zero's user avatar
  • 123
2 votes
2 answers
294 views

Grouped RPC calls / more efficient reads

I am fetching the account state of multiple solana accounts via a nonce type structure. For example, I have accounts where I have nonce 1, nonce 2, nonce 3, etc... I'm am fetching all the states on ...
AceGravity's user avatar
0 votes
1 answer
175 views

Sol Balance oddity after buy transaction

I am trying to understand the SOL balance changes in transactions. Solscan shows on the main overview page that 0.001 SOL was used to buy a token and that is the amount that i passed to the Liquidity....
Peter Folsom's user avatar
2 votes
1 answer
815 views

Best practice check for successful transaction using web3.js

On Solana, what would be the most reliable way to get 100% certainty that a trade done with web3.js was successful? More specifically i use the raydium sdk function: const { innerTransactions } = ...
Peter Folsom's user avatar
3 votes
0 answers
340 views

Can't connect to solana devnet using solana cli or curl

All things are ok when I use localhost.But when I change to devnet, I cannot develop programs(solana balance/airdrop are ok). RPC URL: https://api.devnet.solana.com Default Signer Path: /Users/chenyu/....
yv chen's user avatar
  • 31
2 votes
1 answer
478 views

Listening to all transactions on the blockchian

I am trying to listen to all the transactions which happen on the blockchain in realtime in an efficient manner. Initially, I tried to use the blockSubscribe RPC subscription, but it is unstable as of ...
fenhax's user avatar
  • 21
2 votes
1 answer
315 views

What is the best way to listen to program emitted events in solana?

I come from an EVM background and wonder how to listen to Solana events in my dapp such as token/nft deposits/withdrawals to/from a specific user account, creation of new pools, swaps etc. I tried ...
Ovia Seshadri's user avatar
1 vote
1 answer
1k views

How to get live transactions through websockets?

Is there any method I can subscribe to in order to get live transactions data through websockets? I tried with logsSubscribe but it doesn't seem to be what I'm looking for.
user80100's user avatar
2 votes
1 answer
408 views

Websocket logsSubscribe method doesn't provide the transactions

I have an RPC node fully synchronized. I can subscribe on "logsSubscribe" with the wss://api.mainnet-beta.solana.com endpoint: wscat -c wss://api.mainnet-beta.solana.com {"jsonrpc":...
Percub's user avatar
  • 21
0 votes
2 answers
68 views

Different formats of Solana accounts

Is there a way to know whether an address is an token Program/Storage/Data/Vote/Stake/Withdraw account from the format only? If not, how can I find this out with the help of the node RPC? I guess I ...
sibabtcs's user avatar
1 vote
0 answers
58 views

How to fetch transactions from a historical node older than 2 years ago?

I'm missing transactions from an archive node. I can fetch transactions related to a wallet and associated token/vote/stake accounts. For wallets that are younger the balance transfers and other ...
overdosedcatnip's user avatar
1 vote
0 answers
1k views

How can I listen to burn or token LP lock events on sol chain

I have been trying to get onchain events or messages regarding to token LP lock and burns, I have tried using the json rpc api, I listened to the response for hours but i couldn't find any burn or ...
Jack Bryan's user avatar
1 vote
1 answer
395 views

Multiple SPL Token Balance with one request

To get the balance of a specific token from a wallet, I use getTokenAccountsByOwner, but this is giving the balance for only one token, and I need to request for more than one token. I was wondering ...
KunLun's user avatar
  • 113
0 votes
2 answers
140 views

Solana validator stake history

Is there any way to get the stake history for a validator on Solana. I am trying to analyze the performance of validators on the network and am able to use the getInflationReward method ...
Maksimjeet Chowdhary's user avatar
0 votes
1 answer
1k views

How can I get block data with all transactions with one Solana API request?

How can I get the last block or slot with all transactions in it with one Solana API request? The way I found: getSlot() -> getBlock(slotNumber). The problem with this method is that it is very ...
Сергей's user avatar
3 votes
1 answer
389 views

Get Balance of Sol account more then one account

Can be any API or method to get the balance of a Sol account (more than one account in one time ) not use loop like getBalance() not that function,
Sikandar Hayat's user avatar
2 votes
1 answer
408 views

how to validate an address of solana by using dart?

i need validate solana address for integration in my project Is there a public API for this?
Jose's user avatar
  • 21
2 votes
1 answer
263 views

Is it possible to identify which inner instruction is responsible for an error without relying on logs?

It is feasible using logs, using some code similar that the one found in the explorer to create log indentation. But this falls apart when log truncation kicks in. This is also not great as for ...
Arowana's user avatar
  • 2,233
2 votes
1 answer
1k views

WebSocket connection failed

What is the correct URL to use for wss connection? I'm getting this error: websocket.browser.js:47 WebSocket connection to 'wss://api.mainnet-beta.solana.com/' failed My code used to work fine with ...
Philip Rego's user avatar
0 votes
1 answer
162 views

Why does fetching of compressed nfts by collection/owner not work?

Context: Ran the solana compressed nfts scripts successfully about 2 weeks ago from creating and minting to fetching by collection/owner using the helius devnet rpc endpoint.. This is the link to the ...
bubu59's user avatar
  • 21
2 votes
1 answer
486 views

JSON RPC get all SPL token holders during specific time

I am trying to get all the holders of a specific SPL token during a specific time. I get the Error: {'code': -32010, 'message': 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA excluded from account ...
4 1's user avatar
  • 121
3 votes
1 answer
304 views

Premature close error when fetching 25 or more accounts at once with @solana/web3.js connection.getAccountInfo

Overview Using the Connection class' method getAccountInfo with Promise.all and at least 25 requests will fail with: Error: failed to get info about account ...
Peroxy's user avatar
  • 161
1 vote
1 answer
151 views

Deploy solana program on QuickNode?

I am noob! I deployed my program on mainnet-beta but it didn't work and got 403 error. I did some research and found out that I needed to run my program on RPC server and I was referred to Quicknode. ...
Lê Văn Thành's user avatar
2 votes
1 answer
3k views

Blockhash not found when sending transaction

I'm attempting to create a website that allows a user to send a payment for a service. In order to send a transaction on behalf of the user, I have them sign the transaction,which is then serialized ...
tepefew's user avatar
  • 97
2 votes
1 answer
181 views

Using getSignatureStatuses to confirm transaction

I'm using a niche language that doesn't have an existing solana library, thus needing to write my own transaction confirmation logic. This github issue documents what the new approach for both the ts/...
tepefew's user avatar
  • 97
0 votes
1 answer
615 views

Json Rpc Http getTransaction returns Parse Error

I want to get a transaction via json rpc http method. I make a web request for a finilazed transaction, but i get -37200 Parse error. I use C# to make web request. {"jsonrpc":"2.0"...
Cagri D. Kaynar's user avatar
5 votes
1 answer
3k views

How to properly "wait" for a transaction to confirm?

What I have tried I've previously used the @web3/solana npm package, but ended up having to create my own (private) library due to using a niche language. Here is what I'm trying to do: Serialize and ...
tepefew's user avatar
  • 97
0 votes
1 answer
522 views

Get Epoch Information for finished epochs

My goal is to implement a function which gets epoch information of finished epochs from a node. The input should be the epoch nr and the output should contain: First block First block timestamp Last ...
mazi's user avatar
  • 5
0 votes
1 answer
576 views

"Invalid param: could not find account" when using solana.py to call solana RPC API function

I need some help with solana.py API (for python). I am trying to get total supply of the token (token here) - so I copy mint address according to documentation (gettokensupply) and write usual code on ...
EndOfTheGlory's user avatar
3 votes
1 answer
278 views

Calling the getSignaturesForAddress returns empty

Context: I am trying to get a history of transactions for an address. I plan to use the getSignaturesForAddress() to get all the signatures I could use to find all the confirmed transactions using the ...
Henry 's user avatar
  • 51
2 votes
1 answer
91 views

When transaction's blockTime is null?

Documentation says, that transaction's blocktime can be null "if not available" - what are these cases when "not available"?
Alexey Mikhailov's user avatar