├── .gitignore ├── LICENSE ├── README.md ├── docs ├── CNAME ├── English │ └── index.md ├── index.md └── 简体中文 │ ├── abi.md │ ├── account.md │ ├── actions.md │ ├── block.md │ ├── block_transactions.md │ ├── coins.md │ ├── index.md │ ├── inline_actions.md │ ├── key_accounts.md │ ├── transaction_action.md │ ├── transactions.md │ └── vote.md ├── mkdocs.yml └── theme └── partials └── header.html /.gitignore: -------------------------------------------------------------------------------- 1 | # ---> Python 2 | # Byte-compiled / optimized / DLL files 3 | __pycache__/ 4 | *.py[cod] 5 | *$py.class 6 | 7 | # C extensions 8 | *.so 9 | .idea 10 | site 11 | # Distribution / packaging 12 | .Python 13 | env/ 14 | build/ 15 | develop-eggs/ 16 | dist/ 17 | downloads/ 18 | eggs/ 19 | .eggs/ 20 | lib/ 21 | lib64/ 22 | parts/ 23 | sdist/ 24 | var/ 25 | wheels/ 26 | *.egg-info/ 27 | .installed.cfg 28 | *.egg 29 | 30 | # PyInstaller 31 | # Usually these files are written by a python script from a template 32 | # before PyInstaller builds the exe, so as to inject date/other infos into it. 33 | *.manifest 34 | *.spec 35 | 36 | # Installer logs 37 | pip-log.txt 38 | pip-delete-this-directory.txt 39 | 40 | # Unit test / coverage reports 41 | htmlcov/ 42 | .tox/ 43 | .coverage 44 | .coverage.* 45 | .cache 46 | nosetests.xml 47 | coverage.xml 48 | *,cover 49 | .hypothesis/ 50 | 51 | # Translations 52 | *.mo 53 | *.pot 54 | 55 | # Django stuff: 56 | *.log 57 | local_settings.py 58 | 59 | # Flask stuff: 60 | instance/ 61 | .webassets-cache 62 | 63 | # Scrapy stuff: 64 | .scrapy 65 | 66 | # Sphinx documentation 67 | docs/_build/ 68 | 69 | # PyBuilder 70 | target/ 71 | 72 | # Jupyter Notebook 73 | .ipynb_checkpoints 74 | 75 | # pyenv 76 | .python-version 77 | 78 | # celery beat schedule file 79 | celerybeat-schedule 80 | 81 | # SageMath parsed files 82 | *.sage.py 83 | 84 | # dotenv 85 | .env 86 | 87 | # virtualenv 88 | .venv 89 | venv/ 90 | ENV/ 91 | 92 | # Spyder project settings 93 | .spyderproject 94 | 95 | # Rope project settings 96 | .ropeproject 97 | 98 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 4 | 1. Definitions. 5 | 6 | "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. 7 | 8 | "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. 9 | 10 | "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. 11 | 12 | "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. 13 | 14 | "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. 15 | 16 | "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. 17 | 18 | "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). 19 | 20 | "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. 21 | 22 | "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." 23 | 24 | "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 25 | 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 26 | 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 27 | 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: 28 | (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and 29 | (b) You must cause any modified files to carry prominent notices stating that You changed the files; and 30 | (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and 31 | (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. 32 | You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 33 | 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 34 | 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 35 | 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 36 | 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 37 | 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS 38 | APPENDIX: How to apply the Apache License to your work. 39 | To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. 40 | Copyright [yyyy] [name of copyright owner] 41 | Licensed under the Apache License, Version 2.0 (the "License"); 42 | you may not use this file except in compliance with the License. 43 | You may obtain a copy of the License at 44 | http://www.apache.org/licenses/LICENSE-2.0 45 | Unless required by applicable law or agreed to in writing, software 46 | distributed under the License is distributed on an "AS IS" BASIS, 47 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 48 | See the License for the specific language governing permissions and 49 | limitations under the License. 50 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # EOSMonitor API 2 | 3 | EOSMonitor's API is useful to get information about EOS tokens, balances, accounts, contracts, transactions and actions. There is no any warranty for provided data. 4 | 5 | ## About the API 6 | 7 | This is a pre-alpha version, It is not recommended for use in production environments. 8 | 9 | ## Limit 10 | 11 | In most cases, you can send the request directly. 12 | 13 | `curl http://api.eosmonitor.io/v1/blocks/100` 14 | 15 | This will limit your number of requests per minute, default: 30r/m. 16 | 17 | **Please do not overload the servers or you'll be banned.** 18 | 19 | If you need more data or highload of service – You need a pro token(Currently not supported). 20 | 21 | Then: 22 | 23 | `curl https://api.eosmonitor.io/v1/blocks/100?par=par&token={yourtoken}` 24 | 25 | ## How to view the limit status? 26 | 27 | In the head of the response: 28 | 29 | * X-Rate-Limit-Limit: 30 30 | * X-Rate-Limit-Remaining: 29 31 | * X-Rate-Limit-Reset: 1533543496 32 | 33 | ## API URL 34 | 35 | * http(s)://api.eosmonitor.io (For global CDN) 36 | * http(s)://api.coinmeta.cn (For china CDN) 37 | 38 | ## Response Code 39 | 40 | code | message | description 41 | ---- | --- | --- 42 | 0 | Success | Success 43 | 1000 | Unauthorized | Token error or expired 44 | 1001 | Error | System error 45 | 1002 | Request exceeded limit | Request exceeded limit 46 | 1007 | Invalid parameters | Invalid parameters 47 | 1008 | Not Found | Resource does not exist 48 | 49 | ## Account 50 | 51 | ### Get Account Info 52 | 53 | `GET` `https://api.eosmonitor.io/v1/accounts/` 54 | ```json 55 | { 56 | "code": 0, 57 | "data": { 58 | "cpu_limit": { 59 | "available": 232689, 60 | "max": 242203, 61 | "used": 9514 62 | }, 63 | "cpu_weight": 20001, 64 | "created": "2018-06-10T13:04:21.500", 65 | "creator": "gy2danrygene", 66 | "delegated_bandwidth": { 67 | "cpu_weight": "2.0000 EOS", 68 | "from": "eosteaeostea", 69 | "net_weight": "2.0000 EOS", 70 | "to": "eosteaeostea" 71 | }, 72 | "eos_balance": 0.0001, 73 | "last_code_update": "1970-01-01T00:00:00.000", 74 | "name": "eosteaeostea", 75 | "net_limit": { 76 | "available": 1283143, 77 | "max": 1283375, 78 | "used": 232 79 | }, 80 | "net_weight": 20001, 81 | "permissions": [ 82 | { 83 | "parent": "owner", 84 | "perm_name": "active", 85 | "required_auth": { 86 | "accounts": [], 87 | "keys": [ 88 | { 89 | "key": "EOS5B7V5TxdZPNiBeDUJSdoovg4Unp3CCbUy4KDiuWJXEWcctXLZN", 90 | "weight": 1 91 | } 92 | ], 93 | "threshold": 1, 94 | "waits": [] 95 | } 96 | }, 97 | { 98 | "parent": "", 99 | "perm_name": "owner", 100 | "required_auth": { 101 | "accounts": [], 102 | "keys": [ 103 | { 104 | "key": "EOS5B7V5TxdZPNiBeDUJSdoovg4Unp3CCbUy4KDiuWJXEWcctXLZN", 105 | "weight": 1 106 | } 107 | ], 108 | "threshold": 1, 109 | "waits": [] 110 | } 111 | } 112 | ], 113 | "privileged": false, 114 | "ram_quota": 10449, 115 | "ram_usage": 4137, 116 | "total_resources": { 117 | "cpu_weight": "2.0001 EOS", 118 | "net_weight": "2.0001 EOS", 119 | "owner": "eosteaeostea", 120 | "ram_bytes": 10449 121 | } 122 | }, 123 | "error": null, 124 | "message": "Success" 125 | } 126 | ``` 127 | 128 | ## BLock 129 | 130 | ### Get Block Info 131 | `GET` `https://api.eosmonitor.io/v1/blocks/` 132 | 133 | ```json 134 | { 135 | "code": 0, 136 | "data": { 137 | "action_mroot": "999e8d1786a7648a513bc6fdc5be12b8ac4f7b0010fa31f6f8cb85f281eea793", 138 | "bft_irreversible_blocknum": 0, 139 | "block_id": "0091dcf6cff16bf34c32c5ab92f7906baf85f4209d826a031d9b65869bcdff8e", 140 | "block_num": 9559286, 141 | "block_signing_key": "EOS8QgURqo875qu3a8vgZ58qBeu2cTehe9zAWRfpdCXAQipicu1Fi", 142 | "dpos_irreversible_blocknum": 9558959, 143 | "dpos_proposed_irreversible_blocknum": 9559127, 144 | "irreversible": true, 145 | "pending_schedule_hash": "3016bff9cefb9e4b2dad629478a71c03178ea6acd041845437154db0ef190716", 146 | "pending_schedule_lib_num": 9514937, 147 | "previous_block_id": "0091dcf5ecaa49d0d5aaf513cbd6ec0c75acd02c9d5b6082347b79fd36685c1a", 148 | "producer": "eoslaomaocom", 149 | "producer_signature": "SIG_K1_KcC6NBme4GfYdSczuwrWKUo5342wuajN6cSkJAJoBrQ22gsG55bfBNsAtVX3iZoCBQzoTyegx1Dinb2Eko38ZtnFT1giAs", 150 | "schedule_version": 259, 151 | "timestamp": 1533442735, 152 | "transaction_mroot": "6749c22bff187c2b8fda8c79eaa03ea6a1b78b5e8e4bc0e2c08233baef3d1348", 153 | "trx_count": 1 154 | }, 155 | "error": null, 156 | "message": "Success" 157 | } 158 | ``` 159 | 160 | ## Transaction 161 | 162 | ### Get Transaction Info 163 | 164 | `GET` `https://api.eosmonitor.io/v1/transactions/` 165 | 166 | ```json 167 | { 168 | "code": 0, 169 | "data": { 170 | "actions_count": 1, 171 | "block_id": "00900b3b0a085e701551d5f1a60c2b4897369d7152393ab928d3a52be7e3f328", 172 | "block_num": 9440059, 173 | "delay_sec": 0, 174 | "expiration": 1533410366, 175 | "irreversible": true, 176 | "max_cpu_usage_ms": 0, 177 | "max_net_usage_words": 0, 178 | "ref_block_num": 2547, 179 | "ref_block_prefix": 2661908677, 180 | "signatures": [ 181 | "SIG_K1_JzL2sNqDSUetbzv5uQp8XwV2UwNY49Gvcd7kzVmX2bVAb4CTfPQJQjpGXp1XezgWQ4t38s7mmfjmYoeihT6RZcdzFqCUrr" 182 | ], 183 | "signing_keys": [ 184 | "EOS5eexMGYyzwxqzTjJ8x2itT78eFkU9ecEu34kifbLq7QzvrJ88V" 185 | ], 186 | "transaction_extensions": [], 187 | "transaction_id": "c5504cbbb70ce297cffc1bdd9a856e0497f3b64420bdae79063123b3ec3f5186" 188 | }, 189 | "error": null, 190 | "message": "Success" 191 | } 192 | ``` 193 | ### Get Transaction Action 194 | 195 | `GET` `https://api.eosmonitor.io/v1/transactions//actions` 196 | 197 | Parameter 198 | 199 | Field | Type | Description 200 | --- | --- | --- 201 | page(optional) | Number | Default value: 1 202 | per_page(optional) | Number | Default value: 10 203 | 204 | ```json 205 | { 206 | "code": 0, 207 | "data": { 208 | "data": [ 209 | { 210 | "action_num": 0, 211 | "authorization": [ 212 | { 213 | "actor": "gm2tkmbyguge", 214 | "permission": "active" 215 | } 216 | ], 217 | "data": { 218 | "from": "gm2tkmbyguge", 219 | "memo": "", 220 | "quantity": "0.0001 EOS", 221 | "to": "eoslaomaocom" 222 | }, 223 | "expiration": 1533410366, 224 | "handler_account": "eosio.token", 225 | "name": "transfer", 226 | "trx_id": "c5504cbbb70ce297cffc1bdd9a856e0497f3b64420bdae79063123b3ec3f5186" 227 | } 228 | ], 229 | "has_next": false, 230 | "has_prev": false, 231 | "page": 1, 232 | "per_page": 10, 233 | "total": 1 234 | }, 235 | "error": null, 236 | "message": "Success" 237 | } 238 | ``` 239 | 240 | ## Actions 241 | 242 | ### Get Actions 243 | 244 | `GET` `https://api.eosmonitor.io/v1/actions` 245 | 246 | Parameter 247 | 248 | Field | Type | Description 249 | --- | --- | --- 250 | account | String | Which account action. Length(1, 12) 251 | name | String | Action type.Allowed values: "all", "transfer", "sellram", "buyram", "buyrambytes", "setram", "updateauth", "deleteauth", "linkauth", "unlinkauth", "reqauth", "undelegatebw", "delegatebw", "refund", "voteproducer", "regproxy", "rmvproducer", "regproducer", "claimrewards", "unregprod", "setabi", "setcode", "newaccount", "bidname", "create", "issue", "canceldelay", "onerror", "setpriv", "setalimits", "setglimits", "setprods", "setparams", "setparams" 252 | page(optional) | Number | Default value: 1 253 | per_page(optional) | Number | Default value: 10 254 | 255 | ```json 256 | { 257 | "code": 0, 258 | "data": { 259 | "data": [ 260 | { 261 | "action_num": 0, 262 | "authorization": [ 263 | { 264 | "actor": "eosteaeostea", 265 | "permission": "active" 266 | } 267 | ], 268 | "data": { 269 | "from": "eosteaeostea", 270 | "memo": "", 271 | "quantity": "104.9031 EOS", 272 | "to": "eostea111111" 273 | }, 274 | "expiration": 1533398672, 275 | "handler_account": "eosio.token", 276 | "name": "transfer", 277 | "trx_id": "e5ba7e8cd2e0b1ff2522a751e1a05b47b602044395077350f2916528894e8ec8" 278 | } 279 | ], 280 | "has_next": true, 281 | "has_prev": false, 282 | "page": 1, 283 | "per_page": 1, 284 | "total": 12 285 | }, 286 | "error": null, 287 | "message": "Success" 288 | } 289 | ``` -------------------------------------------------------------------------------- /docs/CNAME: -------------------------------------------------------------------------------- 1 | dev.eosmonitor.io -------------------------------------------------------------------------------- /docs/English/index.md: -------------------------------------------------------------------------------- 1 | Come Soon... -------------------------------------------------------------------------------- /docs/index.md: -------------------------------------------------------------------------------- 1 | ## Language 2 | 3 | * [简体中文](简体中文) 4 | * [English](English) -------------------------------------------------------------------------------- /docs/简体中文/abi.md: -------------------------------------------------------------------------------- 1 | # 查询Abi基本信息 2 | 3 | ## 请求端点 4 | 5 | `/v1/abi/:account_name` 6 | 7 | ## 请求示例 8 | 9 | `https://api.eosmonitor.io/v1/abi/eosio.token` 10 | 11 | ## 返回结果字段说明 12 | 13 | | 字段 | 类型 | 描述 | 14 | | --- | --- | --- | 15 | | account | String | 合约账户名 | 16 | | abi_extensions | Array | | 17 | | actions | Array | | 18 | | error_messages | Array | | 19 | | ricardian_clauses | Array | | 20 | | structs | Array | | 21 | | tables | Array | | 22 | | types | Array | | 23 | | variants | Array | | 24 | | version | String | | 25 | 26 | 27 | ## 返回结果示例 28 | 29 | ```json 30 | { 31 | "code": 0, 32 | "data": { 33 | "abi_extensions": [], 34 | "account": "eosio.token", 35 | "actions": [ 36 | { 37 | "name": "transfer", 38 | "ricardian_contract": "", 39 | "type": "transfer" 40 | }, 41 | { 42 | "name": "issue", 43 | "ricardian_contract": "", 44 | "type": "issue" 45 | }, 46 | { 47 | "name": "retire", 48 | "ricardian_contract": "", 49 | "type": "retire" 50 | }, 51 | { 52 | "name": "create", 53 | "ricardian_contract": "", 54 | "type": "create" 55 | }, 56 | { 57 | "name": "close", 58 | "ricardian_contract": "", 59 | "type": "close" 60 | }, 61 | { 62 | "name": "extransfer", 63 | "ricardian_contract": "", 64 | "type": "extransfer" 65 | }, 66 | { 67 | "name": "exissue", 68 | "ricardian_contract": "", 69 | "type": "exissue" 70 | }, 71 | { 72 | "name": "exretire", 73 | "ricardian_contract": "", 74 | "type": "exretire" 75 | }, 76 | { 77 | "name": "excreate", 78 | "ricardian_contract": "", 79 | "type": "excreate" 80 | }, 81 | { 82 | "name": "exclose", 83 | "ricardian_contract": "", 84 | "type": "exclose" 85 | }, 86 | { 87 | "name": "exdestroy", 88 | "ricardian_contract": "", 89 | "type": "exdestroy" 90 | }, 91 | { 92 | "name": "exchange", 93 | "ricardian_contract": "", 94 | "type": "exchange" 95 | }, 96 | { 97 | "name": "ctxrecharge", 98 | "ricardian_contract": "", 99 | "type": "ctxrecharge" 100 | }, 101 | { 102 | "name": "ctxextract", 103 | "ricardian_contract": "", 104 | "type": "ctxextract" 105 | }, 106 | { 107 | "name": "ctxtransfer", 108 | "ricardian_contract": "", 109 | "type": "ctxtransfer" 110 | }, 111 | { 112 | "name": "exunlock", 113 | "ricardian_contract": "", 114 | "type": "exunlock" 115 | }, 116 | { 117 | "name": "exlocktrans", 118 | "ricardian_contract": "", 119 | "type": "exlocktrans" 120 | } 121 | ], 122 | "error_messages": [], 123 | "ricardian_clauses": [], 124 | "structs": [ 125 | { 126 | "base": "", 127 | "fields": [ 128 | { 129 | "name": "sym", 130 | "type": "symbol" 131 | }, 132 | { 133 | "name": "contract", 134 | "type": "account_name" 135 | } 136 | ], 137 | "name": "extended_symbol" 138 | }, 139 | { 140 | "base": "", 141 | "fields": [ 142 | { 143 | "name": "quantity", 144 | "type": "asset" 145 | }, 146 | { 147 | "name": "contract", 148 | "type": "account_name" 149 | } 150 | ], 151 | "name": "extended_asset" 152 | }, 153 | { 154 | "base": "", 155 | "fields": [ 156 | { 157 | "name": "from", 158 | "type": "account_name" 159 | }, 160 | { 161 | "name": "to", 162 | "type": "account_name" 163 | }, 164 | { 165 | "name": "quantity", 166 | "type": "asset" 167 | }, 168 | { 169 | "name": "memo", 170 | "type": "string" 171 | } 172 | ], 173 | "name": "transfer" 174 | }, 175 | { 176 | "base": "", 177 | "fields": [ 178 | { 179 | "name": "issuer", 180 | "type": "account_name" 181 | }, 182 | { 183 | "name": "maximum_supply", 184 | "type": "asset" 185 | } 186 | ], 187 | "name": "create" 188 | }, 189 | { 190 | "base": "", 191 | "fields": [ 192 | { 193 | "name": "to", 194 | "type": "account_name" 195 | }, 196 | { 197 | "name": "quantity", 198 | "type": "asset" 199 | }, 200 | { 201 | "name": "memo", 202 | "type": "string" 203 | } 204 | ], 205 | "name": "issue" 206 | }, 207 | { 208 | "base": "", 209 | "fields": [ 210 | { 211 | "name": "quantity", 212 | "type": "asset" 213 | }, 214 | { 215 | "name": "memo", 216 | "type": "string" 217 | } 218 | ], 219 | "name": "retire" 220 | }, 221 | { 222 | "base": "", 223 | "fields": [ 224 | { 225 | "name": "owner", 226 | "type": "account_name" 227 | }, 228 | { 229 | "name": "symbol", 230 | "type": "symbol" 231 | } 232 | ], 233 | "name": "close" 234 | }, 235 | { 236 | "base": "", 237 | "fields": [ 238 | { 239 | "name": "from", 240 | "type": "account_name" 241 | }, 242 | { 243 | "name": "to", 244 | "type": "account_name" 245 | }, 246 | { 247 | "name": "quantity", 248 | "type": "extended_asset" 249 | }, 250 | { 251 | "name": "memo", 252 | "type": "string" 253 | } 254 | ], 255 | "name": "extransfer" 256 | }, 257 | { 258 | "base": "", 259 | "fields": [ 260 | { 261 | "name": "issuer", 262 | "type": "account_name" 263 | }, 264 | { 265 | "name": "maximum_supply", 266 | "type": "asset" 267 | }, 268 | { 269 | "name": "connector_weight", 270 | "type": "float64" 271 | }, 272 | { 273 | "name": "maximum_exchange", 274 | "type": "asset" 275 | }, 276 | { 277 | "name": "reserve_supply", 278 | "type": "asset" 279 | }, 280 | { 281 | "name": "reserve_connector_balance", 282 | "type": "asset" 283 | } 284 | ], 285 | "name": "excreate" 286 | }, 287 | { 288 | "base": "", 289 | "fields": [ 290 | { 291 | "name": "to", 292 | "type": "account_name" 293 | }, 294 | { 295 | "name": "quantity", 296 | "type": "extended_asset" 297 | }, 298 | { 299 | "name": "memo", 300 | "type": "string" 301 | } 302 | ], 303 | "name": "exissue" 304 | }, 305 | { 306 | "base": "", 307 | "fields": [ 308 | { 309 | "name": "from", 310 | "type": "account_name" 311 | }, 312 | { 313 | "name": "quantity", 314 | "type": "extended_asset" 315 | }, 316 | { 317 | "name": "memo", 318 | "type": "string" 319 | } 320 | ], 321 | "name": "exretire" 322 | }, 323 | { 324 | "base": "", 325 | "fields": [ 326 | { 327 | "name": "owner", 328 | "type": "account_name" 329 | }, 330 | { 331 | "name": "symbol", 332 | "type": "extended_symbol" 333 | } 334 | ], 335 | "name": "exclose" 336 | }, 337 | { 338 | "base": "", 339 | "fields": [ 340 | { 341 | "name": "symbol", 342 | "type": "extended_symbol" 343 | } 344 | ], 345 | "name": "exdestroy" 346 | }, 347 | { 348 | "base": "", 349 | "fields": [ 350 | { 351 | "name": "primary", 352 | "type": "uint64" 353 | }, 354 | { 355 | "name": "balance", 356 | "type": "extended_asset" 357 | } 358 | ], 359 | "name": "account" 360 | }, 361 | { 362 | "base": "account", 363 | "fields": [ 364 | { 365 | "name": "lock_timestamp", 366 | "type": "time_point_sec" 367 | } 368 | ], 369 | "name": "lock_account" 370 | }, 371 | { 372 | "base": "", 373 | "fields": [ 374 | { 375 | "name": "owner", 376 | "type": "account_name" 377 | }, 378 | { 379 | "name": "quantity", 380 | "type": "extended_asset" 381 | }, 382 | { 383 | "name": "tosym", 384 | "type": "extended_symbol" 385 | }, 386 | { 387 | "name": "memo", 388 | "type": "string" 389 | } 390 | ], 391 | "name": "exchange" 392 | }, 393 | { 394 | "base": "", 395 | "fields": [ 396 | { 397 | "name": "owner", 398 | "type": "account_name" 399 | }, 400 | { 401 | "name": "quantity", 402 | "type": "extended_asset" 403 | }, 404 | { 405 | "name": "memo", 406 | "type": "string" 407 | } 408 | ], 409 | "name": "ctxrecharge" 410 | }, 411 | { 412 | "base": "", 413 | "fields": [ 414 | { 415 | "name": "owner", 416 | "type": "account_name" 417 | }, 418 | { 419 | "name": "quantity", 420 | "type": "extended_asset" 421 | }, 422 | { 423 | "name": "memo", 424 | "type": "string" 425 | } 426 | ], 427 | "name": "ctxextract" 428 | }, 429 | { 430 | "base": "", 431 | "fields": [ 432 | { 433 | "name": "from", 434 | "type": "account_name" 435 | }, 436 | { 437 | "name": "to", 438 | "type": "account_name" 439 | }, 440 | { 441 | "name": "quantity", 442 | "type": "extended_asset" 443 | }, 444 | { 445 | "name": "memo", 446 | "type": "string" 447 | } 448 | ], 449 | "name": "ctxtransfer" 450 | }, 451 | { 452 | "base": "", 453 | "fields": [ 454 | { 455 | "name": "supply", 456 | "type": "asset" 457 | }, 458 | { 459 | "name": "max_supply", 460 | "type": "asset" 461 | }, 462 | { 463 | "name": "issuer", 464 | "type": "account_name" 465 | }, 466 | { 467 | "name": "max_exchange", 468 | "type": "asset" 469 | }, 470 | { 471 | "name": "connector_weight", 472 | "type": "float64" 473 | }, 474 | { 475 | "name": "connector_balance", 476 | "type": "asset" 477 | }, 478 | { 479 | "name": "reserve_supply", 480 | "type": "asset" 481 | }, 482 | { 483 | "name": "reserve_connector_balance", 484 | "type": "asset" 485 | } 486 | ], 487 | "name": "currency_stats" 488 | }, 489 | { 490 | "base": "", 491 | "fields": [ 492 | { 493 | "name": "owner", 494 | "type": "account_name" 495 | }, 496 | { 497 | "name": "quantity", 498 | "type": "extended_asset" 499 | }, 500 | { 501 | "name": "expiration", 502 | "type": "time_point_sec" 503 | }, 504 | { 505 | "name": "memo", 506 | "type": "string" 507 | } 508 | ], 509 | "name": "exunlock" 510 | }, 511 | { 512 | "base": "", 513 | "fields": [ 514 | { 515 | "name": "from", 516 | "type": "account_name" 517 | }, 518 | { 519 | "name": "to", 520 | "type": "account_name" 521 | }, 522 | { 523 | "name": "quantity", 524 | "type": "extended_asset" 525 | }, 526 | { 527 | "name": "expiration", 528 | "type": "time_point_sec" 529 | }, 530 | { 531 | "name": "memo", 532 | "type": "string" 533 | } 534 | ], 535 | "name": "exlocktrans" 536 | } 537 | ], 538 | "tables": [ 539 | { 540 | "index_type": "i64", 541 | "key_names": [ 542 | "primary" 543 | ], 544 | "key_types": [ 545 | "uint64" 546 | ], 547 | "name": "accounts", 548 | "type": "account" 549 | }, 550 | { 551 | "index_type": "i64", 552 | "key_names": [ 553 | "currency" 554 | ], 555 | "key_types": [ 556 | "uint64" 557 | ], 558 | "name": "stats", 559 | "type": "currency_stats" 560 | }, 561 | { 562 | "index_type": "i64", 563 | "key_names": [ 564 | "primary" 565 | ], 566 | "key_types": [ 567 | "uint64" 568 | ], 569 | "name": "ctxaccounts", 570 | "type": "account" 571 | }, 572 | { 573 | "index_type": "i64", 574 | "key_names": [ 575 | "primary" 576 | ], 577 | "key_types": [ 578 | "uint64" 579 | ], 580 | "name": "lockaccounts", 581 | "type": "lock_account" 582 | } 583 | ], 584 | "types": [ 585 | { 586 | "new_type_name": "account_name", 587 | "type": "name" 588 | } 589 | ], 590 | "variants": [], 591 | "version": "eosio::abi/1.0" 592 | }, 593 | "message": "Success" 594 | } 595 | ``` 596 | -------------------------------------------------------------------------------- /docs/简体中文/account.md: -------------------------------------------------------------------------------- 1 | # 获取账户信息 2 | 3 | ## 请求端点 4 | 5 | `/v1/accounts/:account_name` 6 | 7 | ## 请求示例 8 | 9 | `https://api.eosmonitor.io/v1/accounts/eosteaeostea` 10 | 11 | ## 返回结果字段说明 12 | 13 | | 字段 | 类型 | 描述 | 14 | | --- | --- | --- | 15 | | account_name | String | 账户名 | 16 | 17 | 18 | ## 返回结果示例 19 | 20 | ```json 21 | { 22 | "code": 0, 23 | "data": { 24 | "account_name": "eosteaeostea", 25 | "cpu_limit": { 26 | "available": 28521, 27 | "max": 48203, 28 | "used": 19682 29 | }, 30 | "cpu_weight": 1000, 31 | "created": "2018-08-29T06:55:35.000", 32 | "head_block_num": 6155366, 33 | "head_block_time": "2018-10-03T10:00:16.500", 34 | "last_code_update": "1970-01-01T00:00:00.000", 35 | "net_limit": { 36 | "available": 387963, 37 | "max": 388068, 38 | "used": 105 39 | }, 40 | "net_weight": 1000, 41 | "permissions": [ 42 | { 43 | "parent": "owner", 44 | "perm_name": "active", 45 | "required_auth": { 46 | "keys": [ 47 | { 48 | "key": "FO7VjNNh8ro218caH6wzFuk3vJCKaxeaQphdvDb2PjUE3nmKNiVU", 49 | "weight": 1 50 | } 51 | ], 52 | "threshold": 1 53 | } 54 | }, 55 | { 56 | "parent": "", 57 | "perm_name": "owner", 58 | "required_auth": { 59 | "keys": [ 60 | { 61 | "key": "FO7VjNNh8ro218caH6wzFuk3vJCKaxeaQphdvDb2PjUE3nmKNiVU", 62 | "weight": 1 63 | } 64 | ], 65 | "threshold": 1 66 | } 67 | } 68 | ], 69 | "privileged": false, 70 | "ram_quota": 5475, 71 | "ram_usage": 4988, 72 | "total_resources": { 73 | "cpu_weight": "0.1000 FO", 74 | "net_weight": "0.1000 FO", 75 | "owner": "eosteaeostea", 76 | "ram_bytes": 4075 77 | } 78 | }, 79 | "message": "Success" 80 | } 81 | ``` -------------------------------------------------------------------------------- /docs/简体中文/actions.md: -------------------------------------------------------------------------------- 1 | # 获取Action 2 | 3 | ## 请求端点 4 | 5 | `/v1/actions` 6 | 7 | ## 请求参数 8 | 9 | | 字段 | 类型 | 必填 | 描述 | 10 | | --- | --- | --- | --- | 11 | | name | String | 是 | action类型, transfer, sellram, buyram .... | 12 | | account | String | 是 | 要查询的账户名 | 13 | | page | Int | 否 | 页数, 默认1 | 14 | | per_page | Int | 否 | 每页返回的数据, 默认10 | 15 | 16 | ## 请求示例 17 | 18 | `https://api.eosmonitor.io/v1/actions?name=transfer&account=eosteaeostea` 19 | 20 | ## 返回结果字段说明 21 | 22 | | 字段 | 类型 | 描述 | 23 | | --- | --- | --- | 24 | | account | String | 账户名 | 25 | | contract | String | 合约账户 | 26 | | quantity | String | 代币余额| 27 | | symbol | String | 代币符号| 28 | 29 | 30 | ## 返回结果示例 31 | 32 | ```json 33 | { 34 | "code": 0, 35 | "data": { 36 | "more": true, 37 | "rows": [ 38 | { 39 | "account": "eosio.token", 40 | "authorization": [ 41 | { 42 | "actor": "eosio.bpay", 43 | "permission": "active" 44 | }, 45 | { 46 | "actor": "eosteaeostea", 47 | "permission": "active" 48 | } 49 | ], 50 | "block_num": 374238, 51 | "block_time": "2018-08-30T04:44:07.5Z", 52 | "context_free": false, 53 | "cpu_usage": 0, 54 | "data": { 55 | "from": "eosio.bpay", 56 | "memo": "producer block pay", 57 | "quantity": "3770.6717 FO", 58 | "to": "eosteaeostea" 59 | }, 60 | "expiration": "2018-08-30T04:45:06Z", 61 | "hex_data": "008037f500ea30556054c65419953155dd5b3f020000000004464f00000000001270726f647563657220626c6f636b20706179", 62 | "id": 560565, 63 | "name": "transfer", 64 | "producer_block_id": "0005b5ded5079365d034ddc53eafb4aa720a9eb764f9fe3d8860ffa7bb60b7a0", 65 | "trx_id": "b74e08b1812abb581fb4ba1767549d1cacf005c91ca79e1f51751cac921241d6" 66 | }, 67 | { 68 | "注释": "这里省略了很多..." 69 | } 70 | ], 71 | "total": 208 72 | }, 73 | "message": "Success" 74 | } 75 | ``` -------------------------------------------------------------------------------- /docs/简体中文/block.md: -------------------------------------------------------------------------------- 1 | # 获取区块信息 2 | 3 | ## 请求端点 4 | 5 | `/v1/blocks/:block_id_or_block_num` 6 | 7 | ## 请求示例 8 | 9 | `https://api.eosmonitor.io/v1/blocks/2` 10 | 11 | 12 | ## 返回结果示例 13 | 14 | ```json 15 | { 16 | "code": 0, 17 | "data": { 18 | "block_num": 2, 19 | "header": { 20 | "action_mroot": "0b100beeb61cd9689c3ec2c06b44b4d01d4a52ebd8fa771610079b9bb7c063da", 21 | "block_signing_key": "EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV", 22 | "previous": "000000018efcb02cbe6329996bdf007c30077907a3fbec119373644a4da3902e", 23 | "producer_signature": "SIG_K1_K6dARMz2whSqFDfhgDFfRuyQ4HiqNLqTUvq4ykCmzVxKf2rC3CVnqBnWZ5vNYJnG8YAtpA2jri7RG7rs7Ti2AwECw6PYhJ", 24 | "transaction_mroot": "0000000000000000000000000000000000000000000000000000000000000000" 25 | }, 26 | "id": "0000000213cadfe48695554f2c642fb4d16314a3a5f57b538959103fafc0bd46", 27 | "in_current_chain": true, 28 | "irreversible": true, 29 | "producer": "eosio", 30 | "timestamp": "2018-08-28T00:00:00.5Z", 31 | "trx_count": 0, 32 | "validated": true 33 | }, 34 | "message": "Success" 35 | } 36 | ``` -------------------------------------------------------------------------------- /docs/简体中文/block_transactions.md: -------------------------------------------------------------------------------- 1 | # 获取区块交易 2 | 3 | ## 请求端点 4 | 5 | `/v1/blocks/:block_num/transactions` 6 | 7 | ## 请求参数 8 | 9 | | 字段 | 类型 | 必填 | 描述 | 10 | | --- | --- | --- | --- | 11 | | page | Int | 否 | 页数, 默认1 | 12 | | per_page | Int | 否 | 每页返回的数据, 默认10 | 13 | 14 | ## 请求示例 15 | 16 | `https://api.eosmonitor.io/v1/blocks/1830871/transactions` 17 | 18 | ## 返回结果示例 19 | 20 | ```json 21 | 22 | { 23 | "code": 0, 24 | "data": { 25 | "more": true, 26 | "rows": [ 27 | { 28 | "action_num": 1, 29 | "block_num": 1830871, 30 | "block_time": "2018-09-08T06:20:45.5Z", 31 | "delay_sec": 0, 32 | "expiration": "2018-09-08T06:21:44Z", 33 | "id": "104bb57728b3ad28e9eed18ad4ac5660c0cb7880e9369d1f429c798319b2d45d", 34 | "irreversible": true, 35 | "max_cpu_usage_ms": 0, 36 | "max_net_usage_words": 0, 37 | "producer_block_id": "001befd71043824d3496e3c9e9fb60eac4b595a27320cb011417bb44bca74f7c", 38 | "receipt": { 39 | "cpu_usage_us": 10290, 40 | "net_usage_words": 13, 41 | "status": "executed" 42 | }, 43 | "ref_block_num": 61067, 44 | "ref_block_prefix": 3525603815, 45 | "signatures": [ 46 | "SIG_K1_KchwMXRYbUaEdhe1tfnbNMkM9ddvFSAKbzgFgrsKa8HgYbUUTgik82XHFS2FCGAW74yLJYBLhwKPmMwScS6Pg6YkRLUVBa" 47 | ], 48 | "signed_id": "790e1f223d4814fb9c9cca6142a5a78bd2ed2b49d2343ab9d4cd9cd2b0fe7d3e" 49 | }, 50 | { 51 | "注释": "省略其他" 52 | } 53 | ], 54 | "total": 2 55 | }, 56 | "message": "Success" 57 | } 58 | ``` -------------------------------------------------------------------------------- /docs/简体中文/coins.md: -------------------------------------------------------------------------------- 1 | # 获取账户代币列表 2 | 3 | ## 请求端点 4 | 5 | `/v1/accounts/:account_name/coins` 6 | 7 | ## 请求参数 8 | 9 | | 字段 | 类型 | 必填 | 描述 | 10 | | --- | --- | --- | --- | 11 | | page | Int | 否 | 页数, 默认1 | 12 | | per_page | Int | 否 | 每页返回的数据, 默认10 | 13 | 14 | ## 请求示例 15 | 16 | `https://api.eosmonitor.io/v1/accounts/eosteaeostea/coins` 17 | 18 | ## 返回结果字段说明 19 | 20 | | 字段 | 类型 | 描述 | 21 | | --- | --- | --- | 22 | | account | String | 账户名 | 23 | | contract | String | 合约账户 | 24 | | quantity | String | 代币余额| 25 | | symbol | String | 代币符号| 26 | 27 | 28 | ## 返回结果示例 29 | 30 | ```json 31 | { 32 | "code": 0, 33 | "data": { 34 | "more": false, 35 | "rows": [ 36 | { 37 | "account": "eosteaeostea", 38 | "contract": "eosio", 39 | "quantity": "0.7380 EOS", 40 | "symbol": "EOS" 41 | } 42 | ], 43 | "total": 1 44 | }, 45 | "message": "Success" 46 | } 47 | ``` -------------------------------------------------------------------------------- /docs/简体中文/index.md: -------------------------------------------------------------------------------- 1 | # 欢迎使用EOSMonitor API 2 | 3 | EOSMonitor API 可以被用来获取EOS网络中的区块, 交易, Action, 账户, 账户余额, Token, 合约等信息。 4 | 5 | ## API URL 6 | 7 | EOSMonitor API 地址: 8 | > EOS主网上的数据 9 | 10 | * 使用大陆地区CDN 11 | * http(s)://eosmonitor-api.tc.ink 12 | * 使用海外CDN 13 | * http(s)://api.eosmontor.io 14 | 15 | *** 16 | 17 | FoMeta API 地址: 18 | > FIBOS主网上的数据 19 | 20 | * 使用大陆地区CDN 21 | * http(s)://fometa-api.tc.ink 22 | * 使用海外CDN 23 | * http(s)://api.fometa.io 24 | 25 | ## 使用限制 26 | 27 | 测试Token: dRrJB0iD2Yk3uq1X1lqEN1FzoOWmPltO 28 | 29 | 本文档除特殊说明的接口之外, 其他每个接口默认都需要携带`token`参数进行授权。比如: 30 | 31 | `curl https://api.eosmonitor.io/v1/blocks/100?par=par&token={yourtoken}` 32 | 33 | 每个接口均按照分钟限制请求次数, 如果超过约定的每分钟请求次数, 相应的`token`将会被服务器限制请求一分钟。 34 | 35 | 如果一个`token`长时间处于超过请求次数限制的状态(这个Token基本每分钟都会被限制, 实际上大部分时间都处于不可用状态),那么这个`token`将会被永久限制使用。 36 | 37 | ## 公共响应头 38 | 39 | 每个请求都会有4个响应头。 40 | 41 | * X-RateLimit-Delay: 47 42 | * 表示在当前的周期内还剩余的时间, 单位秒 43 | * 一般是最大60, 最小0, 到0之后又会从60从新计数 44 | * X-RateLimit-Limit: 60 45 | * 目前一个周期允许的最大请求次数 46 | * X-RateLimit-Request: 10 47 | * 目前周期内已经请求的次数 48 | * X-RateLimit-Remaining: 50 49 | * 目前周期内剩余的请求次数 50 | * 随着 `X-Ratelimit-Delay` 每周期重置 51 | * X-Request-Id: 9uJXQiBrT8ye9NohoCB8KkNyDhqxty5a 52 | * 当前请求的全局唯一ID, 用作调试 53 | -------------------------------------------------------------------------------- /docs/简体中文/inline_actions.md: -------------------------------------------------------------------------------- 1 | # 获取Inline Action 2 | 3 | ## 请求端点 4 | 5 | `/v1/actions/:action_id/inline` 6 | 7 | ## 请求参数 8 | 9 | | 字段 | 类型 | 必填 | 描述 | 10 | | --- | --- | --- | --- | 11 | | page | Int | 否 | 页数, 默认1 | 12 | | per_page | Int | 否 | 每页返回的数据, 默认10 | 13 | 14 | ## 请求示例 15 | 16 | `https://api.eosmonitor.io/v1/actions/725714/inline` 17 | 18 | 19 | ## 返回结果示例 20 | 21 | ```json 22 | { 23 | "code": 0, 24 | "data": { 25 | "more": false, 26 | "rows": ["结构和action结构相同"], 27 | "total": 0 28 | }, 29 | "message": "Success" 30 | } 31 | ``` -------------------------------------------------------------------------------- /docs/简体中文/key_accounts.md: -------------------------------------------------------------------------------- 1 | # 获取Key下的账户 2 | 3 | ## 请求端点 4 | 5 | `/v1/keys/get_accounts` 6 | 7 | ## 请求参数 8 | 9 | | 字段 | 类型 | 必填 | 描述 | 10 | | --- | --- | --- | --- | 11 | | public_key | String | 是 | 要查询的key | 12 | 13 | ## 请求示例 14 | 15 | `https://api.eosmonitor.io/v1/keys/get_accounts?public_key=FO7VjNNh8ro218caH6wzFuk3vJCKaxeaQphdvDb2PjUE3nmKNiVU` 16 | 17 | ## 返回结果示例 18 | 19 | ```json 20 | { 21 | "code": 0, 22 | "data": [ 23 | "eosteaeostea" 24 | ], 25 | "message": "Success" 26 | } 27 | ``` -------------------------------------------------------------------------------- /docs/简体中文/transaction_action.md: -------------------------------------------------------------------------------- 1 | # 获取交易Action 2 | 3 | ## 请求端点 4 | 5 | `/v1/transactions/:trx_id/actions` 6 | 7 | ## 请求参数 8 | 9 | | 字段 | 类型 | 必填 | 描述 | 10 | | --- | --- | --- | --- | 11 | | page | Int | 否 | 页数, 默认1 | 12 | | per_page | Int | 否 | 每页返回的数据, 默认10 | 13 | 14 | ## 请求示例 15 | 16 | `https://api.eosmonitor.io/v1/transactions/104bb57728b3ad28e9eed18ad4ac5660c0cb7880e9369d1f429c798319b2d45d/actions` 17 | 18 | ## 返回结果示例 19 | 20 | ```json 21 | { 22 | "code": 0, 23 | "data": { 24 | "more": true, 25 | "rows": [ 26 | { 27 | "action_num": 0, 28 | "block_num": 1830871, 29 | "block_time": "2018-09-08T06:20:45.5Z", 30 | "delay_sec": 0, 31 | "expiration": null, 32 | "id": 4731915, 33 | "max_cpu_usage_ms": 0, 34 | "max_net_usage_words": 0, 35 | "producer_block_id": "001befd71043824d3496e3c9e9fb60eac4b595a27320cb011417bb44bca74f7c", 36 | "receipt": { 37 | "cpu_usage_us": 0, 38 | "net_usage_words": 0, 39 | "status": "" 40 | }, 41 | "ref_block_num": 0, 42 | "ref_block_prefix": 0, 43 | "signatures": null, 44 | "signed_id": "" 45 | }, 46 | { 47 | "注释": "省略..." 48 | } 49 | ], 50 | "total": 18 51 | }, 52 | "message": "Success" 53 | } 54 | ``` -------------------------------------------------------------------------------- /docs/简体中文/transactions.md: -------------------------------------------------------------------------------- 1 | # 获取Transaction 2 | 3 | ## 请求端点 4 | 5 | `/v1/transactions/:trx_id` 6 | 7 | ## 请求示例 8 | 9 | `https://api.eosmonitor.io/v1/transactions/104bb57728b3ad28e9eed18ad4ac5660c0cb7880e9369d1f429c798319b2d45d` 10 | 11 | ## 返回结果示例 12 | 13 | ```json 14 | { 15 | "code": 0, 16 | "data": { 17 | "action_num": 1, 18 | "block_num": 1830871, 19 | "block_time": "2018-09-08T06:20:45.5Z", 20 | "delay_sec": 0, 21 | "expiration": "2018-09-08T06:21:44Z", 22 | "id": "104bb57728b3ad28e9eed18ad4ac5660c0cb7880e9369d1f429c798319b2d45d", 23 | "irreversible": true, 24 | "max_cpu_usage_ms": 0, 25 | "max_net_usage_words": 0, 26 | "producer_block_id": "001befd71043824d3496e3c9e9fb60eac4b595a27320cb011417bb44bca74f7c", 27 | "receipt": { 28 | "cpu_usage_us": 10290, 29 | "net_usage_words": 13, 30 | "status": "executed" 31 | }, 32 | "ref_block_num": 61067, 33 | "ref_block_prefix": 3525603815, 34 | "signatures": [ 35 | "SIG_K1_KchwMXRYbUaEdhe1tfnbNMkM9ddvFSAKbzgFgrsKa8HgYbUUTgik82XHFS2FCGAW74yLJYBLhwKPmMwScS6Pg6YkRLUVBa" 36 | ], 37 | "signed_id": "790e1f223d4814fb9c9cca6142a5a78bd2ed2b49d2343ab9d4cd9cd2b0fe7d3e" 38 | }, 39 | "message": "Success" 40 | } 41 | ``` -------------------------------------------------------------------------------- /docs/简体中文/vote.md: -------------------------------------------------------------------------------- 1 | # 获取账户投票信息 2 | 3 | ## 请求端点 4 | 5 | `/v1/accounts/:account_name/vote` 6 | 7 | ## 请求示例 8 | 9 | `https://api.eosmonitor.io/v1/accounts/londonbpfib5/vote` 10 | 11 | ## 返回结果字段说明 12 | 13 | | 字段 | 类型 | 描述 | 14 | | --- | --- | --- | 15 | | is_proxy | Bool | 是否为代理帐号 | 16 | | last_vote_weight | String | | 17 | | owner | String | 投票账户| 18 | | producers | Array[String] | 投的节点| 19 | | proxied_vote_weight | String | 代理的投票权重 | 20 | | staked | String | 账户抵押量, 最小单位 | 21 | | voter_num | Int | 投票的节点数量| 22 | 23 | ## 返回结果示例 24 | 25 | ```json 26 | { 27 | "code": 0, 28 | "data": { 29 | "is_proxy": false, 30 | "last_vote_weight": "175880767898244.71875000000000000", 31 | "owner": "londonbpfib5", 32 | "producers": [ 33 | "aprilfibosbp", 34 | "bitzebitze11", 35 | "universalbi1" 36 | ], 37 | "proxied_vote_weight": "0E-6176", 38 | "proxy": "", 39 | "staked": "383300000", 40 | "voter_num": 3 41 | }, 42 | "message": "Success" 43 | } 44 | 45 | ``` -------------------------------------------------------------------------------- /mkdocs.yml: -------------------------------------------------------------------------------- 1 | site_name: 'EOSMonitor API' 2 | site_description: 'EOSMonitor API Service' 3 | site_author: 'EOSTEA' 4 | theme: 5 | name: 'material' 6 | custom_dir: 'theme' 7 | palette: 8 | primary: 'White' 9 | accent: 'White' 10 | font: 11 | text: 'Roboto' 12 | code: 'Roboto Mono' 13 | logo: 14 | icon: 'cloud' 15 | language: 'zh' 16 | feature: 17 | tabs: true 18 | extra: 19 | social: 20 | - type: 'github' 21 | link: 'https://github.com/eostea/eosmonitor-api' 22 | markdown_extensions: 23 | - meta 24 | - admonition 25 | - codehilite: 26 | guess_lang: true 27 | - toc: 28 | permalink: true 29 | repo_name: 'eostea/eosmonitor-api' 30 | edit_uri: 'edit/master/docs' 31 | repo_url: 'https://github.com/eostea/eosmonitor-api' 32 | -------------------------------------------------------------------------------- /theme/partials/header.html: -------------------------------------------------------------------------------- 1 |
2 | 49 |
--------------------------------------------------------------------------------