-
Notifications
You must be signed in to change notification settings - Fork 1
Delegates
Nathanael Burchill edited this page Oct 18, 2016
·
1 revision
Delegates SDK.
Puts request to create a delegate.
risesdk.api.delegates.enable("<secret key of account>", "<second secret of account>", "<username of delegate>")
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.
Gets delegate by public key or username.
risesdk.api.delegates.getByPublicKey("<public key of delegate account>")
risesdk.api.delegates.getByUsername("<username of delegate account>")
Get total count of registered delegates.
risesdk.api.delegates.count()
Get voters of delegate.
risesdk.api.delegates.getVoters("<public key of registered delegate account>")
Enables forging for a delegate on the client node.
risesdk.api.delegates.enableForging("<secret key of delegate account>")
Disables forging for a delegate on the client node.
risesdk.api.delegates.disableForging("<secret key of delegate account>")
Get amount of Rise forged by an account.
risesdk.api.delegates.getForgedByAccount("<generator id of block in hex>")