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

sendTransaction

Environment Imports

import { sendTransaction } from '@ivem/kit'
import { useSendTransaction } from '@ivem/kit-react'
import { useSendTransaction } from '@ivem/kit-vue'

Usage

import { sendTransaction } from '@ivem/kit'
 
const result = await sendTransaction(config, {
  to: 'receiver_account',
  amount: '1.00000000',
  memo: 'from Ivem Kit',
})

Parameters

  • config: Config
  • parameters: { token?: string; from?: string; to: string; amount: string; memo?: string }

Return Type

  • Promise<{ hash: string }>

Examples

const { hash } = await sendTransaction(config, {
  to: 'receiver_account',
  amount: '1.00000000',
})

Related