Docs
chromia.com

Function

createOrchestrator

  • createOrchestrator(
        connection: Connection,
        authenticator: Authenticator,
        targetChainId: BufferId,
        recipientId: BufferId,
        assetId: BufferId,
        amount: Amount,
        ttl?: number,
    ): Promise<Orchestrator>

    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.