Options
All
  • Public
  • Public/Protected
  • All
Menu

A Switchboard VRF account.

Hierarchy

  • VrfAccount

Index

Constructors

Properties

keypair?: Keypair
program: Program<Idl>
publicKey: PublicKey

Methods

  • loadData(): Promise<any>
  • Load and parse VrfAccount data based on the program IDL.

    Returns Promise<any>

    VrfAccount data parsed in accordance with the Switchboard IDL.

  • Attempt the maximum amount of turns remaining on the vrf verify crank. This will automatically call the vrf callback (if set) when completed.

    Parameters

    Returns Promise<string[]>

  • size(): number
  • Get the size of a VrfAccount on chain.

    Returns number

    size.

  • verify(oracle: OracleAccount, tryCount?: number): Promise<string[]>
  • Create and initialize the VrfAccount.

    Parameters

    • program: Program<Idl>

      Switchboard program representation holding connection and IDL.

    • params: VrfInitParams

    Returns Promise<VrfAccount>

    newly generated VrfAccount.

Generated using TypeDoc