Skip to content

Verbose transactions are currently unsupported with verbose flag of blockchain.transaction.get #7342

@MrNaif2018

Description

@MrNaif2018

Electrum version: 4.0.3 (exact commit)

In our APIs we provide a get_transaction RPC call, which works a bit different than usual gettransaction command

raw = await self.session.send_request('blockchain.transaction.get', [tx_hash], timeout=timeout)

We do the same, but with verbose parameter turned on.

Here is how it is implemented in our API

It works perfectly in most cases and returns an additional field: confirmations in addition to usual transaction JSON output.
But in some cases, more frequently on testnet, and especially often in our CI runs, we get the following error:
aiorpcx.jsonrpc.ProtocolError: (-32600, 'ill-formed response error object: verbose transactions are currently unsupported')

CI Run logs
The failing test
Note: the SDK being tested is just calling that get_transaction method on daemon directly, it's still electrum

Are those servers with unsupported verbose transactions just running some old version of ElectrumX? Is there a way to filter them out from the list of servers to connect to, or is there a better way to get confirmations for an arbitrary transaction (not always wallet-related)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic-network 🕸related to logic in network.py (etc)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions