Hey @singhparshant
Welcome to the community!
We have the getTransactionsSummaries
which seems to fit your use case, it can be used like so:
import { getTransactionsSummaries } from "fuels";
const summaries = await getTransactionsSummaries({
provider,
filters: {
owner: request.address,
}
});
for (const tx of summaries.transactions) {
console.log(tx.blockId);
console.log(tx.transaction.txPointer?.blockHeight)
}
It’s worth noting, that only transactions that have been accepted and processed by the node (with a type of SuccessStatus
or FailureStatus
) will have the appropriate block information. So, transactions pending execution (with a type of SubmittedStatus
) will not contain any block information.