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.
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
(fordetails="txs"
anddetails="txids"
)includeMempoolTxs: boolean
details="txs"
) should contain an additional field,mempool: boolean
, to indicate whether the transaction is in the mempoolGET_TRANSACTION
includeMempoolTxs: boolean
as abovemempool: boolean
) so the client can easily distinct if the tx is in mempool or not, without needing to compare the results with the variant withoutincludeMempoolTxs
paramIn 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.