diff --git a/src/routes/rgbpp/address.ts b/src/routes/rgbpp/address.ts index 31d29146..076eb065 100644 --- a/src/routes/rgbpp/address.ts +++ b/src/routes/rgbpp/address.ts @@ -190,7 +190,12 @@ const addressRoutes: FastifyPluginCallback, Server, ZodType }; }); - const pendingUtxos = utxos.filter((utxo) => !utxo.status.confirmed); + const pendingUtxos = utxos.filter( + (utxo) => + !utxo.status.confirmed || + // include utxo that confirmed in 20 minutes to avoid missing pending xudt + (utxo.status.block_time && Date.now() - utxo.status.block_time / 1000 < 20 * 60), + ); const pendingUtxosGroup = groupBy(pendingUtxos, (utxo) => utxo.txid); const pendingTxids = Object.keys(pendingUtxosGroup);