@chromia/ft4 - v2.1.0
    Preparing search index...

    Function createOrchestrator

    • Creates an orchestrator instance for managing cross-chain transfers.

      Parameters

      • connection: Connection

        The connection.

      • authenticator: Authenticator

        The authenticator.

      • targetChainId: BufferId

        ID of the target blockchain.

      • recipientId: BufferId

        ID of the recipient.

      • assetId: BufferId

        ID of the asset to be transferred.

      • amount: Amount

        The amount to be transferred.

      • ttl: number = ...

        The number of milliseconds after which the transaction can only be reverted.

      Returns Promise<Orchestrator>

      The orchestrator instance with functionalities like initiating transfers, subscribing/unsubscribing to various transfer events.