Make getApiV1BoxesP1 optionally return unconfirmed boxes
getApiV1BoxesP1 returns box information, but there doesn't seem to be a way to make it return information for unconfirmed boxes. Only way to retrieve box information for unconfirmed boxes is to request the whole mempool, which is over the top when the box id is already known.
I suggest we add a includeMempool parameter to getApiV1BoxesP1 which, when set to true, also returns unconfirmed boxes when available for the given id.
the pr #214 does this also
Great :)
@monyedavid @oskin1 #214 is merged now, how can I access the unconfirmed boxes by id?
@MrStahlfelge /api/v1/boxes/unspent/unconfirmed/byAddress/{add}
This was is what was asked for. We needed an endpoint for unconfirmed boxes by id.
Additionally, I tested the endpoint and the behaviour is weird:
- when there is no unconfirmed box, it returns confirmed boxes for the address
- if there are unconfirmed boxes, it returns no confirmed boxes any more
- if there are unconfirmed boxes for the address, it returns all boxes of the transactions, even the ones for other addresses
Last but not last, endpoint is not in API doc.