Skip to content

createTransfer

Creates a transfer transaction. Used for the SolanaCard example.

Import

import { SolanaSigner } from "@account-kit/signer";

Parameters

instructions

TransactionInstruction[]

  • The instructions to add to the transaction

connection

Connection

  • The connection to use for the transaction

version

"versioned" | "legacy"

  • The version of the transaction

Returns

Promise<Transaction | VersionedTransaction> The transfer transaction