UI library
Privy comes with out-of-the-box UIs for signing messages and sending transactions.
These wallet UIs are highly-customizable, allowing your application to communicate relevant context to the user or abstract away the fact that a wallet is being used under the hood.
Sign message
Below is a sample message signature UI.
This UI can also be customized by passing a uiOptions
object of the following type to the method.
Parameters
Whether to overwrite the configured wallet UI for the signature prompt. Defaults to undefined
,
which will respect the server-side or SDK configured option.
The title text for the signature prompt. Defaults to ‘Sign’.
The description text for the signature prompt. Defaults to ‘Sign to continue’.
The description text for the signature prompt. Defaults to ‘Sign and Continue’.
Send transaction
Below is a sample transaction UI.
This UI can also be customized by passing a uiOptions
object of the following type to the
method.
Parameters
Whether or not to show wallet UIs for this action. Defaults to the wallet UI setting enabled for your app.
Description of the transaction being sent.
Text to show on CTA button for Send Transaction screen. Defaults to ‘Submit’ or ‘Approve’.
Text displayed at the top of the success screen. Defaults to ‘Transaction complete!’.
Description for the success screen. Defaults to ‘You’re all set.’.
Whether to display a cancel button on the confirmation screen.