bp

Agent Server REST API

bp

POST http://dev.whitehat.co.kr/agent/v1/bp

API that can search the whole list of bp 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

A bp account to search

limit

number

Number of items to get at a time (default: 10)

page

number

Current page number to search (default: 1)

{
  "code": 200,
  "message": "Success",
  "data": {
    "totalCount": 1,
    "list": [
      {
        "_id": "raon.bp",
        "createDt": "2020-06-11T06:58:11.000Z",
        "url": "",
        "location": "0",
        "info": {
          "owner": "raon.bp",
          "total_votes": "60112469612899.43750000000000000",
          "producer_key": "EOS5Tzg5BuACn6P1hFYVe6cF3ZzZDpVgXuo9bqQm3fCPfg38wKpW1",
          "is_active": 1,
          "url": "",
          "unpaid_blocks": 0,
          "last_claim_time": "2020-06-11T06:58:25.000",
          "location": 0,
          "producer_authority": [
            "block_signing_authority_v0",
            {
              "threshold": 1,
              "keys": [
                {
                  "key": "EOS5Tzg5BuACn6P1hFYVe6cF3ZzZDpVgXuo9bqQm3fCPfg38wKpW1",
                  "weight": 1
                }
              ]
            }
          ],
          "account_name": "raon.bp",
          "head_block_num": 1240631,
          "head_block_time": "2020-06-18T11:16:10.000",
          "privileged": false,
          "last_code_update": "1970-01-01T00:00:00.000",
          "created": "2020-06-11T06:58:11.000",
          "ram_quota": 16125,
          "net_weight": 1,
          "cpu_weight": 1,
          "net_limit": {
            "used": 145,
            "available": 9059413,
            "max": 9059558
          },
          "cpu_limit": {
            "used": 378,
            "available": 863608,
            "max": 863986
          },
          "ram_usage": 4344,
          "permissions": [
            {
              "perm_name": "active",
              "parent": "owner",
              "required_auth": {
                "threshold": 1,
                "keys": [
                  {
                    "key": "EOS5Tzg5BuACn6P1hFYVe6cF3ZzZDpVgXuo9bqQm3fCPfg38wKpW1",
                    "weight": 1
                  }
                ],
                "accounts": [
                  {
                    "permission": {
                      "actor": "raon.bp",
                      "permission": "key2"
                    },
                    "weight": 1
                  }
                ],
                "waits": []
              }
            },
            {
              "perm_name": "key1",
              "parent": "owner",
              "required_auth": {
                "threshold": 1,
                "keys": [
                  {
                    "key": "EOS7pbdsXW3gG9EtC8h1P9eauEREkXV7ZwosTFgSukw6vZFvQn45G",
                    "weight": 1
                  }
                ],
                "accounts": [],
                "waits": []
              }
            },
            {
              "perm_name": "key2",
              "parent": "owner",
              "required_auth": {
                "threshold": 1,
                "keys": [
                  {
                    "key": "EOS5Tzg5BuACn6P1hFYVe6cF3ZzZDpVgXuo9bqQm3fCPfg38wKpW1",
                    "weight": 1
                  }
                ],
                "accounts": [],
                "waits": []
              }
            },
            {
              "perm_name": "owner",
              "parent": "",
              "required_auth": {
                "threshold": 1,
                "keys": [
                  {
                    "key": "EOS7pbdsXW3gG9EtC8h1P9eauEREkXV7ZwosTFgSukw6vZFvQn45G",
                    "weight": 1
                  }
                ],
                "accounts": [
                  {
                    "permission": {
                      "actor": "raon.bp",
                      "permission": "key1"
                    },
                    "weight": 1
                  }
                ],
                "waits": []
              }
            }
          ],
          "total_resources": {
            "owner": "raon.bp",
            "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": "raon.bp"
  },
  "limit": 10,
  "page": 1
}

Last updated