Docs
chromia.com

Function

createAndSignTransaction

  • createAndSignTransaction(
        connection: Connection,
        operations: Operation[],
        keyStores: FtKeyStore[],
    ): Promise<Buffer<ArrayBufferLike>>

    Instantiates a transaction which will contain the provided operations, as well as signs it using the provided keystores.

    Parameters

    • connection: Connection

      used to determine what blockchain the transaction will be submitted to

    • operations: Operation[]

      what operations to include in the transaction

    • keyStores: FtKeyStore[]

      the keystores which will sign the transaction

    Returns Promise<Buffer<ArrayBufferLike>>

    A serialized version of the signed transaction

    Remarks

    Does not submit the transaction to the blockchain.