Opentonapi simplifies development of TON-based applications and provides an API centered around high-level concepts like Jettons, NFTs and so on keeping a way to access low-level details.
MIT License
124
stars
26
forks
source link
Streaming API: subscribe to account tx with operations #248
This commit introduce a new feature: ability to subscribe to specific
set of operations on account.
SSE method is extended to accept optional "operations" query parameter:
/v2/sse/accounts/transactions?accounts=<accounts>&operations=<comma-separated list of ops>
Websocket:
subscribe_account takes in params with the following format:
<accountID>;operations=<comma-separated list of ops>
";operations=<comma-separated list of ops>" is optional, if not
configured, you'll be subscribed to all operations on account.
This commit introduce a new feature: ability to subscribe to specific set of operations on account.
SSE method is extended to accept optional "operations" query parameter:
/v2/sse/accounts/transactions?accounts=<accounts>&operations=<comma-separated list of ops>
Websocket: subscribe_account takes in params with the following format:
<accountID>;operations=<comma-separated list of ops>
";operations=<comma-separated list of ops>"
is optional, if not configured, you'll be subscribed to all operations on account.