Skip to main content
Mutation hook for signing Sui transactions using a signer from useParaSuiSigner.
Requires @getpara/sui-sdk-integration and @mysten/sui as peer dependencies.
Get the signer parameter from useParaSuiSigner. To sign a personal message instead, use useParaSuiSignPersonalMessage.

Import

Usage

Pass the BCS-serialized transaction bytes (from Transaction.build()) to signTransactionAsync. It returns the serialized Sui signature, which you submit alongside the transaction bytes.
mutate/mutateAsync are also available alongside the named aliases. All other UseMutationResult fields (data, error, isSuccess, isError, reset, etc.) work as expected.