Options
All
  • Public
  • Public/Protected
  • All
Menu

TODO:

export

Hierarchy

  • JetClient

Index

Constructors

  • new JetClient(program: Program<Jet>, devnet?: boolean): JetClient
  • Creates an instance of JetClient.

    memberof

    JetClient

    Parameters

    • program: Program<Jet>
    • Optional devnet: boolean

    Returns JetClient

Properties

devnet?: boolean
program: Program<Jet>

Methods

  • allObligations(filters?: GetProgramAccountsFilter[]): Promise<ProgramAccount<ObligationAccount>[]>
  • Return all Obligation program accounts that have been created

    memberof

    JetClient

    Parameters

    • Optional filters: GetProgramAccountsFilter[]

    Returns Promise<ProgramAccount<ObligationAccount>[]>

  • connect(provider: default, devnet?: boolean): Promise<JetClient>
  • Create a new client for interacting with the Jet lending program.

    memberof

    JetClient

    Parameters

    • provider: default

      The provider with wallet/network access that can be used to send transactions.

    • Optional devnet: boolean

    Returns Promise<JetClient>

    The client

  • use(provider: default, devnet?: boolean): undefined | JetClient
  • static
    memberof

    JetClient

    Parameters

    • provider: default
    • Optional devnet: boolean

    Returns undefined | JetClient

    JetClient | undefined

Generated using TypeDoc