Class ExplorerModule

Hierarchy

Index

Constructors

constructor

Methods

getAccount

  • getAccount(id: string): Promise<Account>
  • Get account object.

    Parameters

    • id: string

      Account id in format '1.2.X'.

    Returns Promise<Account>

    Account object.

getAccountBalance

getAccountCount

  • getAccountCount(): Promise<number>
  • Get number of accounts existing in DCore network.

    Returns Promise<number>

    Number of accounts.

getAccountStatistics

getAccountTransactionHistory

  • Get list of account's transaction history objects.

    Parameters

    • id: string

      Account transaction history id in format '2.8.X'.

    Returns Promise<AccountTransactionHistory>

    List of account transaction history objects.

getAccounts

  • getAccounts(ids: string[]): Promise<Array<Account>>
  • Get accounts objects.

    Parameters

    • ids: string[]

      Account ids in format '1.2.X'.

    Returns Promise<Array<Account>>

    List of account objects.

getAsset

  • getAsset(id: string): Promise<Asset>
  • Get asset object.

    Parameters

    • id: string

      Asset id in format '1.3.X'.

    Returns Promise<Asset>

    Asset object.

getAssetDynamicDataType

getBlock

  • getBlock(id: number): Promise<Block>

getBlockSummary

getBlocks

  • getBlocks(id: number, count: number): Promise<Array<Block>>
  • Get blocks objects.

    Parameters

    • id: number

      Blocks start number to start list from.

    • count: number

      Number of block to be listed in result.

    Returns Promise<Array<Block>>

    List of Block objects.

getBudgetRecord

getBuying

  • getBuying(id: string): Promise<Buying>
  • Get buying object.

    Parameters

    • id: string

      Buying object id in format '2.12.X'.

    Returns Promise<Buying>

    Buying object.

getChainProperty

getContent

  • getContent(id: string): Promise<Content>
  • Get content object.

    Parameters

    • id: string

      Content object id in format '2.13.X'.

    Returns Promise<Content>

    Content object.

getDynamicGlobalProperty

getGlobalProperty

getHeadBlockTime

  • getHeadBlockTime(): Promise<string>

getMiner

  • getMiner(id: string): Promise<Miner | null>
  • Get miner object.

    Parameters

    • id: string

      Miner id in format '2.8.X'.

    Returns Promise<Miner | null>

    Miner object

getMinerCount

  • getMinerCount(): Promise<number>
  • Get number of miners on DCore network.

    Returns Promise<number>

    Number of miners.

getMinerSchedule

getMiners

  • getMiners(ids: string[]): Promise<Array<Miner>>
  • Get miners objects.

    Parameters

    • ids: string[]

      List of miner ids in format '1.4.X'.

    Returns Promise<Array<Miner>>

    List of miner objects.

getObject

  • getObject(objectId: string): Promise<any>
  • Get object from DCore network

    Parameters

    • objectId: string

      Object id. In format 'X.Y.Z'.

    Returns Promise<any>

    Desired object.

getOperationHistory

  • getOperationHistory(id: string): Promise<Transaction>

getPublisher

  • getPublisher(id: string): Promise<Publisher>
  • Get publisher object.

    Parameters

    • id: string

      Publisher object id in format '2.14.X'.

    Returns Promise<Publisher>

    Publisher object.

getSeedingStatistics

getSubscription

  • Get subscription object.

    Parameters

    • id: string

      Subscription object id in format '2.15.X'.

    Returns Promise<Subscription>

    Subscription object.

getTransaction

  • getTransaction(blockNo: number, txNum: number): Promise<Transaction>
  • Get transaction object.

    Parameters

    • blockNo: number

      Block number.

    • txNum: number

      Transaction number.

    Returns Promise<Transaction>

    Transaction object.

getTransactionDetail

getVestingBalance

getWitness

  • getWitness(id: string): Promise<Miner>
  • Get miner object.

    Parameters

    • id: string

      Miner id in format '1.4.X'.

    Returns Promise<Miner>

    Miner object.

Powered by DECENT