Module: utils/lib
Functions
getTransactionReceipt
getTransactionReceipt(provider
, txHash
, confirmations?
, timeout?
): Promise
<null
| TransactionReceipt
>
Waits for a transaction receipt if confirmations or timeout is provided Otherwise tries to fetch straight away.
Parameters
Name | Type |
---|---|
provider | Provider |
txHash | string |
confirmations? | number |
timeout? | number |
Returns
Promise
<null
| TransactionReceipt
>