T402 API Reference - v2.8.0
    Preparing search index...

    Class CrossChainPaymentRouter

    Cross-Chain Payment Router

    Routes payments across chains using USDT0 bridge. Handles fee estimation, bridge execution, and delivery tracking.

    Index

    Constructors

    Methods

    • Get estimated fees for routing a payment

      Parameters

      Returns Promise<
          {
              nativeFee: bigint;
              estimatedReceiveAmount: bigint;
              estimatedTime: number;
          },
      >

      Quote with native fee and estimated receive amount

    • Check if routing between two chains is supported

      Parameters

      • sourceChain: string

        Source chain name

      • destinationChain: string

        Destination chain name

      Returns boolean

      True if routing is supported

    • Get all supported destination chains from source chain

      Returns string[]

      Array of chain names that can receive bridged funds