Skip to content

Delegates

Nathanael Burchill edited this page Oct 18, 2016 · 1 revision

Delegates SDK.

Enable delegate on account

Puts request to create a delegate.

risesdk.api.delegates.enable("<secret key of account>", "<second secret of account>", "<username of delegate>")

Get delegates list

Gets list of delegates by provided filter.

risesdk.api.delegates.getList(limit: <limit>, offset: <offset>, orderBy: "<field>")
  • limit: Limit to show. Integer. Maximum is 100.
  • offset: Offset
  • orderBy: Order by field

All parameters are optional.

Get delegate

Gets delegate by public key or username.

By public key

risesdk.api.delegates.getByPublicKey("<public key of delegate account>")

By username

risesdk.api.delegates.getByUsername("<username of delegate account>")

Get delegates count

Get total count of registered delegates.

risesdk.api.delegates.count()

Get voters

Get voters of delegate.

risesdk.api.delegates.getVoters("<public key of registered delegate account>")

Enable forging on delegate

Enables forging for a delegate on the client node.

risesdk.api.delegates.enableForging("<secret key of delegate account>")

Disable forging on delegate

Disables forging for a delegate on the client node.

risesdk.api.delegates.disableForging("<secret key of delegate account>")

Get forged by account

Get amount of Rise forged by an account.

risesdk.api.delegates.getForgedByAccount("<generator id of block in hex>")