{"id":13650194,"url":"https://github.com/yasaricli/chainradar-api","last_synced_at":"2025-04-10T10:31:08.842Z","repository":{"id":57196733,"uuid":"118435486","full_name":"yasaricli/chainradar-api","owner":"yasaricli","description":"Blockchain Explorer API for Chainradar","archived":false,"fork":false,"pushed_at":"2018-09-01T01:54:57.000Z","size":15,"stargazers_count":5,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-11T09:09:48.958Z","etag":null,"topics":["aeon","api","bbr","bcn","blockchain","btc","chainradar","coins","cryptonote","dsh","duck","fcn","mcn","mro","rd"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/chainradar","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yasaricli.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-22T09:29:56.000Z","updated_at":"2024-10-08T15:18:11.000Z","dependencies_parsed_at":"2022-09-16T00:20:44.530Z","dependency_job_id":null,"html_url":"https://github.com/yasaricli/chainradar-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yasaricli%2Fchainradar-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yasaricli%2Fchainradar-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yasaricli%2Fchainradar-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yasaricli%2Fchainradar-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yasaricli","download_url":"https://codeload.github.com/yasaricli/chainradar-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248199136,"owners_count":21063641,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aeon","api","bbr","bcn","blockchain","btc","chainradar","coins","cryptonote","dsh","duck","fcn","mcn","mro","rd"],"created_at":"2024-08-02T02:00:34.658Z","updated_at":"2025-04-10T10:31:08.513Z","avatar_url":"https://github.com/yasaricli.png","language":"JavaScript","funding_links":[],"categories":["Blockchain API and Web services"],"sub_categories":[],"readme":"# chainradar-api\n\n\n## Installation\n\n```\nnpm install chainradar\n```\n\n## Usage\n\nImporting:\n\n```js\nvar ChainRadar = require('chainradar');\n```\n\nAn instance of a api needs to be initialized before it can be used:\n\n```js\nvar api = new ChainRadar(options)\n```\n\nOptions:\n\n  * `apiUrl` - API ENDPOINT **default: 'http://chainradar.com/api'**\n  * `version` - CURRENT API VERSION **default: 'v1'**\n  * `coin` - Each API request is relative to a coin, so there is a required parameter **default: bcn**\n\n#### Status\n\nGet actual coin statistics data.\n\n```js\napi.getStatus((data) =\u003e {\n  console.log(data.hash)\n});\n```\n\n#### Blocks headers\n\nGet blocks header data in height range.\n\n```js\nconst blockOptions = {\n  from: '100000',\n  to: '100001'\n};\n\napi.getBlocksHeader(blockOptions, (data) =\u003e {\n  console.log(data)\n});\n```\n\nParameters:\n* from: integer Blocks starting height.\n* to: integer Blocks ending height.\n\n#### Blocks data\n\nGet blocks full data in height range.\n\n```js\nconst blockOptions = {\n  from: '100000',\n  to: '100001'\n};\n\napi.getBlocksData(blockOptions, (data) =\u003e {\n  console.log(data)\n});\n```\n\nParameters:\n* from: integer Blocks starting height.\n* to: integer Blocks ending height.\n\n#### Block header\n\nGet block header data by height or hash.\n\n```js\napi.getBlockHeader('077f4e2c32688157b695d44792ad9dfd986bbabb3fa7e4472805f9858d020f04', (data) =\u003e {\n  console.log(data)\n});\n```\n\nParameters:\n* height|hash: string Block height or hash.\n\n#### Block data\n\nGet block data by height or hash.\n\n```js\napi.getBlockData('077f4e2c32688157b695d44792ad9dfd986bbabb3fa7e4472805f9858d020f04', (data) =\u003e {\n  console.log(data)\n})\n```\n\nParameters:\n* height|hash: string Block height or hash.\n\n#### Transaction header\n\nGet transaction header data.\n\n```js\napi.getTransactionHeader('b90da74c3ffc1210e1432766d06260330008b79cda9cdcb363702490ae054162', (data) =\u003e {\n  console.log(data)\n})\n```\n\nParameters:\n* hash: string Transaction hash.\n\n#### Transaction data\n\nGet transaction full data.\n\n```js\napi.getTransactionData('b90da74c3ffc1210e1432766d06260330008b79cda9cdcb363702490ae054162', (data) =\u003e {\n  console.log(data)\n})\n```\n\nParameters:\n* hash: string Transaction hash.\n\n### Pre Publish\n\n    npm run prepublish\n\n\n### Limits\nThere are API requests count limits by IP for direct calls and by domain for AJAX calls.\n\n#### ANONYMOUS\nDirect calls - `100` requests from one IP in a 1 day.\nAJAX calls - not allowed.\n\n#### LINKED\nIf web-site adds a link to the [ChainRadar](https://chainradar.com/) and [inform us](https://chainradar.com/contact), we will increase its limits to both IP and domain.\n\nDirect calls - `1500` requests from one IP in a 1 day.\nAJAX calls - `30000` total requests referred to linked site domain in a 1 day.\n\n#### PREMIUM\nIf Linked limits are not enough for your web-service, then you can [contact us](https://chainradar.com/contact) and we can discuss special limits.\n\nDonations\n=========\nDonations for the work done in this fork are accepted at\n* BCN: `27HTiGScRW1eUbawbmdNCcBThtVFYBDAL4j9XV4drPVcBh2EDBnBRwKfNCezqRpKfLJf5dmANoy6uA2bGtZ3uT5fJGqgzX8`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyasaricli%2Fchainradar-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyasaricli%2Fchainradar-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyasaricli%2Fchainradar-api/lists"}