label_account - 标记账户
label_account
用来标记一个账户,无别名。
输入参数
- account_index:账户索引,unsigned int
- label:要设置的标签, string
输出结果
无
示例代码
curl请求:
$ curl -X POST http://localhost:18082/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"label_account","params":{"account_index":0,"label":"Primary account"}}' -H 'Content-Type: application/json'
响应结果:
{
"id": "0",
"jsonrpc": "2.0",
"result": {
"account_tags": [{
"accounts": [0,1],
"label": "",
"tag": "myTag"
}]
}
}