admin_blacklist
描述: 获取本节点的黑名单节点信息.
parameter
none
return
名称 | 类型 | 备注 |
---|---|---|
Count | Int | 黑名单中节点数目 |
ItemsInfo | Struct | 包含有IP, 端口号, enode和生效时间等节点信息 |
ItemsInfo object:
名称 | 类型 | 备注 |
---|---|---|
ip | String | IP地址 |
port | Int | RUDP端口 |
enode | String | enode url |
time | Time | 生效时间 |
example
Request:
curl -X POST \
http://127.0.0.1:8283 \
-H 'Content-Type: application/json' \
-d '{"jsonrpc": "2.0", "id": 1, "method": "admin_blacklist", "params": []}'
Response:
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"Count": 0,
"ItemsInfo": null
}
}