Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

useSendTransaction

Usage

import { useSendTransaction } from '@ivem/kit-react'
 
const sendTransaction = useSendTransaction()
await sendTransaction.mutateAsync({ to: 'receiver_account', amount: '1.00000000', memo: 'from Ivem Kit' })

Parameters

Call params:

  • to: string
  • amount: string
  • memo?: string
  • from?: string

Return Type

  • mutate(params, options?) => void
  • mutateAsync(params) => Promise<{ hash: string }>
  • isPending: boolean
  • error: Error | null
  • data: { hash: string } | null

Examples

const result = await sendTransaction.mutateAsync({ to: 'receiver', amount: '1.00000000' })
console.log(result.hash)

Related