Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change account id -1:5..5 to others can not catch transactions. #2

Open
jackbbhua opened this issue Dec 8, 2024 · 2 comments
Open

Comments

@jackbbhua
Copy link

`async fn subscribe_to_transactions(ws: &WsApi) -> Result<(), Box> {
let mut stream = ws.transactions_stream(Some(vec![AccountOperations {
account: "-1:5555555555555555555555555555555555555555555555555555555555555555".to_string(),
operations: None
}]));

while let Ok(evt) = stream.next().await {
    if let Some(evt) = evt {
        println!("Event: {}", evt.params.tx_hash);
    } else {
        // Stream ended
        break;
    }
}

Ok(())

}`

if change -1:5555555555555555555555555555555555555555555555555555555555555555 to wallet accout id it will not catch any transactions, can you try
0:3b63c36279a023c12f431a2c5a740ac8788136e819d112f6d0fa96992202760b
then send a ton to this wallet. there has no ws event.
thanks.

@jackbbhua jackbbhua changed the title Change account id -1:5555555555555555555555555555555555555555555555555555555555555555 to others can not catch transactions. Change account id -1:5..5 to others can not catch transactions. Dec 8, 2024
@ya7on
Copy link
Contributor

ya7on commented Dec 22, 2024

I have same issue with traces and accounts subscriptions if i use testnet. I tested it with mainnet and everything worked and with account transactions (transactions_stream) and with traces_stream. I think issue not on crate side, but on tonapi side.

@liketurbo
Copy link
Owner

I don't recall exactly, but for either transactions or traces, I was encountering no response or an error similar to the one seen in TonAPI's official Go library. Assuming it was a temporary issue on their backend, I didn't investigate further.

However, it might be worth checking the source code of the Go library to see if they have since pushed any fixes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants