Module: utils/lib
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
Parameter | Type | Description |
---|---|---|
provider | Provider | |
txHash | string | |
confirmations ? | number | |
timeout ? | number |
Returns
Promise
\< null
| TransactionReceipt
>