Questions tagged [rpc]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
41 views

raydium clmm pool swap

I can perform token swap transactions in Raydium with Python. but I don't know how to do this on a token in the clmm pool. I can collect the keys from the Raydium API in the normal AMM pool and ...
Ali Mercan's user avatar
0 votes
1 answer
32 views

getProgramAccounts - error when calling

Good day to all. I encountered this problem. When I call getProgramAccounts I don't get a response but an error. Tell me, maybe I’m doing something wrong? My task is to get a list of tokens - am I ...
Seva's user avatar
  • 1
1 vote
1 answer
46 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
0 votes
1 answer
38 views

Solana Transactions using Solders object has no attribute 'recent_blockhash'

below is the python code i wrote to try to engage the logs of a deployed program... for the life of me i dont know why i keep getting An error occurred: 'solders.transaction.Transaction' object has no ...
Dino Anastos's user avatar
0 votes
1 answer
47 views

Running a RPC node, Total 0 RPC nodes found

Our RPC nodes suddenly lost track on the RCP nodes: [2024-02-07T05:46:22.284373328Z INFO solana_validator::bootstrap] Searching for an RPC service with shred version 56177 (Retrying: Wait for known ...
user8883's user avatar
0 votes
0 answers
35 views

Connection Reset Error on Solana Transactions

I'm currently facing a challenge with my Solana project, and I'm reaching out to seek your expertise. In my setup, I'm sending 4000 transactions to a cluster involving an RPC and a validator using ...
dariusjvc's user avatar
2 votes
1 answer
28 views

Get outgoing transactions from Solana account

Is there some RPC call/efficient way of getting only the outgoing transactions from a Solana account? By "outgoing" I mean that the account actually signed the tx, i.e. that it wasn't e.g. a ...
Rafael Korbaš's user avatar
0 votes
0 answers
83 views

Majority of TXs are dropped by RPC

While hosting a non-voting validator (RPC node) I noticed that a majority of TXs sent to it are being dropped, the RPC node starts with the following args: --identity ~/validator-keypair.json --...
Dawg's user avatar
  • 1
0 votes
2 answers
69 views

Get latest transactions using Solana RPC

I have looked a lot into RPC and WSS methods at the solana documentation but apart from the still under development blockSubscribe method (which doesn't work for most solana RPCs out there) I have ...
Zero's user avatar
  • 121
0 votes
1 answer
49 views

How to get new SPL transfers for an account

I intend to get the newest SPL transfers that happen in an account and have tried the WSS methods like programSubscribe and accountSubscribe on the Raydium Authority V4 program account. socket....
Zero's user avatar
  • 121
0 votes
0 answers
46 views

Starting a Validator, It works, but node is behind by many slots

curl http://localhost:8899 -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","id":1, "method":"getHealth"}' response as ...
yclsl's user avatar
  • 1
0 votes
1 answer
20 views

How to get all addresses that hold a specific SPL token and the token balance during a specific time?

Is there a way to get all addresses with a specific SPL token and its balance during a specific time?
t330's user avatar
  • 1
1 vote
1 answer
15 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
2 answers
82 views

Missing blocks when sending transactions

I was trying to create a bot that each block will buy a given token, but when i try to send bunch of transactions with 30ms break in-between I can see that my transactions arent happening each block ...
Kacper's user avatar
  • 11
2 votes
2 answers
64 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
3 votes
1 answer
40 views

Why does the Solana JSON RPC server appear to be single threaded?

Recently, I was looking at Solana's RPC code and I was surprised to see that the JSON RPC server seems to be single threaded? https://github.com/solana-labs/solana/blob/...
Lou Kamades's user avatar
0 votes
1 answer
60 views

Querying Processed Transactions in Solana – Alternative Methods Needed

I am currently retrieving transaction information using the getTransactions method with the commitment levels 'finalized' or 'confirmed'. However, I need to access transaction information with a '...
0xsorcerer's user avatar
2 votes
1 answer
131 views

How to do correctly calculate computing budget?

I am executing time-sensitive transactions (swaps between coins). Before executing the transaction I am fetching the price. However since there is so much movement in that market my transactions fail ...
Eric Goerens's user avatar
0 votes
0 answers
21 views

Port 8899 in CLOSE_WAIT state and times out

I built a Solana RPC node on Ubuntu 22 but i am running into an error with making RPC/transaction requests to the node. I am able to connect through port 8899 but when i sent a request it seemd as if ...
CryptoLexx's user avatar
0 votes
0 answers
61 views

How long will it take to create Solana RPC node?

As we know that it takes a long time to synchronize the data when building an Ether node, I would like to know how long it takes to build a Solana RPC node until it is ready to interact, and is it the ...
user2873314's user avatar
3 votes
2 answers
136 views

RPC that supports commitment processed

Does anyone know of any Solana mainnet RPC that supports get_transaction requests with commitment below confirmed? Currently, all the ones I tested only support confirmed upwards, but for my project I ...
Eric vinicius's user avatar
2 votes
1 answer
129 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
1 vote
1 answer
109 views

Use of paid RPC's

Do you know if the Solana RPCs on the market have a difference in latency between the free and paid plans? And would you have any tips to reduce latency? I say this because I'm noticing a latency of ...
Eric vinicius's user avatar
0 votes
1 answer
99 views

How do I get the public key from my address?

I'm developing a bot in python but don't know where to get the public key of my wallet. How can I generate it?
Matvey Dergunov's user avatar
1 vote
1 answer
381 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
108 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
1 answer
110 views

How to getProgramAccounts for Token 2022 Program?

I am trying to send get request as follows but it returns nothing... Can you please guide me how to fix this issue? and how to figure out the datasize and bytes for any program address... { jsonrpc:&...
kokiez's user avatar
  • 95
0 votes
2 answers
52 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
0 votes
1 answer
299 views

Problem starting solana-validator rpc server

I am trying to setup a solana-validator. And no matter what I did I could not get the rpc server running. Here is the command to run the validator --ledger /var/solana/data/ledger \ --identity /...
captain's user avatar
0 votes
1 answer
118 views

Getting more predictable timing when sending txs to RPC servers

I noticed that there is a big variety in how long it takes between when I send my tx until it gets processed by the blockchain. Sometimes it's 1 second, othertimes it can easily be 7-8 seconds for an ...
totAtot's user avatar
2 votes
1 answer
87 views

How can I fetch a large number of transactions?

Im trying to get a transaction through the api endpoint getTransaction. The problem is i have a large basket of signatures(around 10.000) that i want for, each week. Im currently working in python, so ...
Oliver Bregneberg's user avatar
4 votes
1 answer
125 views

Does a non-voting RPC node require a keypair?

Double checking my RPC node vs voting validator node knowledge: a non-voting RPC node does NOT require any keypairs at all? Only voting validator nodes do (of which they require 3)? Or does a non-...
Jacob Creech's user avatar
  • 3,439
0 votes
2 answers
52 views

Duplicate slot : At this point manual intervention is needed to make progress

Pruning expired primary index 0 up to slot 0 (max requested: 248834748) thread 'solReplayStage' panicked at 'We have tried to repair duplicate slot: 248834747 more than 10 times and are unable to ...
Arpit Yadav - Shyft.to's user avatar
0 votes
0 answers
301 views

Transaction too large or lock too many accouns on RPC level

I have a scenario where I have my program ix + a 3rd party (Jupyter swap) tx decompiled to ixtructions + another of my instruction, bundled in a single transaction. On my end just before calling the ...
Silviu Troscot's user avatar
1 vote
1 answer
40 views

Error in installing anchor?

I don't know what is the problem here ?!
pooria sarkhan's user avatar
0 votes
1 answer
37 views

How can i enter a Vec<PubKey> in the solana play ground?

I want to enter a Vec as input But i can't do that i don't know what is wrong !
pooria sarkhan's user avatar
0 votes
1 answer
144 views

Intermittent "Invalid Account Discriminator" Error

I have a few dozen "position" accounts for a user's positions in my AMM program. I previously had been getting these with a getProgramAccounts filter, which I understand is not very ...
joebuild's user avatar
  • 455
2 votes
1 answer
263 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
2 answers
171 views

Quick Node RPC For Minting

Can we use quicknode rpc to run a metaplex candymachine? i've used ankr before but it couldnt even be used
Mahendra F.A's user avatar
1 vote
0 answers
36 views

RPC Node Providers errors while using solana on serverless functions

Fetching a .sol DID requires me to use a RPC endpoint to setup the Connection object using @solana/web3.js. And @bonfida/spl-name-service SDK helps me in reverse lookup of a sol domain from the ...
Aayush Gupta's user avatar
1 vote
3 answers
158 views

Best multi-chain provider?

What’s the best multi-chain provider? I want to use Polygon, Avalanche, BNB, Solana, & Ethereum. Having low latency and reliability are my main requirements.
Tien's user avatar
  • 53
3 votes
2 answers
2k views

Need a good Solana RPC

Where can I get Solana free RPC/public RPC? I tried looking on google but got different answers with varying results - Tien
Tien's user avatar
  • 53
3 votes
1 answer
279 views

How can I deploy and anchor program using a custom RPC node url?

the normal devnet rpc is quite slow recently. How can i define a specific rpc url from lets say helius, quicknode, hellomoon or triton instead? anchor deploy --url rpcurl doesnt work.
Jonas H.'s user avatar
  • 3,963
2 votes
1 answer
327 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
0 votes
0 answers
51 views

How can I listen to a change in ATA's balance for multiple accounts in my database?

How can I listen to a change in ATA's balance for multiple accounts in my database? I am trying to listen to all solana addresses and their ATA's to check for a change in their balance when a user ...
Ukpeh Michael's user avatar
2 votes
1 answer
1k views

Error: RPC request error: cluster version query failed: error sending request for url (http://localhost:8899/): error trying to connect

Error: RPC request error: cluster version query failed: error sending request for url (http://localhost:8899/): error trying to connect: tcp connect error: Connection refused (os error 61) Whenever I ...
Rajib Mondal's user avatar
2 votes
1 answer
286 views

Listening to account changes for multiple accounts on Solana

I'm trying to use the Solana RPC to listen to incoming transactions on multiple accounts at once. The logsSubscribe documentation states that an object with an array of Pubkeys (as base-58 encoded ...
root's user avatar
  • 31
0 votes
0 answers
133 views

getTokenAccountsByDelegate not working / RPC call / Python

this is my code: def get_harvestshares(): endpoint = "https://crimson-radial-asphalt.solana-mainnet.discover." \ "quiknode.pro/...
Mad Jashin's user avatar
1 vote
1 answer
68 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
1 vote
0 answers
74 views

Finding the amount of SOL deactivated from staking with a validator

We're a validator operator. Delegations come and go and when a delegator deactivates their stake with us we'd like to know the amount of SOL that came back into their stake account. It seems there ...
Eliot's user avatar
  • 185