Skip to main content

createTransfer

Callable

  • createTransfer(connection: Connection, sender: PublicKey, fields: CreateTransferFields, options?: { commitment?: Commitment }): Promise<Transaction>

  • Create a Solana Pay transfer transaction.

    @throws

    {CreateTransferError}


    Parameters

    • connection: Connection

      A connection to the cluster.

    • sender: PublicKey

      Account that will send the transfer.

    • fields: CreateTransferFields

      Fields of a Solana Pay transfer request URL.

    • options: { commitment?: Commitment } = {}

      Options for getRecentBlockhash.

    Returns Promise<Transaction>