Skip to content

TS: getTransactionConfirmations won't work with Electrs #422

@nkuba

Description

@nkuba

The current implementation of getTransactionConfirmations won't work with Electrs, as verbose transaction details are not supported there (see: Blockstream/electrs#36 (comment)).
https://github.com/keep-network/tbtc-v2/blob/a9424d18287c1958fbfd14e0df6621bf3578a38c/typescript/src/electrum.ts#L190-L205

We should implement a workaround to cover Electrs.
An example workaround was implemented in the Keep Client:
https://github.com/keep-network/keep-core/blob/d69e971fc734031111699f95eccc3bbbafe4345f/pkg/bitcoin/electrum/electrum.go#L163-L206

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions