diff --git a/source/ethers.js/source/api-providers.rst b/source/ethers.js/source/api-providers.rst index 346352f..ccf0dfe 100644 --- a/source/ethers.js/source/api-providers.rst +++ b/source/ethers.js/source/api-providers.rst @@ -648,10 +648,10 @@ an array of topics Waiting for Transactions ------------------------ -:sup:`prototype` . waitForTransaction ( transactionHash ) |nbsp| :sup:`=>` |nbsp| :sup:`Promise` +:sup:`prototype` . waitForTransaction ( transactionHash [, confirmations ] ) |nbsp| :sup:`=>` |nbsp| :sup:`Promise` Return a :ref:`Promise ` which resolves to the :ref:`Transaction Receipt ` once *transactionHash* is - mined. + mined, with an optional number of block confirmations to wait before resolving. .. code-block:: javascript :caption: *new blocks*