Options
All
  • Public
  • Public/Protected
  • All
Menu

Class E2EProvider

Hierarchy

  • E2EProvider

Index

Constructors

constructor

  • Parameters

    Returns E2EProvider

Properties

Protected faucetQueue

faucetQueue: FaucetQueue

Protected indexer

indexer: Indexer

Readonly pollIntervalMs

pollIntervalMs: number

Protected rpc

rpc: RPC

Methods

claimCKB

  • Parameters

    Returns Promise<string>

daoDeposit

  • daoDeposit(options: { amount?: BIish; fromPk: HexString }): Promise<string>
  • Parameters

    Returns Promise<string>

findCells

getBlockByTxHash

  • getBlockByTxHash(txHash: string): Promise<Block>
  • Parameters

    • txHash: string

    Returns Promise<Block>

getCapacities

  • getCapacities(address: Address): Promise<BI>
  • Parameters

    Returns Promise<BI>

getGenesisScriptConfig

  • Returns Promise<ScriptConfigs>

loadLocalConfig

  • loadLocalConfig(): Promise<Config>
  • Returns Promise<Config>

transferCKB

waitForBlock

  • waitForBlock(options: { relative: boolean; value: number }): Promise<void>
  • Parameters

    • options: { relative: boolean; value: number }
      • relative: boolean
      • value: number

    Returns Promise<void>

waitForEpoch

  • waitForEpoch(options: { relative: boolean; value: number }): Promise<void>
  • Parameters

    • options: { relative: boolean; value: number }
      • relative: boolean
      • value: number

    Returns Promise<void>

waitTransactionCommitted

  • waitTransactionCommitted(txHash: string, options?: { timeout?: undefined | number }): Promise<TransactionWithStatus>
  • Parameters

    • txHash: string
    • Default value options: { timeout?: undefined | number } = {}
      • Optional timeout?: undefined | number

    Returns Promise<TransactionWithStatus>

Generated using TypeDoc