Skip to content

Verify tx inclusion proofs #18

Description

@keppel

Tendermint RPC has a /tx?hash=_&prove=_ endpoint which returns a proof that the transaction with the given hash made it into a block.

It would be nice if the LightNode class had a method to retrieve and verify these proofs.

Perhaps something like:

let tendermint = require('tendermint')
let lightClient = tendermint(nodeAddress, initialClientState)

let txIncluded = await lightClient.verifyTxInclusion(txHash) // `true` or `false`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions