{"id":26241565,"url":"https://github.com/a6b8/ethereum-read-functions-for-nodejs","last_synced_at":"2026-04-27T19:02:42.667Z","repository":{"id":44669275,"uuid":"454245941","full_name":"a6b8/ethereum-read-functions-for-nodejs","owner":"a6b8","description":"Read smart contract functions from evm-blockchains.","archived":false,"fork":false,"pushed_at":"2022-02-01T06:01:08.000Z","size":3385,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-26T08:36:04.443Z","etag":null,"topics":["ethereum","etherscan","evm","infura","nft","smart-contract","tokenuri"],"latest_commit_sha":null,"homepage":"","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/a6b8.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-02-01T03:11:23.000Z","updated_at":"2022-02-01T06:02:08.000Z","dependencies_parsed_at":"2022-09-12T15:24:15.572Z","dependency_job_id":null,"html_url":"https://github.com/a6b8/ethereum-read-functions-for-nodejs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/a6b8/ethereum-read-functions-for-nodejs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a6b8%2Fethereum-read-functions-for-nodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a6b8%2Fethereum-read-functions-for-nodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a6b8%2Fethereum-read-functions-for-nodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a6b8%2Fethereum-read-functions-for-nodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/a6b8","download_url":"https://codeload.github.com/a6b8/ethereum-read-functions-for-nodejs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a6b8%2Fethereum-read-functions-for-nodejs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32350243,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T17:12:42.749Z","status":"ssl_error","status_checked_at":"2026-04-27T17:12:41.658Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["ethereum","etherscan","evm","infura","nft","smart-contract","tokenuri"],"created_at":"2025-03-13T08:32:11.989Z","updated_at":"2026-04-27T19:02:42.642Z","avatar_url":"https://github.com/a6b8.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca href=\"#table-of-contents\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/a6b8/a6b8/main/assets/headlines/custom/ethereum-read-functions-for-node.js.svg\" height=\"45px\" alt=\"Ethereum Read Functions for Node.js\" name=\"# Ethereum Read Functions for Node.js\"\u003e\n\u003c/a\u003e\n\nRead smart contract functions from evm-blockchains.\n\n\u003cbr\u003e\n\n\u003ca href=\"#headline\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/a6b8/a6b8/main/assets/headlines/default/examples.svg\" height=\"45px\" alt=\"Examples\" name=\"examples\"\u003e\n\u003c/a\u003e\n\n**Fetch tokenURI and Name**\n```javascript\n\nrequire( 'dotenv' ).config( { path: '.env' } )\nconst { readFunction } = require( 'ethereum-read-functions' )\n\nconst config = {\n    'cmds': [ 'tokenURI(1)', 'name()' ],\n    'network': 'homestead',\n    'address': '0xFF9C1b15B16263C61d017ee9F65C50e4AE0113D7',\n    'etherscan_api_key': process.env.ETHERSCAN_API_KEY,\n    'infura_project_id': process.env.INFURA_PROJECT_ID,\n    'infura_project_secret': process.env.INFURA_PROJECT_SECRET,\n}\n\nreadFunction( config )\n.then( ( result ) =\u003e console.log( result ) )\n.catch( ( e ) =\u003e console.log( e ) )\n\n```\n\n**Unverified source code on Etherscan**  \nSet ``try blind`` to `true`\n\n```javascript\nrequire( 'dotenv' ).config( { path: '.env' } )\nconst { readFunction } = require( 'ethereum-read-functions' )\n\nconst config = {\n    'cmds': [ 'tokenURI(19)' ],\n    'network': 'homestead',\n    'address': '0x4ef107a154cb7580c686c239ed9f92597a42b961',\n    'etherscan_api_key': process.env.ETHERSCAN_API_KEY,\n    'infura_project_id': process.env.INFURA_PROJECT_ID,\n    'infura_project_secret': process.env.INFURA_PROJECT_SECRET,\n    'try_blind': true,\n}\n\nreadFunction( config )\n.then( ( result ) =\u003e console.log( result ) )\n.catch( ( e ) =\u003e console.log( e ) )\n```\n\n\n**Fetch all viewable Functions**\n```javascript\nrequire( 'dotenv' ).config( { path: '.env' } )\nconst { readFunction } = require( 'ethereum-read-functions' )\n\nconst config = {\n    'cmds': [],\n    'network': 'homestead',\n    'address': '0x4ef107a154cb7580c686c239ed9f92597a42b961',\n    'etherscan_api_key': process.env.ETHERSCAN_API_KEY,\n    'infura_project_id': process.env.INFURA_PROJECT_ID,\n    'infura_project_secret': process.env.INFURA_PROJECT_SECRET,\n    'try_all': true\n}\n\nreadFunction( config )\n.then( ( result ) =\u003e console.log( result ) )\n.catch( ( e ) =\u003e console.log( e ) )\n```\n\n\u003cbr\u003e\n\n\u003ca href=\"#headline\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/a6b8/a6b8/main/assets/headlines/default/table-of-contents.svg\" height=\"45px\" alt=\"Table of Contents\" name=\"table-of-contents\"\u003e\n\u003c/a\u003e\n\n1. [Examples](#examples)\u003cbr\u003e\n2. [Quickstart](#quickstart)\u003cbr\u003e\n3. [Setup](#setup)\n4. [Options](#options)\u003cbr\u003e\n5. [Contributing](#contributing)\u003cbr\u003e\n6.  [License](#license)\u003cbr\u003e\n7.  [Code of Conduct](#code-of-conduct)\u003cbr\u003e\n8.  [Support my Work](#support-my-work)\u003cbr\u003e\n\n\u003cbr\u003e\n\n\u003ca href=\"#table-of-contents\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/a6b8/a6b8/main/assets/headlines/default/quickstart.svg\" height=\"45px\" alt=\"Quickstart\" name=\"quickstart\"\u003e\n\u003c/a\u003e\n\n\n```javascript\nrequire( 'dotenv' ).config( { path: '.env' } )\nconst { readFunction } = require( 'ethereum-read-functions' )\n\nreadFunction( {\n    'cmds': [ 'tokenURI(19)' ],\n    'network': 'homestead',\n    'address': '0x4ef107a154cb7580c686c239ed9f92597a42b961',\n    'etherscan_api_key': process.env.ETHERSCAN_API_KEY,\n    'infura_project_id': process.env.INFURA_PROJECT_ID,\n    'infura_project_secret': process.env.INFURA_PROJECT_SECRET,\n} )\n.then( ( result ) =\u003e console.log( result ) )\n.catch( ( e ) =\u003e console.log( e ) )\n```\n\n\n\u003cbr\u003e\n\n\u003ca href=\"#table-of-contents\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/a6b8/a6b8/main/assets/headlines/default/setup.svg\" height=\"45px\" name=\"setup\" alt=\"Setup\"\u003e\n\u003c/a\u003e\n\n```javascript\nnpm i ethereum-read-functions\n```\n\n\u003cbr\u003e\n\n\u003ca href=\"#table-of-contents\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/a6b8/a6b8/main/assets/headlines/default/options.svg\" height=\"45px\" alt=\"Options\" name=\"Options\"\u003e\n\u003c/a\u003e\n\n```nodejs\n{\n    'cmds': null,\n    'address': null,\n    'network': 'homestead',\n    'etherscan_api_key': process.env.ETHERSCAN_API_KEY,\n    'infura_project_id': process.env.INFURA_PROJECT_ID,\n    'infura_project_secret': process.env.INFURA_PROJECT_SECRET,\n    'silent': false,\n    'shrink': true,\n    'try_blind': true,\n    'try_all': true\n}\n```\n\n\n**Validation**\n| **Name** | **Type** | **Required** | **Default** | **Description** |\n|------:|:------|:------|:------|:------|\n| **cmds** | ```Array of numbers or strings``` | No | [] | Set here your function names. If you set ```1``` it will interpreted as ```tokenURI(1)```. Please cast long int to string. |\n| **address** | ```String``` | Yes | | Set smart contract address here |\n| **network** | ```String``` | Yes | `\"Homestead\"` | Choose network. `Homestead === Ethereum Mainnet`, visit etherjs documentation for more [Informations](https://docs.ethers.io/v5/api/providers/api-providers/) |\n| **etherscan_api_key** | ```String``` | Yes | `\"\"` | Some request will work without api key. More Informations to Etherscan Api you can find [here](https://etherscan.io/apis) |\n| **infura_project_id** | ```String``` | Yes | `\"\"` | More Informations to Infura´s Api you can find [here](https://etherscan.io/apis) |\n| **infura_secret_id** | ```String``` | Yes | `\"\"` | More Informations to Infura´s Api you can find [here](https://etherscan.io/apis) |\n| **silent** | ```Boolean``` | no | `false` | By default console output will print helpful status messages. |\n| **shrink** | ```Boolean``` | no | `true` | Reduces to size of the result. |\n| **try_blind** | ```Boolean``` | no | `false` | Experimental! If no ABIs was found (means Etherscan source code is verified) the algorithm uses a default ABIs to guess the ABI and fetch ***only*** a tokenURI call. |\n| **try_all** | ```Boolean``` | no | `false` | Experimental! Search inside of ABIs for viewable function without parameters and fetch them all automatically. |\n\n\u003cbr\u003e\n\n\n\u003ca href=\"#table-of-contents\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/a6b8/a6b8/main/assets/headlines/default/contributing.svg\" height=\"45px\" alt=\"Contributing\" name=\"contributing\"\u003e\n\u003c/a\u003e\n\nBug reports and pull requests are welcome on GitHub at https://github.com/a6b8/ethereum-read-functions. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/a6b8/statosio/blob/master/CODE_OF_CONDUCT.md).\n\n\u003cbr\u003e\n\n\n\u003ca href=\"#table-of-contents\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/a6b8/a6b8/main/assets/headlines/default/limitations.svg\" height=\"45px\" name=\"limitations\" alt=\"Limitations\"\u003e\n\u003c/a\u003e\n\n- Not tested for production\n- Works only with Infura and Etherscan.\n- Build for NFT request only.\n\n\u003cbr\u003e\n\n\u003ca href=\"#table-of-contents\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/a6b8/a6b8/main/assets/headlines/default/credits.svg\" height=\"45px\" name=\"credits\" alt=\"Credits\"\u003e\n\u003c/a\u003e\n\n- Function are executed with ether.js\n- ABIs are fetched from Etherscan once for every address.\n  \n\u003cbr\u003e\n\n\u003ca href=\"#table-of-contents\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/a6b8/a6b8/main/assets/headlines/default/license.svg\" height=\"45px\" alt=\"License\" name=\"license\"\u003e\n\u003c/a\u003e\n\nThe module is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n\u003cbr\u003e\n\n\u003ca href=\"#table-of-contents\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/a6b8/a6b8/main/assets/headlines/default/code-of-conduct.svg\" height=\"45px\" alt=\"Code of Conduct\" name=\"code-of-conduct\"\u003e\n\u003c/a\u003e\n    \nEveryone interacting in the Statosio project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/a6b8/ethereum-read-functions/blob/main/CODE_OF_CONDUCT.md).\n\n\u003cbr\u003e\n\n\u003ca href=\"#table-of-contents\"\u003e\n\u003cimg href=\"#table-of-contents\" src=\"https://raw.githubusercontent.com/a6b8/a6b8/main/assets/headlines/default/star-us.svg\" height=\"45px\" name=\"star-us\" alt=\"Star us\"\u003e\n\u003c/a\u003e\n\nPlease ⭐️ star this Project, every ⭐️ star makes us very happy!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa6b8%2Fethereum-read-functions-for-nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fa6b8%2Fethereum-read-functions-for-nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa6b8%2Fethereum-read-functions-for-nodejs/lists"}