Appearance
Documentation / react-auth / useSignTransaction
Function: useSignTransaction()
useSignTransaction():
Object
Use this hook to sign a transaction using the embedded wallet.
Returns
Object
signTransaction - prompts the user sign a transaction using their embedded wallet
signTransaction
signTransaction: (
input
,options
?) =>Promise
<Object
>Parameters
• input:
UnsignedTransactionRequest
• options?:
Object
• options.address?:
string
• options.uiOptions?:
SendTransactionModalUIOptions
Returns
Promise
<Object
>signature
signature: `0x${string}`