Signer
that allows the user to sign or execute a transaction. Consider a Signer as the approval of the user.Signer
will enable him to do so. The Signer
object also has the WindowMode
and PopupOptions
available.venlyConnect.createSigner(…)
as very first in your event handler otherwise, the popup might get blocked by the popup blocker of the browser.WindowMode
you can close the Signer
popup manually in case something went wrong. You can use the code snippet below to close it. The type guard, isn’t mandatory, but it makes the code more robust.