waitForTransaction

Returns a promise which will not resolve until specified transaction hash is mined. If confirmations 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 confirmed blocks mined on top of the block in which it was mined.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required
Defaults to docs-demo

For higher throughput, create your own API key

Body Params
string

The hash of the transaction to wait for.

number

The number of blocks to wait for.

number

The maximum time to wait for the transaction to confirm.

Response

Language
LoadingLoading…
Response
Choose an example:
application/json