Hierarchy

Properties

chainFrom: undefined | Chain
isInitialized: boolean
provider: IProvider

Methods

  • Send a transaction to Rarimo for processing

    Parameters

    • estimations: SwapEstimation[]

      The estimated price of the transaction, from estimatePrice

    • Optional bundle: TransactionBundle

      The transaction bundle

    Returns Promise<string>

    The hash of the transaction

  • Get the estimated purchase price in the payment token or tokens, including the cost to swap the tokens to the tokens that the seller accepts payment in.

    If isMultiplePayment is set to true, the operation starts with the native token for the source chain. If the wallet does not have enough of this token, it continues adding tokens from the wallet until it has enough value to complete the transaction. After the native token, it uses other tokens ordered alphabetically by the address of the contract that manages the token.

    Parameters

    • from: PaymentToken[]

      The payment token or tokens to use for the transaction

    Returns Promise<SwapEstimation[]>

    Information about the costs involved in the transaction, including the gas price. Can throw an error if insufficient funds for the multiple token payment.

  • Get the destination chain transaction hash as the result of the bridging

    Parameters

    Returns Promise<DestinationTransaction>

    Destination transaction hash and transaction status

Generated using TypeDoc