GithubHelp home page GithubHelp logo

net2devcrypto / erc-20-transfer-events Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 26 KB

A function that returns transfer events from ERC-20 token smart contracts without the need of third party API. Straight from the blockchain!

JavaScript 100.00%
erc-20 etherscan smart-contract-events solidity

erc-20-transfer-events's Introduction

ERC-20-Transfer-Events

A function that returns transfer events from ERC-20 token smart contracts without the need of third party API. Straight from the blockchain!

Note

THE FILES ATTACHED TO THIS REPO ARE FOR EDUCATIONAL PURPOSES ONLY. NOT FINANCIAL ADVICE USE IT AT YOUR OWN RISK, I'M NOT RESPONSIBLE FOR ANY USE, ISSUES.

Instructions

1- Download Repo folder "erc20-transfer-events", extract, open events.js and modify as you need:

//Replace with values, save and run!
const rpcaddress = "https://eth.llamarpc.com" //RPC ADDRESS, Example ETH Mainnet RPC Address.
const tokenaddress = "0xdAC17F958D2ee523a2206206994597C13D831ec7"; // TOKEN ADDRESS, Example USDT Address on Ethereum Mainnet.
const lastNumberOfBlocks = 5; //Most recent amount of blocks to Get Event Info. You might have limitations going above 100.
const converted = "mwei"; // Value conversion wei 18, mwei 6, gwei 10, Verify with token contract decimals.

Save file CTRL + S;

2- Install dependencies then run!

cd erc20-transfer-events
npm i
node events.js

ENJOY!!

A BIG FAVOR, IF YOU FIND THIS REPO USEFUL, PLEASE GIVE IT A STAR, FOLLOW ME ON GITHUB AND Subscribe to my YouTube Channel @NET2DEV!!

erc-20-transfer-events's People

Contributors

net2devcrypto avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

panoptisdev

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.