Skip to content

Mempool txs in GET_TRANSACTION and GET_ACCOUNT_INFO #255

@slowbackspace

Description

@slowbackspace

Blockfrost has API for retrieving txs that are not yet on chain, but are stored in mempool https://docs.blockfrost.io/#tag/cardano--mempool
Let's include these transactions into:

  • GET_ACCOUNT_INFO (for details="txs" and details="txids")
    • To keep backwards compatibility let's introduce it behind new optional parameter includeMempoolTxs: boolean
    • the txs themselves (variant with details="txs" ) should contain an additional field, mempool: boolean, to indicate whether the transaction is in the mempool
  • GET_TRANSACTION
    • same parameter includeMempoolTxs: boolean as above
    • add info into the tx payload (mempool: boolean) so the client can easily distinct if the tx is in mempool or not, without needing to compare the results with the variant without includeMempoolTxs param

In both cases the base format of the mempool tx must be the same as the format for on-chain tx. Mempool tx object may contain additional props.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BLOCKEDBlocked by another issueenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions