Questions tagged [websocket]

The tag has no usage guidance.

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

Will accountSubscribe and programSubscribe repeatedly push an account within the same slot?

If I modify account data more than once in one transaction, and I subscribe this account throw accountSubscribe or programSubscribe. If the transaction has been included in one block, could I receive ...
nerver fork's user avatar
0 votes
0 answers
11 views

How to filter BuyMessages from Solana?

Could some of you give me a hint, how to "get the green BuyMessage lines" when having a look at https://dexscreener.com/solana/jafm7fwbfvw7wqadyasbhm3tehksfdjyszmqotpuewmk Any code snippet ...
r.pre's user avatar
  • 1
0 votes
2 answers
68 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
  • 111
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
  • 111
0 votes
1 answer
44 views

Is it possible for LogSubscribe wss to miss out on new logs from the tracked addresses?

I tried to use the log subscribe wss to track activities for a given address. I noticed that sometimes it would not push me all the confirmed log events. Is it because of the node that I'm using isn't ...
pythm's user avatar
  • 1
0 votes
0 answers
44 views

Solana py - Websocket Subscription to GetTokenAccountBalance

Based on my research, I came to know that encoding = "base64" would solve the error "solders.SerdeJSONError: a list or single element". But when we try to subscribe to ...
Praveen's user avatar
2 votes
1 answer
64 views

Transaction ID through Websocket

Is it possible to receive the latest transaction id from a wallet using websocket?
user7771's user avatar
2 votes
1 answer
84 views

Issue with LogSubscribe

My end goal is to get all new tokens being created, currently am doing this by using logSubscribe to the Token Program (TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA) and filtering transactions. The ...
Jacobfinn123's user avatar
0 votes
2 answers
111 views

How does the filter option work?

If I want to use the WS-RPC to fetch tx's that have been made using a program. And if I only want tx's that are 50 bytes long then I send the WS server the following, right? jsonrpc: '2.0',...
Eric Goerens's user avatar
1 vote
1 answer
378 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
1 vote
1 answer
272 views

How to detect buy transactions on solana with websocket

I need to detect buy transactions on Solana, how can I do this? Does anyone have an example of how it could work? I created something, but without success so far, my biggest difficulty is identifying ...
debora's user avatar
  • 11
0 votes
0 answers
873 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
0 answers
63 views

Websocket readyState 2

I've built a small program that monitors for new transactions on an address and then uses signatureSubscribe to watch for transaction confirmation. After running the program for a while, it will ...
Squirrel's user avatar
0 votes
1 answer
150 views

How can I get a pro-apis key for test?

How can I get a pro-apis key for test? I want to use these apis : https://pro-api.solscan.io/pro-api-docs/v1.0. Actually, I want to fillter the accounts' transfers at websocket or https. when I use ...
Ricky's user avatar
  • 1
1 vote
0 answers
20 views

Geyser closed account notifications

When an account is closed, the notification that comes from the geyser plugins account_update method includes the account with owner set to System Program - regardless of who the owner was before it ...
liamvovk's user avatar
  • 169
2 votes
1 answer
547 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
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
0 answers
340 views

Websocket programSubscribe and signatureSubscribe crash intermittent (WebSocket is not open: readyState 0 (CONNECTING)) [closed]

I'm having intermittent issues with a Node.js app where websockets listening to program or signature changes completely stop working and not recover. I'm using @solana/web3.js onProgramAccountChange/...
Omega's user avatar
  • 741
5 votes
2 answers
421 views

Error on connection.confirmTransaction: ws error

Problem Hello. I got a problem only on mainnet-beta. Everything is working fine on devnet. Right after my connection.sendTransaction, I'm doing a connection.confirmTransaction this way: const ...
Julien's user avatar
  • 51
1 vote
0 answers
109 views

Solana RPC Websocket Proxy Setup

I am working on solana node. I have two node running on big servers. I made some endpoints on my rpc node using express node JS. But i am facing an issue of web socket connectivity. Is there any way ...
Hussam Mustafa's user avatar
2 votes
1 answer
176 views

Websocket or Geyser to monitor many accounts

I'm looking to monitor 500+ accounts to do periodical operations and use the most recent data when there is a change on them (processed commitment). I'm wondering if websockets are actually the best ...
Ennio's user avatar
  • 21
1 vote
0 answers
141 views

token program onProgramAccountChange returns non-changed token accounts

A subscription to onProgramAccountChange with the tokenProgram returns token accounts for which the data did not change. For example ey66efq9ZyxhwLjCbnX9D7Nj5hre9DNrNRyxigUwgJw last transaction is a ...
Tomvkgames's user avatar
1 vote
0 answers
33 views

WS sometimes not dispatching log subscriptions?

I'm using SolanaPy's async websocket. I'm tracking one Solana wallet and one of it's token accounts. For some reason sometimes I don't get a notification for transactions.
Pirulax's user avatar
  • 21
1 vote
1 answer
81 views

Sometimes receiving duplicate logs using solana_client::nonblocking::pubsub_client::PubsubClient

I am using solana_client v1.10.34 nonblocking PubsubClient to subscribe to program logs and I am sometimes seeing duplicate logs with the same metadata but 1 slot apart. Is this a bug? Ps: Must use ...
Jayyunit's user avatar
1 vote
1 answer
189 views

Latency is RPC response and websocket

I have a websocket which points at my wallet, And I also have a websocket setup to get the latest event on my wallet. I have tried sending an airdrop from CLI tool : link The moment the transaction ...
Reza Aslejeddian's user avatar
1 vote
1 answer
435 views

How do I use "onAccountChange" to subscribe to a Solana web socket?

const [reloadMessageList, setReloadMessageList] = useState(false); useEffect(() => { fetchChatMessages().then(() => {}); }, [reloadMessageList]); const connection = new Connection(...
user2892730's user avatar
1 vote
0 answers
70 views

Severe latency in Solana web3 app WebSocket call [closed]

I'm working on a Solana web3 app using the @solana/wallet-adapter-react package. The function calls a contract that modifies some accounts. It then takes the transaction ID, awaits confirmation, (with ...
Andrew's user avatar
  • 11
1 vote
0 answers
75 views

RPC websocket keeps skeeping transactions

Hello guys this my first ever question here. I am currently working on NFTs market analysis project and trying to listen to transactions that are happening on NFTs marketplaces. For example i am ...
Seif Eddine Mejri's user avatar
2 votes
1 answer
276 views

Do I need a validator or RPC node in order to use Geyser?

I want to use Geyser plugins but I need to know do I need a power full computer in order to run a validator or RPC node? if yes what are the hardware requirements ? The estimated requests per month is ...
Reza Aslejeddian's user avatar
1 vote
1 answer
109 views

Meaning of slotSubscribe

What does the slot in slotSubscribe actually mean? It is not processed, confirmed, or finalized from what I can tell. Edit: The official documentation is not useful.
Heisenberg's user avatar
4 votes
2 answers
102 views

What is the lifecycle state of a transaction sent by a RPC websocket server?

Let's say Bob is connected to the mainnet-beta RPC WebSocket, listening to Alice wallet. If Alice creates a transaction from her client, and send it to mainnet-beta RPC. Does mainnet-beta: directly ...
mehh's user avatar
  • 117