{"id":20744207,"url":"https://github.com/021-projects/ethereum-oracles","last_synced_at":"2026-04-18T16:36:05.019Z","repository":{"id":56894059,"uuid":"474707976","full_name":"021-projects/ethereum-oracles","owner":"021-projects","description":"Getting blockchain statistics from Ethereum oracles","archived":false,"fork":false,"pushed_at":"2022-03-27T17:21:34.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-17T12:48:24.393Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/021-projects.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":"2022-03-27T17:21:12.000Z","updated_at":"2022-03-27T17:21:38.000Z","dependencies_parsed_at":"2022-08-20T16:10:47.704Z","dependency_job_id":null,"html_url":"https://github.com/021-projects/ethereum-oracles","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/021-projects%2Fethereum-oracles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/021-projects%2Fethereum-oracles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/021-projects%2Fethereum-oracles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/021-projects%2Fethereum-oracles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/021-projects","download_url":"https://codeload.github.com/021-projects/ethereum-oracles/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243039549,"owners_count":20226130,"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":[],"created_at":"2024-11-17T07:14:42.228Z","updated_at":"2026-04-18T16:36:04.991Z","avatar_url":"https://github.com/021-projects.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ethereum oracles library\n\nA library of convenient interfaces for receiving statistics data from different ethereum oracles.\n\n### Ethereum Mainnet oracles\n\n**Offchain**\n\n| Class                                      | Source                                                     | Features                    |\n|--------------------------------------------|------------------------------------------------------------|-----------------------------|\n| O21\\EthereumOracles\\OffChain\\Blockscout    | https://blockscout.com/eth/mainnet/api/v1/gas-price-oracle | No                          |\n| O21\\EthereumOracles\\OffChain\\Etherchain    | https://etherchain.org/api/gasnow                          | Instant                     |\n| O21\\EthereumOracles\\OffChain\\EthGasStation | https://ethgasstation.info/json/ethgasAPI.json             | Instant, BlockNumber, Speed |\n| O21\\EthereumOracles\\OffChain\\MaticNetwork  | https://gasstation-mainnet.matic.network/                  | Instant, BlockNumber        |\n\n### Usage\n\n#### Get stats from Etherchain\n\n```php\nuse O21\\EthereumOracles\\OffChain\\Etherchain;\n# ...\n\n/** \\O21\\EthereumOracles\\FeeStats\\Stats $stats */\n$stats = (new Etherchain)-\u003egetStats();\n```\n\n\nBy default ``getStats()`` method fetching all provider supported features, but you can define only specific features like this\n```php\nuse O21\\EthereumOracles\\OffChain\\EthGasStation;\nuse O21\\EthereumOracles\\FeeStats\\Feature;\n# ...\n\n(new EthGasStation)-\u003egetStats(Feature::Speed, Feature::BlockNumber);\n```\n\n##### Stats interface\n| Property    | Description                                                | Required feature |\n|-------------|------------------------------------------------------------|------------------|\n| slow        | Fee for low priority (\u003e= 30 minutes) transaction in Gwei   | No               |\n| standard    | Fee for medium priority (\u003c 5 minutes) transaction in Gwei  | No               |\n| high        | Fee for high priority transaction (\u003c 2 minutes) in Gwei    | No               |\n| instant     | Fee for instant transaction (\u003c 30 seconds) in Gwei         | Instant          |                                           |     |\n| speed       | Smallest value of (gasUsed / gaslimit) from last 10 blocks | Speed            |\n| blockNumber | Latest block number                                        | BlockNumber      |","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F021-projects%2Fethereum-oracles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F021-projects%2Fethereum-oracles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F021-projects%2Fethereum-oracles/lists"}