useSendTransactionAction
useSendTransactionAction(
args?):UseMutationResult<{hash:`0x${string}`; },FrakRpcError<undefined>, {metadata?:ModalRpcMetadata;tx:SendTransactionTxType|SendTransactionTxType[]; },unknown>
Defined in: react/src/hook/useSendTransaction.ts:45
Hook that return a mutation helping to send a transaction
It’s a @tanstack/react-query!home | `tanstack` wrapper around the `sendTransaction()` action
Parameters
Section titled “Parameters”Optional config object with mutations for customizing the underlying @tanstack/react-query!useMutation | `useMutation()`
mutations?
Section titled “mutations?”MutationOptions
Optional mutation options, see @tanstack/react-query!useMutation | `useMutation()` for more infos
Returns
Section titled “Returns”UseMutationResult<{ hash: `0x${string}`; }, FrakRpcError<undefined>, { metadata?: ModalRpcMetadata; tx: SendTransactionTxType | SendTransactionTxType[]; }, unknown>
The mutation hook wrapping the sendTransaction() action
The mutate and mutateAsync argument is of type `SendTransactionParams`
The data result is a `SendTransactionReturnType`
- `sendTransaction()` for more info about the underlying action
- @tanstack/react-query!useMutation | `useMutation()` for more info about the mutation options and response