Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PaymentsClient

Raiden sub-client for Payments.

Hierarchy

Index

Constructors

constructor

Methods

initiatePayment

  • initiatePayment(tokenAddress: string, targetAddress: string, paymentConfig: PaymentConfig): Promise<Payment>
  • Initiate a payment. The request will only return once the payment either succeeded or failed. A payment can fail due to the expiration of a lock, the target being offline, channels on the path to the target not having enough settle_timeout and reveal_timeout in order to allow the payment to be propagated safely, not enough funds etc.

    Parameters

    • tokenAddress: string
    • targetAddress: string
    • paymentConfig: PaymentConfig

    Returns Promise<Payment>

initiatePaymentRequestUrl

  • initiatePaymentRequestUrl(tokenAddress: string, targetAddress: string): string

Generated using TypeDoc