Class ArkaPaymaster

Hierarchy

  • ArkaPaymaster

Implements

Index

Constructors

constructor

  • new ArkaPaymaster(chainId: number, apiKey: string, paymasterUrl: string): ArkaPaymaster
  • Parameters

    • chainId: number
    • apiKey: string
    • paymasterUrl: string

    Returns ArkaPaymaster

Properties

Readonly apiKey

apiKey: string

Readonly chainId

chainId: number

Readonly queryParams

queryParams: string

Readonly url

url: string

Methods

addWhitelist

  • addWhitelist(addresses: string[]): Promise<any>
  • Parameters

    • addresses: string[]

    Returns Promise<any>

checkWhitelist

  • checkWhitelist(address: string): Promise<any>
  • Parameters

    • address: string

    Returns Promise<any>

deposit

  • deposit(amountInEth: number): Promise<any>
  • Parameters

    • amountInEth: number

    Returns Promise<any>

getTokenPaymasterAddress

  • getTokenPaymasterAddress(tokenSym: string): Promise<any>
  • Parameters

    • tokenSym: string

    Returns Promise<any>

metadata

  • metadata(): Promise<any>
  • Returns Promise<any>

removeWhitelist

  • removeWhitelist(addresses: string[]): Promise<any>
  • Parameters

    • addresses: string[]

    Returns Promise<any>