This page contains every Wallet RPC calls related to DPoPS functions.
As of 30/09/2019, these calls will not work until the mainnet is released. Only alpha and beta testers that installed the testnet of DPoPS can try them.
vote
Place your vote for a delegate.
Alias:vote.
Inputs:
delegate_data - String; Name or public address of the delegate to receive the vote.
Outputs:
vote_status - string; Status of the vote call.
Example:
1
$ curl -X POST http://localhost:18285/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"vote","params":{"delegate_data":"DELEGATES_NAME_OR_PUBLIC_ADDRESS"}}' -H 'Content-Type: application/json'
2
{
3
"id":"0",
4
"jsonrpc":"2.0",
5
"result":{
6
"vote_status":"success"
7
}
8
}
Copied!
delegate_register
Register a delegate.
Alias:delegateregister.
Inputs:
delegate_name - string; Name of the delegate to register.
delegate_IP_address - string; IP of the delegate to register.
Outputs:
delegate_register_status - string; Status of the delegate registration call.
Example:
1
$ curl -X POST http://localhost:18285/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"delegate_register","params":{"delegate_name":"delegate_name_1","delegate_IP_address":"delegate_IP_address_or_domain_name"}}' -H 'Content-Type: application/json'
2
{
3
"id":"0",
4
"jsonrpc":"2.0",
5
"result":{
6
"delegate_register_status":"success"
7
}
8
}
Copied!
delegate_update
Update delegate information.
Alias:delegateupdate.
Inputs:
items - Parameters to change
IP_address - string; IP address of the delegate.
about - string; Description of the delegate.
website - string; website address of the delegate.
team - string; __
pool_mode - string;
fee_structure - string;
server_settings - string;
value - string; Value of the field to update.
Outputs:
delegate_update_status - string; Status of the delegate update call.
Example:
1
$ curl -X POST http://localhost:18285/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"delegate_update","params":{"item":"ITEM","value":"VALUE"}}' -H 'Content-Type: application/json'
2
"id":"0",
3
"jsonrpc":"2.0",
4
"result":{
5
"delegate_update_status":"success"
6
}
7
}
Copied!
delegate_remove
Remove the delegate from the delegate list.
Alias:delegateremove.
Inputs:None.
Outputs:
delegate_remove_status - string; Status of the delegate remove call.
Example:
1
$ curl -X POST http://localhost:18285/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"delegate_remove"}' -H 'Content-Type: application/json'