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
sendTransaction method from the useSendTransaction hook:Usage
Parameters
UnsignedTransactionRequest
required
The details of the transaction to send on the chain.
boolean
Optional parameter to enable gas sponsorship for this transaction. Learn
more.
SendTransactionModalUIOptions
The options for the UI of the send transaction modal. Learn
more.
FundWalletConfig
The configuration for funding the wallet.
string
The address of the wallet to use for sending the transaction. Recommended when working with
external wallets to ensure reliable functionality. If not provided, the first wallet will be
used.
Returns
HexString
The hash for the broadcasted transaction.
For a complete example of sending USDC with Privy’s SDKs, see our Sending USDC
recipe.

