Skip to main content

createTransaction

Callable

  • createTransaction(connection: Connection, account: PublicKey, fields: CreateTransactionFields): Promise<Transaction>

  • Create a Solana Pay transfer transaction.

    @throws

    {CreateTransactionError}


    Parameters

    • connection: Connection

      A connection to the cluster.

    • account: PublicKey

      Signer account within a wallet.

    • fields: CreateTransactionFields

      Fields from a transfer request URL.

    Returns Promise<Transaction>