npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

n8n-nodes-etherscan

v0.1.0

Published

n8n node to interact with the Etherscan API

Downloads

4

Readme

n8n-nodes-etherscan

This is an n8n community node. It lets you use Etherscan contracts in your n8n workflows.

The node allows you to retrieve the ABI for varified contracts, get the solidity Source Code of varified contracts and allows you to to retrieve the contract creator and the Tx Hash.

n8n is a fair-code licensed workflow automation platform.

Installation
Operations
Credentials Compatibility
Usage
Testing Logging Limitations Resources

Installation

Follow the installation guide in the n8n community nodes documentation.

Operations

Retrieve ABI for Varified Contracts

Returns the Contract Application Binary Interface ( ABI ) of a verified smart contract. This requires the address of the contract.

Get Solidity Source Code for Varified Contract

Returns the Solidity source code of a verified smart contract. This requires the address of the contract.

Get Contract Creator and Creation Tx Hash

Returns a contract's deployer address and transaction hash it was created. This requires up to five addresses.

Credentials

To use these services an API key is required which requires an account on Etherscan. On the Etherscan website hover over your name and in the dropdown menu select "API Keys". Here the API Key can be copied. WARNING there is a limit on the amount of queries on the free version. The allow for more queries per second you should upgrade your account.

Compatibility

This node has been tested on version 1.7.1 and deemed functional

Usage

Retrieve ABI for Varified Contracts

This requires the address of the contract.

Get Solidity Source Code for Varified Contract

This requires the address of the contract.

Get Contract Creator and Creation Tx Hash

This requires at least one address and up to five addresses of contracts.

Testing

To test the API, Etherscan has provided verified contract addresses, including:

  • 0xB83c27805aAcA5C7082eB45C868d955Cf04C337F,
  • 0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45,
  • 0xe4462eb568E2DFbb5b0cA2D3DbB1A35C9Aa98aad,
  • 0xdAC17F958D2ee523a2206206994597C13D831ec7,
  • 0xf5b969064b91869fBF676ecAbcCd1c5563F591d0

Using this address ( or multiple for the Tx Hash function ) should always come back with a proper response. You can test this by adding the node to a workflow and pasting one ( or multiple for the Tx Hash ) of the addresses in the "address(es)" parameter field.

A full list of verified contracts can be found on Etherscan's verified contracts page

Logging

If you are hosting n8n yourself the log files can be found in your global instance folder (.n8n folder).

Our node also supports logging, to find the logging files you have to create the folder "logs" Our node allows for minimal logging, our node logs:

INFO: Initialisation of the node ERROR: Any occurring errors during intialisation

If you would like more extensive logging this has to be done through the config file in your local instance Full documentation on how to achieve this can be found here.

Limitations

API endpoints

Currently, the node only supports API calls to the Etherscan API for contracts. It does not support API calls for endpoints like transactions, accounts or tokens as of yet, but this may be added in the future.

Etherscan API PRO endpoints

Also, some API endpoints can only be accessed with Etherscan API PRO. This node does not support paid API calls.

Resources