Skip to content
This repository has been archived by the owner on Jun 10, 2021. It is now read-only.

Add block confirmations argument to waitForTransaction() #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions source/ethers.js/source/api-providers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -648,10 +648,10 @@ an array of topics
Waiting for Transactions
------------------------

:sup:`prototype` . waitForTransaction ( transactionHash ) |nbsp| :sup:`=>` |nbsp| :sup:`Promise<TransactionReceipt>`
:sup:`prototype` . waitForTransaction ( transactionHash [, confirmations ] ) |nbsp| :sup:`=>` |nbsp| :sup:`Promise<TransactionReceipt>`
Return a :ref:`Promise <promise>` which resolves to the
:ref:`Transaction Receipt <transaction-receipt>` once *transactionHash* is
mined.
mined, with an optional number of block confirmations to wait before resolving.

.. code-block:: javascript
:caption: *new blocks*
Expand Down