dpos-api-wrapper
Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • AccountsAPI

Index

Methods

generatePublicKey

getAccount

getAccountByPublicKey

  • getAccountByPublicKey(publicKey: string, callback?: cback<object>): Promise<object | BaseApiResponse>

getBalance

  • Returns balance and unconfirmed balance for the specified address!

    Parameters

    • address: string

      address to check

    • Optional callback: cback<object>

      callback where to receive the result.

    Returns Promise<object | BaseApiResponse>

getDelegates

getPublicKey

open

  • Opens a new account using the specified secrect string

    Parameters

    • secret: string

      the string to use to generate the new account

    • Optional callback: cback<object>

      callback where to receive the result.

    Returns Promise<object | BaseApiResponse>

putDelegates

  • putDelegates(data: object, callback?: cback<any>): Promise<any>
  • Cast votes. The delegates array must use delegate Public Key prepended witha "+" or "-" sign wether you want to up/downvote the delegate

    Parameters

    • data: object
      • delegates: string[]
      • publicKey: string
      • Optional secondSecret?: string
      • secret: string
    • Optional callback: cback<any>

      callback where to receive the result.

    Returns Promise<any>