Skip to content

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

@Errorist79

Description

@Errorist79

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions