Questions tagged [subscription]
The subscription tag has no usage guidance.
22 questions
0
votes
0
answers
19
views
Using Solana Pay and additional backend logic to handle SaaS subscriptions?
I'm running a SaaS platform with tiered subscriptions (free, basic, and premium) currently using Stripe for payment processing. I'm looking to introduce Solana Pay as a second payment method, starting ...
1
vote
1
answer
50
views
Multiple subscriptions with async iterators of v2.0 RPC notifications
First of all, thank you so much for the job done in the v2.0 release of the Solana web3 package.
So much improvements here, amazing!
I'm actually a Node.JS developer, and I do have a script that uses ...
0
votes
1
answer
49
views
Subscribing to Spl token missed transactions
As the title suggests I am subscribing to the logs of a token (e.g. 6ogzHhzdrQr9Pgv6hZ2MNze7UrzBMAFyBBWUYp1Fhitx) using websockets in Rust. The goal is to stream all transactions related to this token ...
1
vote
0
answers
54
views
How to track transactions for spl tokens
I am a Web 2 developer currently learning about Solana. I prefer learning by doing, so I am building an app but have encountered an issue. I want to calculate the price of tokens available in a user's ...
1
vote
0
answers
97
views
How to listen to jito bundles
I am writing a analysis tool to check for mev attacks happening in jito bundles, for a live subscription to these attacks, is there anyway that i would be able to subscribe to the jito bundles being ...
1
vote
0
answers
260
views
Yellowstone geyser multi connection latency
I’m connecting my client to solana via geyser port on my rpc.
I have noticed, that I get 1-1.5 second delay of account updates, when I do approximately 90 different subscriptions, comparing to account ...
0
votes
0
answers
98
views
web3.js returns my id instead of result on Accountsubscribe so can't unsubscribe
Using the solana/web3.js sdk, when I use connection.onAccountChange which is basically the AccountSubscribe I get as result an id.
const subscriptionId = connection.onAccountChange(ata, (info, context)...
1
vote
1
answer
37
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 ?
...
0
votes
1
answer
281
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 ...
1
vote
1
answer
245
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 ...
0
votes
0
answers
51
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 ...
2
votes
1
answer
956
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 ...
2
votes
1
answer
559
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 ...
1
vote
1
answer
390
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 ...
1
vote
0
answers
54
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?
3
votes
2
answers
833
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 ...
2
votes
1
answer
82
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 "...
2
votes
1
answer
1k
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
2
votes
1
answer
643
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 ...
1
vote
1
answer
31
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 ...
2
votes
1
answer
536
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<()&...
2
votes
2
answers
397
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-...