GitHub
Docs
useSendTransaction

useSendTransaction

sign and send transaction

import { useSendTransaction } from '@heapup/smartkit-hooks'
 
const {
  sendTransaction,
  isPending: sending,
  isSuccess
} = useSendTransaction({
  mutation: {
    onSuccess: () => {}
  }
})
 
sendTransaction({
  transactionBlock: new Transaction()
})