Add confirmations to TransactionResponse #4094
Labels
enhancement
New feature or improvement.
fixed/complete
This Bug is fixed or Enhancement is complete and published.
minor-bump
Planned for the next minor version bump.
v6
Issues regarding v6
Describe the Feature
Right now there is
confirmations
field only forTransactionReceipt
objects. But in v5 it was also inTransactionResponse
, which is handy.Code Example
const mined = (await Provider.getTransaction(sentTx.hash)).confirmations > 0
The text was updated successfully, but these errors were encountered: