Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Random

since

v0.17

Hierarchy

  • Random

Index

Methods

queryRandom

  • Query the random information by the specified reqID

    since

    v0.17

    Parameters

    • reqID: string

      The ID of the random request

    Returns Promise<RandomInfo>

queryRequest

  • Query random requests of a specified block height

    since

    v0.17

    Parameters

    • height: number

      The block height

    Returns Promise<RandomRequest>

request

  • Request a random number

    since

    v0.17

    Parameters

    • blockInterval: number

      The block interval to wait for generating the random number

    • baseTx: BaseTx

    Returns Promise<TxResult>

Generated using TypeDoc