Committee
Agent Server REST API
committee
POST
http://dev.whitehat.co.kr/agent/v1/committee
API that can search the whole list of Committee or with the given search condition
Headers
Name
Type
Description
X-AGENT-API-TOKEN
string
Required token for searching Agent API (issuing console)
Request Body
Name
Type
Description
_id
string
Committee account to search
limit
number
Number of items to get at a time (default: 10)
page
number
Current page number (default: 1)
{
"code": 200,
"message": "Success",
"data": {
"totalCount": 1,
"list": [
{
"_id": "committee1",
"createDt": "2020-06-11T06:58:14.500Z",
"info": {
"account_name": "committee1",
"head_block_num": 1358911,
"head_block_time": "2020-06-19T03:41:50.000",
"privileged": false,
"last_code_update": "1970-01-01T00:00:00.000",
"created": "2020-06-11T06:58:14.500",
"ram_quota": 16125,
"net_weight": 1,
"cpu_weight": 1,
"net_limit": {
"used": 2786,
"available": 9056769,
"max": 9059555
},
"cpu_limit": {
"used": 4556,
"available": 859430,
"max": 863986
},
"ram_usage": 4582,
"permissions": [
{
"perm_name": "active",
"parent": "owner",
"required_auth": {
"threshold": 1,
"keys": [
{
"key": "EOS6FaPRKKsP28H3iQFenC3md9N4uJEgsFu5nrxuMEhVdEMWHVA9B",
"weight": 1
}
],
"accounts": [
{
"permission": {
"actor": "committee1",
"permission": "key2"
},
"weight": 1
}
],
"waits": []
}
},
{
"perm_name": "key1",
"parent": "owner",
"required_auth": {
"threshold": 1,
"keys": [
{
"key": "EOS6jAaBd1qHiWrPdbTY8qjAnhRnq544o1HsSsoJz7YS7aK1ottHB",
"weight": 1
}
],
"accounts": [],
"waits": []
}
},
{
"perm_name": "key2",
"parent": "owner",
"required_auth": {
"threshold": 1,
"keys": [
{
"key": "EOS6FaPRKKsP28H3iQFenC3md9N4uJEgsFu5nrxuMEhVdEMWHVA9B",
"weight": 1
}
],
"accounts": [],
"waits": []
}
},
{
"perm_name": "owner",
"parent": "",
"required_auth": {
"threshold": 1,
"keys": [
{
"key": "EOS6jAaBd1qHiWrPdbTY8qjAnhRnq544o1HsSsoJz7YS7aK1ottHB",
"weight": 1
}
],
"accounts": [
{
"permission": {
"actor": "committee1",
"permission": "key1"
},
"weight": 1
}
],
"waits": []
}
}
],
"total_resources": {
"owner": "committee1",
"net_weight": "0.0001 SYS",
"cpu_weight": "0.0001 SYS",
"ram_bytes": 14725
},
"self_delegated_bandwidth": null,
"refund_request": null,
"voter_info": null,
"rex_info": null
}
}
]
}
}
Request Parameter example (JSON)
{
"query": {
"_id": "committee1"
},
"limit": 10,
"page": 1
}
Last updated