Open berryhill opened 1 year ago
We need to build this logic into the endpoint that returns the inscriptions.
Here's the JS code: https://github.com/pineappleworkshop/nakamoto-trading-co/blob/dev/apps/nakamoto/hooks/useTradeState.tsx#L398-L463
we can most likely remove this: https://github.com/pineappleworkshop/nakamoto-trading-co/blob/dev/apps/nakamoto/hooks/useTradeState.tsx#L439-L449
this adds the confirmations to the inscription object. we can derive that subtracting the current block height from the return from /api/statspool so we don't need the call for the unspents.