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

Feat: Trace governance votes via websocket and keep in database #74

Open
Errorist79 opened this issue Mar 18, 2023 · 0 comments
Open

Feat: Trace governance votes via websocket and keep in database #74

Errorist79 opened this issue Mar 18, 2023 · 0 comments

Comments

@Errorist79
Copy link
Member

Subscribe method:

{
    "jsonrpc": "2.0",
    "method": "subscribe",
    "id": "0",
    "params": {
        "query": "tm.event='Tx' AND message.action CONTAINS 'MsgVote'"
    }
}

Content parsing:

Example content: https://gist.github.com/Errorist79/0bf3d82c16157bb07cd6966d047803b1

Parsing;

Proposal ID: proposal_vote.proposal_id

Voter: message.sender

Vote option: proposal_vote.option

Tx HASH: tx.hash

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

1 participant