waitForTransaction()
Waits for a transaction to complete or fail on the network
Parameters
Name | Type | Required | Description |
---|---|---|---|
transaction | String | Y | The transaction hash that is being waited on |
Response
"Pending" | "Complete" | "Failed"
Transactions can take anywhere from seconds to minutes to complete depending on the network congestion and the gas the user choses for the transaction
Possible Errors
Errors in the connect()
function
Feedback
Something not quite right, unclear or can't find what you are looking for? Please let us know at support.moonpay.com and we will get back to you as soon as we can.
Updated 9 months ago