Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DatabaseAPI

Hierarchy

  • DatabaseAPI

Index

Constructors

constructor

Properties

client

client: Client

Methods

call

  • call(method: string, params?: any[]): Promise<any>
  • Convenience for calling database_api.

    Parameters

    • method: string
    • Optional params: any[]

    Returns Promise<any>

getAccounts

getBlock

getBlockHeader

  • getBlockHeader(blockNum: number): Promise<BlockHeader>

getChainProperties

getConfig

  • getConfig(): Promise<object>

getCurrentMedianHistoryPrice

  • getCurrentMedianHistoryPrice(): Promise<Price>

getDiscussions

  • Return array of discussions (a.k.a. posts).

    Parameters

    • by: DiscussionQueryCategory

      The type of sorting for the discussions, valid options are: active blog cashout children comments created feed hot promoted trending votes. Note that for blog and feed the tag is set to a username.

    • query: DisqussionQuery

    Returns Promise<Discussion[]>

getDynamicGlobalProperties

getOperations

  • getOperations(blockNum: number, onlyVirtual?: boolean): Promise<AppliedOperation[]>

getState

  • getState(path: string): Promise<any>
  • Return all of the state required for a particular url path.

    Parameters

    • path: string

      Path component of url conforming to condenser's scheme e.g. @almost-digital or trending/travel

    Returns Promise<any>

getTransaction

getVestingDelegations

  • getVestingDelegations(account: string, from?: string, limit?: number): Promise<VestingDelegation[]>
  • Get list of delegations made by account.

    Parameters

    • account: string

      Account delegating

    • Default value from: string = ""

      Delegatee start offset, used for paging.

    • Default value limit: number = 1000

      Number of results, max 1000.

    Returns Promise<VestingDelegation[]>

verifyAuthority

Generated using TypeDoc