{"id":16284993,"url":"https://github.com/goodforgod/bloxy-api","last_synced_at":"2025-10-28T19:08:00.992Z","repository":{"id":57719835,"uuid":"159240936","full_name":"GoodforGod/bloxy-api","owner":"GoodforGod","description":"🔗 Kotlin/Java library for Bloxy.info API.","archived":false,"fork":false,"pushed_at":"2022-03-01T23:02:07.000Z","size":489,"stargazers_count":13,"open_issues_count":0,"forks_count":17,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-17T13:47:18.824Z","etag":null,"topics":["api","api-wrapper","bloxy","bloxy-api","bloxy-info","bloxy-wrapper","ethereum","java","kotlin"],"latest_commit_sha":null,"homepage":"https://bloxy.info","language":"Kotlin","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/GoodforGod.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-26T22:23:24.000Z","updated_at":"2023-03-13T12:10:28.000Z","dependencies_parsed_at":"2022-09-13T13:02:01.057Z","dependency_job_id":null,"html_url":"https://github.com/GoodforGod/bloxy-api","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoodforGod%2Fbloxy-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoodforGod%2Fbloxy-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoodforGod%2Fbloxy-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoodforGod%2Fbloxy-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GoodforGod","download_url":"https://codeload.github.com/GoodforGod/bloxy-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244538589,"owners_count":20468745,"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","api-wrapper","bloxy","bloxy-api","bloxy-info","bloxy-wrapper","ethereum","java","kotlin"],"created_at":"2024-10-10T19:21:49.900Z","updated_at":"2025-10-28T19:08:00.900Z","avatar_url":"https://github.com/GoodforGod.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ⚙️ Bloxy Api\n\n![travis](https://travis-ci.org/GoodforGod/bloxy-api.svg?branch=master)\n[![Maintainability](https://api.codeclimate.com/v1/badges/8100bb9c81e48d0a90eb/maintainability)](https://codeclimate.com/github/GoodforGod/bloxy-api/maintainability)\n[![codecov](https://codecov.io/gh/GoodforGod/bloxy-api/branch/master/graph/badge.svg)](https://codecov.io/gh/GoodforGod/bloxy-api)\n\nKotlin \u0026 Java Library for all available [Bloxy](https://bloxy.info) API endpoints.\n\n[Bloxy.info]((https://bloxy.info)) is a source of open, reliable, verifiable and objective data about the blockchain. \n\n[Readme Web Page](https://goodforgod.github.io/bloxy-api/)\n\n## Dependency :rocket:\n\nLibrary depends on [Klaxon](https://github.com/cbeust/klaxon) so jcenter repository is required.\n\n**Gradle**\n```groovy\nrepositories {\n    jcenter()\n}\n \ndependencies {\n    compile 'com.github.goodforgod:bloxy-api:1.2.1'\n}\n```\n\n**Maven**\n```xml\n\u003crepositories\u003e\n    \u003crepository\u003e\n        \u003cid\u003ejcenter\u003c/id\u003e\n        \u003curl\u003ehttps://jcenter.bintray.com/\u003c/url\u003e\n    \u003c/repository\u003e\n\u003c/repositories\u003e\n \n\u003cdependencies\u003e\n    \u003cdependency\u003e\n        \u003cgroupId\u003ecom.github.goodforgod\u003c/groupId\u003e\n        \u003cartifactId\u003ebloxy-api\u003c/artifactId\u003e\n        \u003cversion\u003e1.2.1\u003c/version\u003e\n    \u003c/dependency\u003e\n\u003c/dependencies\u003e\n```\n\n## Content\n- [Getting Started](#getting-started)\n- [Java Project Dependency](#java-project-dependency)\n- [Custom HttpClient](#custom-httpclient)\n- [API support](#api-modules)\n- [API examples](#api-examples)\n    - [Smart Contract](#smart-contract-api)\n    - [DEX](#dex-api)\n    - [DApp](#dapp-api)\n- [Version History](#version-history)\n\n## Getting Started\n\nAll you need to start is just to get *API key* to [Bloxy](https://bloxy.info/login/new), **key will be in the email (login link)**\n\n*Bloxy Client in Java*\n```java\nBloxyApi api = new BloxyApi(\"YourApiKey\");\n```\n\n*Bloxy Client in Kotlin*\n```kotlin\nval api = BloxyApi(\"YourApiKey\")\n```\n\n## Java Project Dependency\n\nIn case you are using library in *Java* project and have *ParseException*'s, mostly its Klaxon missing some kotlin dependencies.\nTry to manually add *kotlin stdlib*.\n\n**Maven**\n```xml\n\u003cdependencies\u003e\n    \u003cdependency\u003e\n        \u003cgroupId\u003eorg.jetbrains.kotlin\u003c/groupId\u003e\n        \u003cartifactId\u003ekotlin-stdlib-jdk8\u003c/artifactId\u003e\n        \u003cversion\u003e1.3.31\u003c/version\u003e // Or your version\n    \u003c/dependency\u003e\n\u003c/dependencies\u003e\n```\n\n**Gradle**\n```groovy\ndependencies {\n    compile \"org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.31\" // Or your version\n}\n```\n\n## Custom HttpClient\n\nIn case you need to set custom timeout, custom headers or better implementation for HttpClient, \njust implement **IHttpClient** by your self or initialize it with your values.\n\n*Java*\n```java\nSupplier\u003cIHttpClient\u003e supplier = () -\u003e new HttpClient(10000, 40000);\nBloxyApi api = new BloxyApi(\"YourApiKey\", supplier);\n```\n\n*Kotlin*\n```kotlin\nval supplier = Supplier { HttpClient(10000, 40000) }\nval api = BloxyApi(\"YourApiKey\", supplier)\n```\n\n## API Modules\n\nLibrary supports all API [modules](https://bloxy.info/api_methods) with all endpoints support for each module:\n* *Address*\n* *DApp*\n* *MakerDAO*\n* *Smart Contract*\n* *DEX*\n* *Money Flow*\n* *Token*\n* *Tokensale*\n* *dYdX*\n* *Livepeer*\n* *Transaction*\n* *Maltego*\n\n## API Examples\n\nBelow there are examples for **some** API modules.\n\nYou can read about all API available [here at Bloxy](https://bloxy.info/api_methods)\n\n#### Smart Contract Api\n\n*Java*\n```java\nBloxyApi api = new BloxyApi(\"YourApiKey\");\nBalance balance = api.getContract().methods(\"0xd26114cd6ee289accf82350c8d8487fedb8a0c07\");\n```\n\n*Kotlin*\n```kotlin\nval api = BloxyApi(\"YourApiKey\")\nval balance = api.contract.methods(\"0xd26114cd6ee289accf82350c8d8487fedb8a0c07\")\n```\n\n#### DEX Api\n\n*Java*\n```java\nBloxyApi api = new BloxyApi(\"YourApiKey\");\nList\u003cDexProtocol\u003e protocols = api.getDex().protocols();\n```\n\n*Kotlin*\n```kotlin\nval api = BloxyApi(\"YourApiKey\")\nval protocols = api.dex.protocols()\n```\n\n#### DApp Api\n\n*Java*\n```java\nBloxyApi api = new BloxyApi(\"YourApiKey\");\nList\u003cDAppStats\u003e appStats = api.getDapp().statistics();\n```\n\n*Kotlin*\n```kotlin\nval api = BloxyApi(\"YourApiKey\")\nval appStats = api.dapp.statistics()\n```\n\n## Version History\n\n**1.2.1** - Base URL for API changed.\n\n**1.2.0** - Token, Contract new endpoints introduced.\n\n**1.1.0** - Address, Transaction, Dex, Token, MoneyFlow, TokenSale APIs enchanted, tests were reinforced\n\n**1.0.4** - Livepeer \u0026 dYdY \u0026 Maltego API modules support.\n\n**1.0.3** - DApp, MakerDAO API support \u0026 Address API extension support.\n\n**1.0.2** - Contract API support.\n\n**1.0.1** - Gradle/Kotlin dependency publish issue, BasicProvider getOffset fix, HttpClient decoding support, javadoc improvements.\n\n**1.0.0** - Initial project with all API functionality, with tests coverage for all cases.\n\n## License\n\nThis project is licensed under the MIT - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoodforgod%2Fbloxy-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoodforgod%2Fbloxy-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoodforgod%2Fbloxy-api/lists"}