Skip to main content
When using Privy’s server-side SDKs to sign transactions, you can use the authorization context to automatically sign requests. Learn more about signing on the server.
To send a transaction from a wallet using the React SDK, use the signTransaction method from the useSignTransaction hook:

Usage

Parameters

UnsignedTransactionRequest
required
The details of the transaction to sign.
SendTransactionModalUIOptions
The options for the UI of the send transaction modal. Learn more.
To hide confirmation modals, set options.uiOptions.showWalletUIs to false. Learn more about configuring modal prompts here.
FundWalletConfig
The configuration for funding the wallet.
string
The address of the wallet to use for signing the transaction. Recommended when working with external wallets to ensure reliable functionality. If not provided, the first wallet will be used.

Returns

HexString
The signed transaction hash.