bullbitcoin-mobile
bullbitcoin-mobile copied to clipboard
Inbound transaction time received and time confirmed
TIME RECEIVED
Scenario 1: user has mempool API enabled and we are able to call mempool API before confirmation -> as soon as we see there is an unconfirmed transaction, we call the mempool api /api/v1/transaction-times?txId[]=. -> we save the time returned as "Time received"
Scenario 2: user has mempool API enabled but we are unable to call mempool API before confirmation -> this can be because the user imported a wallet after the transaction was confirmed -> this can be because the user created a transaction using another software and the Bull wallet was not active -> "Time received" is "Unknown"
TIME CONFIRMED
Time confirmed should always be available in BDK via electrum or with mempool api regardless of when the transaction was first received of confirmed.
POSSIBLE COMBOS
Time received: Unknown Time confirmed: null (transaction not confirmed)
Time received: Unknown Time confirmed: [time]
Time received: [time] Time confirmed: null (transaction not confirmed)
Time received: [time] Time confirmed: [time]