{"id":15158218,"url":"https://github.com/dalirnet/etherflow","last_synced_at":"2025-09-30T08:31:28.360Z","repository":{"id":57230896,"uuid":"440604781","full_name":"dalirnet/etherflow","owner":"dalirnet","description":"Flow of Ethereum blockchain","archived":true,"fork":false,"pushed_at":"2021-12-23T10:11:57.000Z","size":714,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-24T18:13:43.403Z","etag":null,"topics":["ethereum","nodejs"],"latest_commit_sha":null,"homepage":"https://etherflow-playground.vercel.app/","language":"JavaScript","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/dalirnet.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":"2021-12-21T17:50:42.000Z","updated_at":"2023-01-28T01:44:41.000Z","dependencies_parsed_at":"2022-09-01T22:30:57.099Z","dependency_job_id":null,"html_url":"https://github.com/dalirnet/etherflow","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dalirnet%2Fetherflow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dalirnet%2Fetherflow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dalirnet%2Fetherflow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dalirnet%2Fetherflow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dalirnet","download_url":"https://codeload.github.com/dalirnet/etherflow/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234719355,"owners_count":18876523,"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":["ethereum","nodejs"],"created_at":"2024-09-26T20:41:35.065Z","updated_at":"2025-09-30T08:31:22.970Z","avatar_url":"https://github.com/dalirnet.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# etherflow\n\n## Flow of Ethereum blockchain\n\n-   getBlockNumber\n\n-   getTxnStatus\n\n![carbon](https://raw.githubusercontent.com/dalirnet/etherflow/master/carbon.png)\n\n### Install\n\n```bash\nnpm install etherflow\n\n# or\n\nyarn add etherflow\n```\n\n### Import\n\n```javascript\nimport etherflow from 'etherflow'\n\n// or\n\nconst etherflow = require('etherflow')\n```\n\n### Usage\n\n#### ✔️ **getBlockNumber** Get block number\n\n-   Crawler method\n\n```javascript\netherflow.crawler.getBlockNumber().then((blockNumber) =\u003e {\n    console.log(blockNumber) /* 13854282 */\n})\n\n// or\n\nconst blockNumber = await etherflow.crawler.getBlockNumber()\nconsole.log(blockNumber) /* 13854282 */\n```\n\n-   Http method\n\n```javascript\netherflow.http.getBlockNumber().then((blockNumber) =\u003e {\n    console.log(blockNumber) /* 13854282 */\n})\n\n// or\n\nconst blockNumber = await etherflow.http.getBlockNumber()\nconsole.log(blockNumber) /* 13854282 */\n```\n\n-   Sdk method\n\n```javascript\netherflow.sdk.getBlockNumber().then((blockNumber) =\u003e {\n    console.log(blockNumber) /* 13854282 */\n})\n\n// or\n\nconst blockNumber = await etherflow.sdk.getBlockNumber()\nconsole.log(blockNumber) /* 13854282 */\n```\n\n#### ✔️ **getTxnStatus** Get txn status\n\n-   Crawler method\n\n```javascript\nconst TxnHash = '0xc7b6bbc8c1c5c91b79eeb423c71001560b4e4296078de7d8d401e85afa40b5dc'\netherflow.crawler.getTxnStatus(TxnHash).then(({ status, value, from, to }) =\u003e {\n    console.log(status)\n    /* true */\n\n    console.log(value)\n    /* 0.036 */\n\n    console.log(from)\n    /* 0x1828fd9ef215706d022508e1ae3c791edc36e678 */\n\n    console.log(to)\n    /* 0x284f12c5524c6afcf6844645398b8fa856f9ad92 */\n})\n\n// or\n\nconst result = await etherflow.crawler.getTxnStatus('0x0000')\nconsole.log(result)\n/*\n    {\n        status: true,\n        value: 0.036,\n        from: '0x1828fd9ef215706d022508e1ae3c791edc36e678',\n        to: '0x284f12c5524c6afcf6844645398b8fa856f9ad92'\n    }\n*/\n```\n\n-   Http method\n\n```javascript\nconst TxnHash = '0xc7b6bbc8c1c5c91b79eeb423c71001560b4e4296078de7d8d401e85afa40b5dc'\netherflow.http.getTxnStatus(TxnHash).then(({ status, value, from, to }) =\u003e {\n    console.log(status)\n    /* true */\n\n    console.log(value)\n    /* 0.036 */\n\n    console.log(from)\n    /* 0x1828fd9ef215706d022508e1ae3c791edc36e678 */\n\n    console.log(to)\n    /* 0x284f12c5524c6afcf6844645398b8fa856f9ad92 */\n})\n\n// or\n\nconst result = await etherflow.http.getTxnStatus('0x0000')\nconsole.log(result)\n/*\n    {\n        status: true,\n        value: 0.036,\n        from: '0x1828fd9ef215706d022508e1ae3c791edc36e678',\n        to: '0x284f12c5524c6afcf6844645398b8fa856f9ad92'\n    }\n*/\n```\n\n-   Sdk method\n\n```javascript\nconst TxnHash = '0xc7b6bbc8c1c5c91b79eeb423c71001560b4e4296078de7d8d401e85afa40b5dc'\netherflow.sdk.getTxnStatus(TxnHash).then(({ status, value, from, to }) =\u003e {\n    console.log(status)\n    /* true */\n\n    console.log(value)\n    /* 0.036 */\n\n    console.log(from)\n    /* 0x1828fd9ef215706d022508e1ae3c791edc36e678 */\n\n    console.log(to)\n    /* 0x284f12c5524c6afcf6844645398b8fa856f9ad92 */\n})\n\n// or\n\nconst result = await etherflow.sdk.getTxnStatus('0x0000')\nconsole.log(result)\n/*\n    {\n        status: true,\n        value: 0.036,\n        from: '0x1828fd9ef215706d022508e1ae3c791edc36e678',\n        to: '0x284f12c5524c6afcf6844645398b8fa856f9ad92'\n    }\n*/\n```\n\n### Cli\n\n```bash\nnpx etherflow\n\n# or\n\nnpx github:dalirnet/etherflow\n```\n\n#### Test\n\n```bash\nnpm run test\n```\n\n-   getBlockNumber\n\n```bash\n PASS  test/getBlockNumber.test.js (9.213 s)\n  √ Get block number by crawler (3574 ms)\n  √ Get block number by http (2244 ms)\n  √ Get block number by sdk (1988 ms)\n```\n\n-   getTxnStatus\n\n```bash\n PASS  test/getTxnStatus.test.js (12.643 s)\n  √ Get valid txn status by Crawler (3699 ms)\n  √ Get invalid txn status by Crawler (1751 ms)\n  √ Get valid txn status by Http (1472 ms)\n  √ Get invalid txn status by Http (1307 ms)\n  √ Get valid txn status by Sdk (1293 ms)\n  √ Get invalid txn status by Sdk (1716 ms)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdalirnet%2Fetherflow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdalirnet%2Fetherflow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdalirnet%2Fetherflow/lists"}