Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IBlockchainApi

Hierarchy

  • IBlockchainApi

Implemented by

Index

Properties

api

api: ApiPromise & IPortablegabiApi<PgabiModName>

buildUpdateAccumulatorTX

buildUpdateAccumulatorTX: (accumulator: Accumulator) => SubmittableExtrinsic<"promise">

Type declaration

    • (accumulator: Accumulator): SubmittableExtrinsic<"promise">
    • Parameters

      Returns SubmittableExtrinsic<"promise">

getAccumulator

getAccumulator: (address: string, index: number) => Promise<Accumulator>

Type declaration

    • (address: string, index: number): Promise<Accumulator>
    • Parameters

      • address: string
      • index: number

      Returns Promise<Accumulator>

getAccumulatorArray

getAccumulatorArray: (address: string, startIndex: number, _endIndex?: undefined | number) => Promise<Accumulator[]>

Type declaration

    • (address: string, startIndex: number, _endIndex?: undefined | number): Promise<Accumulator[]>
    • Parameters

      • address: string
      • startIndex: number
      • Optional _endIndex: undefined | number

      Returns Promise<Accumulator[]>

getAccumulatorCount

getAccumulatorCount: (address: string) => Promise<number>

Type declaration

    • (address: string): Promise<number>
    • Parameters

      • address: string

      Returns Promise<number>

getLatestAccumulator

getLatestAccumulator: (address: string) => Promise<Accumulator>

Type declaration

Methods

signAndSend

  • signAndSend(tx: SubmittableExtrinsic<"promise">, keypair: KeyringPair): Promise<void>
  • Parameters

    • tx: SubmittableExtrinsic<"promise">
    • keypair: KeyringPair

    Returns Promise<void>

Generated using TypeDoc