blog DeFi javascript NFT web3js

NFT20: How to simply trade NFTs in JS

NFT20 is a platform that enables buying and selling NFTs in one click on Ethereum and Polygon without counterparty thanks to liquidity provided in the popular AMM Uniswap. In this article, we’ll learn how to simply add the functionality of buying NFTs to any website. To see the complete documentation and sample, go to the […]

DeFi javascript web3js

Reading Chainlink price oracles from JavaScript

A common problem you may face in Ethereum programming is getting a price feed of digital currencies. Chainlink is an oracle platform that is used by many DeFi projects and incentives actors to publish on-chain several information like prices of tokens or price of Ether. in this tutorial we’ll learn how you can retrieve the […]

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 […]

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 […]

Arbitrage Bot DeFi DEX javascript solidity

Trading and Arbitrage on Ethereum DEX: Get the rates (part 1)

In this series of tutorials, we explore how to build solutions around trading and making simple arbitrage bot using Ethereum decentralized exchanges (DEX). This series uses Javascript, Solidity, and the 1inch dex aggregator and flash loans. As the subject is wide, we have split the series into several parts below: Get the exchange rates to […]

blog DeFi Getting started Tests

Testing your smart contract with existing protocols: Ganache fork

When you’re developping Ethereum contracts that interact with other Dapps and protocols like DeFi it’s important to be able to test your smart contracts agains the blockchain as you can’t re-deploy every smart contracts that your smart contract depends on. For this we’ll use Ganache from Truffle. Ganache is a program that lets you quickly […]