{"id":16392055,"url":"https://github.com/mikeshultz/blocksapi","last_synced_at":"2025-08-01T17:39:11.216Z","repository":{"id":147876692,"uuid":"115958697","full_name":"mikeshultz/blocksapi","owner":"mikeshultz","description":"RESTful API for unusual and uncommon blockchain queries.","archived":false,"fork":false,"pushed_at":"2021-01-17T08:37:01.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-22T22:27:52.261Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/mikeshultz.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-02T00:36:54.000Z","updated_at":"2021-01-17T08:37:03.000Z","dependencies_parsed_at":"2023-04-13T12:37:49.719Z","dependency_job_id":null,"html_url":"https://github.com/mikeshultz/blocksapi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mikeshultz/blocksapi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeshultz%2Fblocksapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeshultz%2Fblocksapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeshultz%2Fblocksapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeshultz%2Fblocksapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikeshultz","download_url":"https://codeload.github.com/mikeshultz/blocksapi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikeshultz%2Fblocksapi/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268269571,"owners_count":24223280,"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","status":"online","status_checked_at":"2025-08-01T02:00:08.611Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-10-11T04:48:23.162Z","updated_at":"2025-08-01T17:39:11.187Z","avatar_url":"https://github.com/mikeshultz.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# blocks-api\n\nRESTful API for unusual and uncommon blockchain queries.\n\n## Install\n\n    python setup.py install\n\n## Usage\n\n    blocksapi\n\n## Docker Build \u0026 Deploy\n\n    ./deploy.sh v0.0.1b3\n\n## API\n\nAll API endpoints are prefixed by the version number.  For instance, a call to\n`block` would be `/v1/block`.\n\nAll calls are limited to 100 returned objects.  You can paginate by using the \nrequest object parameter `page`.\n\n### block\n\nQuery for groups of blocks.\n\n#### Request Object\n\n    {\n        'block_number': 1,\n        \"start\": 123,\n        \"end\": 443920,\n        \"start_time\": 1514592000,\n        \"end_time\": 1514851140,\n        \"page\": 1\n    }\n\n- `block_number`: A single block to retreive\n- `start`: The beginning of a range of block numbers to retreive\n- `end`: The end of a range of block numbers to retreive\n- `start_time`: The unix timestamp for the start of a range of blocks to retreive\n- `end_time`: The unix timestamp for the end of a range of blocks to retreive\n- `has_transactions`: Whether or not the block has transactions\n- `page`: The page number of results to retreive\n\n#### Response\n\n    {\n        \"page\": 1,\n        \"results\": [\n            {\n                \"block_number\": 1,\n                \"block_timestamp\": 1514592000,\n                \"hash\": \"0x88e96d4537bea4d9c05d12549907b32561d3bf31f45aae734cdc119f13406cb6\",\n                \"miner\": \"0x05a56E2D52c817161883f50c441c3228CFe54d9f\",\n                \"nonce\": 6024642674226568900,\n                \"difficulty\": 17171480576,\n                \"gas_used\": 0,\n                \"gas_limit\": 5000,\n                \"size\": 537\n            }\n        ]\n    }\n\n### transaction\n\nQuery for transactions.\n\n#### Reqeust Object\n\n    {\n        \"hash\": \"0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060\",\n        \"block_number\": 1,\n        \"from_address\": \"0xA1E4380A3B1f749673E270229993eE55F35663b4\",\n        \"to_address\": \"0x5DF9B87991262F6BA471F09758CDE1c0FC1De734\"\n    }\n\n#### Response\n\n    {\n        \"page\": 1,\n        \"results\": [\n            {\n                \"hash\": \"0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060\",\n                \"block_number\": 1,\n                \"from_address\": \"0xA1E4380A3B1f749673E270229993eE55F35663b4\",\n                \"to_address\": \"0x5DF9B87991262F6BA471F09758CDE1c0FC1De734\",\n                \"value\": 31337,\n                \"gas_price\": 50000000000000,\n                \"gas_limit\": 21000,\n                \"nonce\": 0,\n                \"input\": \"0x\"\n            }\n        ]\n    }","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikeshultz%2Fblocksapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikeshultz%2Fblocksapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikeshultz%2Fblocksapi/lists"}