Skip to main content

Questions tagged [subscription]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
15 views

Is there anyway to decode program account change that I don’t know the struct?

I’m trying to decode update that I got from the call of “connection.onProgramAcccountChange” but I don’t know the struct of possible outcome, is there anyway to get the struct or decode it somehow ? ...
Daniel Kotlarov's user avatar
0 votes
1 answer
58 views

Subscribing to custom events of my deployed program?

This is my program which emits TokensPaid event on-chain. How can I subscribe to TokensPaid event in NodeJS so that whenever a user does a transaction on-chain, it is stored in the db on backend. pub ...
user9345's user avatar
1 vote
1 answer
91 views

How to think about monthly subscriptions in Solana

I am looking to build a Monthly subscription program in anchor/Solana that allows a user to subscribe to a SPL token subscription (like USDC or SOL) such that the recipient automatically receives the ...
AceGravity's user avatar
0 votes
0 answers
42 views

How to subscribe to NFT transfers in solana py?

I'm using solana library in python to write a program that subscribe to an account and show balance changes in real time. import asyncio from asyncstdlib import enumerate from solana.rpc.websocket_api ...
Amir reza Riahi's user avatar
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
265 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
1 vote
1 answer
233 views

Subscription ID always 0 for onProgramAccountChange [closed]

I am using node js with @solana/web3.js. I have a connection established like this: const userConnection = new solanaWeb3.Connection(endPoint, {commitment: 'confirmed', wsEndpoint: wssEndPoint}); and ...
MDevG's user avatar
  • 21
1 vote
0 answers
49 views

Listening to incoming transactions / account changes for multiple accounts [duplicate]

I am trying to listen to multiple account changes, or incoming transactions for an array of addresses. The logsSubscribe method should work, but gives this error. In what other way can I achieve this?
root's user avatar
  • 31
2 votes
1 answer
515 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
2 votes
1 answer
67 views

Is getting all involved accounts of txs with state "processed" via webhook possible?

Is it possible to getting all involved accounts of a tx that has the current state "processed" via webhook? I only managed to subscribe to the logs of new txs that are in the state "...
leanm's user avatar
  • 76
2 votes
1 answer
714 views

How to subscribe the address logs in solana by using python?

I want to subscribe the logs of my address in solana by using python
Shahbaz Ali's user avatar
2 votes
1 answer
456 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
24 views

Is there a way to do recurring sends of a transaction like a subscription model?

Is there an on chain way of doing recurring sends of a transaction to an address for a subscription model? Or do I need to tap into a 3rd party service to do the actual sending of the transactions and ...
Patoshi パトシ's user avatar
2 votes
1 answer
381 views

"Error: receiving on an empty and disconnected channel" from `solana_client::PubsubClient`

Consider this simple bit of code: use anyhow::Result; use solana_client::pubsub_client::PubsubClient; const WS_URL: &str = "wss://api.devnet.solana.com"; fn main() -> Result<()&...
TovarishFin's user avatar
2 votes
2 answers
242 views

Can my server subscribe to all writes to a program's accounts?

I want to query a data-based index of accounts. For example, if my dapp stores posts and user profiles on chain, I might want to query all posts by a cetain user. I could index all posts by user on-...
agrippa's user avatar
  • 116