waitForTransaction method
Returns a Future of TransactionReceipt which will not resolve until transactionHash
is mined.
If confirms is 0, this method is non-blocking and if the transaction has not been mined returns null.
Otherwise, this method will block until the transaction has confirms blocks mined on top of the block in which is was mined.
Implementation
Future<TransactionReceipt> waitForTransaction(
String transactionHash, [
int confirms = 1,
Duration? timeout,
]) =>
call<TransactionReceipt>(
'waitForTransaction',
timeout != null
? [transactionHash, confirms, timeout.inSeconds]
: [transactionHash, confirms],
);