Preparing search index...
The search index is not available
Solana JavaScript SDK
Solana JavaScript SDK
@solana/react
useSignAndSendTransaction
Function useSignAndSendTransaction
useSignAndSendTransaction
<
TWalletAccount
extends
UiWalletAccount
>
(
uiWalletAccount
:
TWalletAccount
,
chain
:
OnlySolanaChains
<
TWalletAccount
[
"chains"
]
>
,
)
:
(
input
:
Input
)
=>
Promise
<
Output
>
Returns a function you can call to sign and send a serialized transaction.
Type Parameters
TWalletAccount
extends
UiWalletAccount
Parameters
uiWalletAccount
:
TWalletAccount
chain
:
OnlySolanaChains
<
TWalletAccount
[
"chains"
]
>
Returns
(
input
:
Input
)
=>
Promise
<
Output
>
useSignAndSendTransaction
<
TWalletAccount
extends
UiWalletAccount
>
(
uiWalletAccount
:
TWalletAccount
,
chain
:
`
solana:
${
string
}
`
,
)
:
(
input
:
Input
)
=>
Promise
<
Output
>
Returns a function you can call to sign and send a serialized transaction.
Type Parameters
TWalletAccount
extends
UiWalletAccount
Parameters
uiWalletAccount
:
TWalletAccount
chain
:
`
solana:
${
string
}
`
Returns
(
input
:
Input
)
=>
Promise
<
Output
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Solana JavaScript SDK
Loading...
Returns a function you can call to sign and send a serialized transaction.