Categories
ABI data analytics erc20 javascript web3js

How to decode event logs in Javascript using abi-decoder

In this tutorial we’ll see how to decode and make sense of event logs generated by Ethereum transactions. This tutorial will guide you on getting a transaction receipt and getting the data related to one event in their original types using the abi-decoder library. For this tutorial you’ll need : the ABI of the smart […]

Categories
blog DeFi erc20 javascript solidity

Making a flash loan with Solidity (Aave, Dy/Dx, Kollateral)

Flash Loans are loans that allow the borrowing of an asset, as long as the borrowed amount (and a fee) is returned before the end of the transaction. Those types of loans enable you to perform actions without using your funds for a really small percentage fee (0.09% at the time of writing on Aave […]

Categories
Arbitrage Bot DeFi DEX erc20 javascript web3js

Swap tokens with 1inch Exchange in JavaScript: DEX and Arbitrage part 2

For this tutorial will see how to execute a trade using 1inch DEX aggregator in Javascript with the web3.js library. At the end of the tutorial, you’ll know how to exchange ERC20 tokens and Ether directly on the Ethereum blockchain. This article is part 2 (part 1 here) of tutorials we started while using the […]

Categories
erc20 Getting started javascript

Waiting for a transaction to be mined on Ethereum with JS

In the previous tutorial we learnt how to send a transaction to an Ethereum smart contract, we’ll now see how to wait for a transaction to be mined and get it’s result. When you sbumit a transaction to the blockchain, you’ll receive the transaction hash of the new transaction. In order to wait for the […]

Categories
erc20 Getting started javascript

Calling a smart contract from JavaScript

In this tutorial we’ll see how to call a smart contract function from JavaScript. First is reading the state of a smart contract (for eg the balance of an ERC20 holder), then we’ll modify the state of the blockchain by making a token transfer. You should be already be familiar with setting up JS environement […]

Categories
erc20

ABI for ERC20 contract on Ethereum

Here you can find the ABI for the ERC20 token standard: You can see dome of our tutorial abour ERC20 tokens here:

Categories
erc20 solidity

Transfers and approval or ERC20 tokens from a solidity smart contract

In the previous tutorial we studied the anatomy of an ERC20 token in Solidity on the Ethereum blockchain. In this article we’ll see how we can use a smart contract to interact with a token using the Solidity language. For this smart contract, we’ll create a really dummy decentralized exchange where a user can trade […]

Categories
erc20 Getting started solidity

Understand the ERC20 token smart contract

One of the most significant smart contract standard on Ethereum is known as ERC-20, which has emerged as the technical standard used for all smart contracts on the Ethereum blockchain for fungible token implementations. The ERC-20 defines a common list of rules that all Ethereum tokens must adhere to. Consequently, this token standard empowers developers […]