Default signature prompter that creates a modal dialog
This function creates a modal prompt that requests user confirmation
before triggering the wallet signature request. This is necessary for wallets
like Keplr that require signature requests to originate from explicit user gestures.
The prompter:
Injects necessary CSS styles
Creates a modal overlay with a centered dialog containing Sign and Cancel buttons
Waits for user interaction (button click or overlay click)
Triggers the signature request on confirmation
Cleans up the modal from the DOM after completion or cancellation
The modal is centered on the screen with a semi-transparent overlay. Clicking
the overlay or Cancel button will reject the signature request. The modal is
responsive and works well on different screen sizes.
Parameters
OptionalcontainerSelector: string
(Optional, deprecated) Previously used to specify a container.
Now ignored as the modal is always appended to the body.
Default signature prompter that creates a modal dialog
This function creates a modal prompt that requests user confirmation before triggering the wallet signature request. This is necessary for wallets like Keplr that require signature requests to originate from explicit user gestures.
The prompter:
The modal is centered on the screen with a semi-transparent overlay. Clicking the overlay or Cancel button will reject the signature request. The modal is responsive and works well on different screen sizes.