Methods
enable
-
Parameters
-
data: object
-
Optional secondSecret?: string
-
secret: string
-
username: string
-
getByKeyVal
- getByKeyVal(key: "publicKey" | "username", value: string, callback?: cback<object>): Promise<object | BaseApiResponse>
-
Parameters
-
key: "publicKey" | "username"
-
value: string
-
Optional callback: cback<object>
getByPublicKey
-
Parameters
-
publicKey: string
-
Optional callback: cback<object>
getByUsername
-
Parameters
-
username: string
-
Optional callback: cback<object>
getForgedByAccount
- getForgedByAccount(param: string | object, callback?: cback<object>): Promise<object | BaseApiResponse>
-
Parameters
-
param: string | object
-
Optional callback: cback<object>
getForgingStatus
-
Parameters
-
Optional callback: cback<object>
-
Parameters
-
Optional publicKey: string
-
Optional callback: cback<object>
getList
-
Parameters
-
Optional query: object
-
Optional limit?: number
-
Optional offset?: number
-
Optional orderBy?: string
-
Optional callback: cback<object>
getNextForgers
-
Parameters
-
limit: number
-
Optional callback: cback<object>
getVoters
-
Parameters
-
publicKey: string
-
Optional callback: cback<object>
toggleForging
-
Parameters
-
obj: object
-
enable: boolean
-
secret: string
-
Optional callback: cback<object>
Return the forged amount by account