{"id":18972109,"url":"https://github.com/jpmonette/bscscan-ts","last_synced_at":"2025-06-28T22:40:38.766Z","repository":{"id":37653438,"uuid":"367156075","full_name":"jpmonette/bscscan-ts","owner":"jpmonette","description":"Explore the Binance Smart Chain using TypeScript and JavaScript","archived":false,"fork":false,"pushed_at":"2023-07-19T02:31:37.000Z","size":982,"stargazers_count":23,"open_issues_count":6,"forks_count":11,"subscribers_count":3,"default_branch":"develop","last_synced_at":"2025-04-16T11:02:57.677Z","etag":null,"topics":["api","binance","blockchain","bsc","defi","ethereum","javascript","typescript"],"latest_commit_sha":null,"homepage":"https://jpmonette.github.io/bscscan-ts/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jpmonette.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT_md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-13T19:38:55.000Z","updated_at":"2024-09-09T21:05:19.000Z","dependencies_parsed_at":"2024-06-21T17:54:27.421Z","dependency_job_id":"ed2ca136-be6b-44ee-be0a-65e5a7d5bfd5","html_url":"https://github.com/jpmonette/bscscan-ts","commit_stats":{"total_commits":41,"total_committers":3,"mean_commits":"13.666666666666666","dds":"0.31707317073170727","last_synced_commit":"b26e52e7b653044572fee275d24700f76a7bfcf9"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpmonette%2Fbscscan-ts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpmonette%2Fbscscan-ts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpmonette%2Fbscscan-ts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpmonette%2Fbscscan-ts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jpmonette","download_url":"https://codeload.github.com/jpmonette/bscscan-ts/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249734702,"owners_count":21317876,"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":["api","binance","blockchain","bsc","defi","ethereum","javascript","typescript"],"created_at":"2024-11-08T15:06:55.533Z","updated_at":"2025-04-19T16:12:49.218Z","avatar_url":"https://github.com/jpmonette.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\u003ccode\u003e@jpmonette/bscscan\u003c/code\u003e\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\u003ccode\u003e@jpmonette/bscscan\u003c/code\u003e - Explore the \u003cstrong\u003eBinance Smart Chain\u003c/strong\u003e using TypeScript and JavaScript\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://travis-ci.com/jpmonette/bscscan-ts\"\u003e\u003cimg src=\"https://travis-ci.com/jpmonette/bscscan-ts.svg?branch=develop\" alt=\"Build Status\"\u003e\u003c/a\u003e \u003ca href='https://coveralls.io/github/jpmonette/bscscan-ts?branch=develop'\u003e\u003cimg src='https://coveralls.io/repos/github/jpmonette/bscscan-ts/badge.svg?branch=develop' alt='Coverage Status' /\u003e\u003c/a\u003e \u003ca href=\"https://www.npmjs.com/package/@jpmonette/bscscan\"\u003e\u003cimg src=\"https://badge.fury.io/js/%40jpmonette%2Fbscscan.svg\" alt=\"npm version\" height=\"18\"\u003e\u003c/a\u003e \u003ca href=\"https://github.com/facebook/jest\"\u003e\u003cimg src=\"https://img.shields.io/badge/tested_with-jest-99424f.svg\" alt=\"Tested with Jest\"\u003e\u003c/a\u003e \u003ca href=\"https://opensource.org/licenses/MIT\"\u003e\u003cimg src=\"https://img.shields.io/badge/License-MIT-yellow.svg\" alt=\"License: MIT\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n**👩🏻‍💻 Developer Ready**: Interact with the BscScan API in no time!\n\n**💪🏼 Strongly Typed**: Developed using TypeScript.\n\n**🔒 Battleproof**: Tested using Jest.\n\n# Getting Started\n\n## Installation\n\n```bash\n$ yarn add @jpmonette/bscscan\n```\n\n## Usage\n\n### Import \u0026 Initialize\n\n```ts\nimport { BscScan } from \"@jpmonette/bscscan\";\n\nconst client = new BscScan({ apikey: \"api-key\" });\n```\n\n### Get Account Balance\n\n```ts\nconst balance = await client.accounts.getBalance({ address: \"0x4e656459ed25bf986eea1196bc1b00665401645d\" });\n\nconsole.log(balance);\n// 13305527100000000000\n```\n\n### Get Transaction List\n\n```ts\nconst txlist = await client.accounts.getTxList({ address: \"0x4e656459ed25bf986eea1196bc1b00665401645d\" });\n\nconsole.log(txlist);\n//[\n//  {\n//    \"blockNumber\": \"12476392\",\n//    \"timeStamp\": \"1636382206\",\n//    \"hash\": \"0x07ef689ba048006542b287aa6e89c777a9f6550b01ceac83fd3bef88ead38387\",\n//    \"nonce\": \"2095670\",\n//    \"blockHash\": \"0x3a029015928e4752ace608cd879c83efeca1a3a30dd0c1755ec97aa335813ae1\",\n//    \"transactionIndex\": \"24\",\n//    \"from\": \"0xdccf3b77da55107280bd850ea519df3705d1a75a\",\n//    \"to\": \"0x4e656459ed25bf986eea1196bc1b00665401645d\",\n//    \"value\": \"3873118620000000000\",\n//    \"gas\": \"207128\",\n//    \"gasPrice\": \"10000000000\",\n//    \"isError\": \"0\",\n//    \"txreceipt_status\": \"1\",\n//    \"input\": \"0x\",\n//    \"contractAddress\": \"\",\n//    \"cumulativeGasUsed\": \"1463016\",\n//    \"gasUsed\": \"21000\",\n//    \"confirmations\": \"361409\"\n//  },\n//  {\n//    \"blockNumber\": \"12685304\",\n//    \"timeStamp\": \"1637030116\",\n//    \"hash\": \"0xba2ad55a8cc6126c125a2460cbc27030b4ecb9cce27e8f238fcd71fcf32d6c24\",\n//    \"nonce\": \"155854\",\n//    \"blockHash\": \"0x53a5e395180d31adc534a846b3620690b0bc40237819df209980d0090fd8e8f3\",\n//    \"transactionIndex\": \"41\",\n//    \"from\": \"0x1fbe2acee135d991592f167ac371f3dd893a508b\",\n//    \"to\": \"0x4e656459ed25bf986eea1196bc1b00665401645d\",\n//    \"value\": \"2559805720000000000\",\n//    \"gas\": \"207128\",\n//    \"gasPrice\": \"10000000000\",\n//    \"isError\": \"0\",\n//    \"txreceipt_status\": \"1\",\n//    \"input\": \"0x\",\n//    \"contractAddress\": \"\",\n//    \"cumulativeGasUsed\": \"1224129\",\n//    \"gasUsed\": \"21000\",\n//    \"confirmations\": \"152497\"\n//  }\n//]\n```\n\n## License\n\n\u003e Copyright (C) 2021, Jean-Philippe Monette \u003ccontact@jpmonette.net\u003e\n\u003e\n\u003e Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\u003e\n\u003e The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\u003e\n\u003e THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpmonette%2Fbscscan-ts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjpmonette%2Fbscscan-ts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpmonette%2Fbscscan-ts/lists"}