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

Subscribe to blocks payload (clock) #31

Open
7 tasks
DenisCarriere opened this issue Nov 1, 2023 · 1 comment
Open
7 tasks

Subscribe to blocks payload (clock) #31

DenisCarriere opened this issue Nov 1, 2023 · 1 comment
Assignees
Labels

Comments

@DenisCarriere
Copy link
Contributor

DenisCarriere commented Nov 1, 2023

In case the user does not know the module hash and only needs to subscribe to "block" payload only

  • allow blocks to be subscribed
  • new method: blocks
    • params: chain
  • new topic pushing payload block (clock)data
  • deduplicate clock subscribe from other webhooks using the same chain (don't allow pushing the same clock twice)
    • create a unique Set of block_id
    • only subscribe if block_id is new

Subscribe by blocks only by chain

{
    "method": "blocks",
    "params": {
        "chain": "bsc"
    }
}
@DenisCarriere
Copy link
Contributor Author

🤔 doesn't seem to be implemented

This should be a new topic that only includes the block (clock type)

@DenisCarriere DenisCarriere changed the title Send block as generic payload to be subscribed Subscribe to blocks payload (clock) Nov 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants