Skip to content

Auto-detect network from TXID #81

@4rkad

Description

@4rkad

When a user submits a TXID, automatically detect which network it belongs to by querying multiple backends:

  • Mainnet (mempool.space/api/tx/{txid})
  • Testnet3 (mempool.space/testnet/api/tx/{txid})
  • Testnet4 (mempool.space/testnet4/api/tx/{txid})
  • Signet (mempool.space/signet/api/tx/{txid})

The first API that returns a valid response identifies the network. This avoids the user having to manually select the network or getting confusing errors when analyzing a tx from the wrong network.

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