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

showWalletUIs
boolean

Whether to overwrite the configured wallet UI for the signature prompt. Defaults to undefined, which will respect the server-side or SDK configured option.

title
string

The title text for the signature prompt. Defaults to ‘Sign’.

description
string

The description text for the signature prompt. Defaults to ‘Sign to continue’.

buttonText
string

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

showWalletUIs
boolean

Whether or not to show wallet UIs for this action. Defaults to the wallet UI setting enabled for your app.

description
string

Description of the transaction being sent.

buttonText
string

Text to show on CTA button for Send Transaction screen. Defaults to ‘Submit’ or ‘Approve’.

transactionInfo
Object
title
string

Title for transaction details accordion.

action
string

Short action description (e.g., ‘Buy NFT’).

contractInfo
Object
url
string

Smart contract information URL.

name
string

Smart contract name.

imgUrl
string

Contract image URL.

imgAltText
string

Alternative text for contract image.

imgSize
'sm' | 'lg'

Image size for contract (‘sm’ or ‘lg’).

successHeader
string

Text displayed at the top of the success screen. Defaults to ‘Transaction complete!’.

successDescription
string

Description for the success screen. Defaults to ‘You’re all set.’.

isCancellable
boolean

Whether to display a cancel button on the confirmation screen.

Was this page helpful?