
Uniswap is one of the most discussed and important projects in the DeFi space. It’s a pretty popular project for many reasons - in this guide, we will learn how to interact with the Uniswap smart contracts using a JavaScript library called
Build more with QuickNode - New pricing plans and a free tier! Read the press release
0x is a protocol that facilitates the peer-to-peer exchange of Ethereum-based assets. The protocol serves as an open standard and common building block for any developer needing exchange functionality.
code
npm init -y
npm init -y
code
code .
code .
code
npm install qs --save
npm install qs --save
code
npm install axios --save
npm install axios --save
code
const { default: axios } = require('axios') const qs = require('qs') const params = { buyToken: 'DAI', sellToken: 'ETH', sellAmount: 0.05 * Math.pow(10, 18).toString(), // Always denominated in wei } const URL = 'https://api.0x.org/swap/v1/quote?' //Get Default Quote const getDefaultQuote = async () => { let response try { response = await axios.get(`${URL}${qs.stringify(params)}`) } catch (err) { console.error(err) } console.log("Default Quote") console.log("%O",response.data) console.log("%O",response.data.sources) } //Get Quote from a specific DEX const getUniSwapV3Quote = async (inputToken, outputToken, value) => { const exchangeList = 'Uniswap_V3' const params = { buyToken: 'DAI', sellToken: 'ETH', sellAmount: 0.05 * Math.pow(10, 18).toString(), // Always denominated in wei includedSources: exchangeList, } let response try { response = await axios.get( `${URL}${qs.stringify(params)}`, ) } catch (err) { console.error(err) } console.log("Uniswap Quote",) console.log("%O",response.data) console.log("%O",response.data.sources) } getDefaultQuote() getUniSwapV3Quote()
const { default: axios } = require('axios') const qs = require('qs') const params = { buyToken: 'DAI', sellToken: 'ETH', sellAmount: 0.05 * Math.pow(10, 18).toString(), // Always denominated in wei } const URL = 'https://api.0x.org/swap/v1/quote?' //Get Default Quote const getDefaultQuote = async () => { let response try { response = await axios.get(`${URL}${qs.stringify(params)}`) } catch (err) { console.error(err) } console.log("Default Quote") console.log("%O",response.data) console.log("%O",response.data.sources) } //Get Quote from a specific DEX const getUniSwapV3Quote = async (inputToken, outputToken, value) => { const exchangeList = 'Uniswap_V3' const params = { buyToken: 'DAI', sellToken: 'ETH', sellAmount: 0.05 * Math.pow(10, 18).toString(), // Always denominated in wei includedSources: exchangeList, } let response try { response = await axios.get( `${URL}${qs.stringify(params)}`, ) } catch (err) { console.error(err) } console.log("Uniswap Quote",) console.log("%O",response.data) console.log("%O",response.data.sources) } getDefaultQuote() getUniSwapV3Quote()
code
node index
node index
code
Default Quote { chainId: 1, price: '1813.2127887520304968', guaranteedPrice: '1795.0806608645101918', to: '0xdef1c0ded9bec7f1a1670819833240f027b25eff', data: '0xd9627aa400000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000011c37937e080000000000000000000000000000000000000000000000000007c8f09c066034caf00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f869584cd0000000000000000000000001000000000000000000000000000000000000011000000000000000000000000000000000000000000000083951146f160f5b444', value: '5000000000000000', gas: '136000', estimatedGas: '136000', gasPrice: '59000000000', protocolFee: '0', minimumProtocolFee: '0', buyTokenAddress: '0x6b175474e89094c44da98b954eedeac495271d0f', sellTokenAddress: '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee', buyAmount: '9066063943760152484', sellAmount: '5000000000000000', sources: [ { name: '0x', proportion: '0' }, { name: 'Uniswap', proportion: '0' }, { name: 'Uniswap_V2', proportion: '0' }, { name: 'Eth2Dai', proportion: '0' }, { name: 'Kyber', proportion: '0' }, { name: 'Curve', proportion: '0' }, { name: 'Balancer', proportion: '0' }, { name: 'Balancer_V2', proportion: '0' }, { name: 'Bancor', proportion: '0' }, { name: 'mStable', proportion: '0' }, { name: 'Mooniswap', proportion: '0' }, { name: 'Swerve', proportion: '0' }, { name: 'SnowSwap', proportion: '0' }, { name: 'SuiSwap', proportion: '1' }, { name: 'Shell', proportion: '0' }, { name: 'MultiHop', proportion: '0' }, { name: 'DODO', proportion: '0' }, { name: 'DODO_V2', proportion: '0' }, { name: 'CREAM', proportion: '0' }, { name: 'LiquidityProvider', proportion: '0' }, { name: 'CryptoCom', proportion: '0' }, { name: 'Linkswap', proportion: '0' }, { name: 'Lido', proportion: '0' }, { name: 'MakerPsm', proportion: '0' }, { name: 'KyberDMM', proportion: '0' }, { name: 'Smoothy', proportion: '0' }, { name: 'Component', proportion: '0' }, { name: 'Saddle', proportion: '0' }, { name: 'xSigma', proportion: '0' }, { name: 'Uniswap_V3', proportion: '0' }, { name: 'Curve_V2', proportion: '0' }, { name: 'ShibaSwap', proportion: '0' } ], orders: [ { makerToken: '0x6b175474e89094c44da98b954eedeac495271d0f', takerToken: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2', makerAmount: '9066063943760152484', takerAmount: '5000000000000000', fillData: [Object], source: 'SuiSwap', sourcePathId: '0x2ea41c4f046aa0e743deb854fb95d19a4c011243a12d190f8a22cf14e974c86b', type: 0 } ], allowanceTarget: '0x0000000000000000000000000000000000000000', sellTokenToEthRate: '1', buyTokenToEthRate: '1813.2096453862199738' } [ { name: '0x', proportion: '0' }, { name: 'Uniswap', proportion: '0' }, { name: 'Uniswap_V2', proportion: '0' }, { name: 'Eth2Dai', proportion: '0' }, { name: 'Kyber', proportion: '0' }, { name: 'Curve', proportion: '0' }, { name: 'Balancer', proportion: '0' }, { name: 'Balancer_V2', proportion: '0' }, { name: 'Bancor', proportion: '0' }, { name: 'mStable', proportion: '0' }, { name: 'Mooniswap', proportion: '0' }, { name: 'Swerve', proportion: '0' }, { name: 'SnowSwap', proportion: '0' }, { name: 'SuiSwap', proportion: '1' }, { name: 'Shell', proportion: '0' }, { name: 'MultiHop', proportion: '0' }, { name: 'DODO', proportion: '0' }, { name: 'DODO_V2', proportion: '0' }, { name: 'CREAM', proportion: '0' }, { name: 'LiquidityProvider', proportion: '0' }, { name: 'CryptoCom', proportion: '0' }, { name: 'Linkswap', proportion: '0' }, { name: 'Lido', proportion: '0' }, { name: 'MakerPsm', proportion: '0' }, { name: 'KyberDMM', proportion: '0' }, { name: 'Smoothy', proportion: '0' }, { name: 'Component', proportion: '0' }, { name: 'Saddle', proportion: '0' }, { name: 'xSigma', proportion: '0' }, { name: 'Uniswap_V3', proportion: '0' }, { name: 'Curve_V2', proportion: '0' }, { name: 'ShibaSwap', proportion: '0' } ]
Default Quote { chainId: 1, price: '1813.2127887520304968', guaranteedPrice: '1795.0806608645101918', to: '0xdef1c0ded9bec7f1a1670819833240f027b25eff', data: '0xd9627aa400000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000011c37937e080000000000000000000000000000000000000000000000000007c8f09c066034caf00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f869584cd0000000000000000000000001000000000000000000000000000000000000011000000000000000000000000000000000000000000000083951146f160f5b444', value: '5000000000000000', gas: '136000', estimatedGas: '136000', gasPrice: '59000000000', protocolFee: '0', minimumProtocolFee: '0', buyTokenAddress: '0x6b175474e89094c44da98b954eedeac495271d0f', sellTokenAddress: '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee', buyAmount: '9066063943760152484', sellAmount: '5000000000000000', sources: [ { name: '0x', proportion: '0' }, { name: 'Uniswap', proportion: '0' }, { name: 'Uniswap_V2', proportion: '0' }, { name: 'Eth2Dai', proportion: '0' }, { name: 'Kyber', proportion: '0' }, { name: 'Curve', proportion: '0' }, { name: 'Balancer', proportion: '0' }, { name: 'Balancer_V2', proportion: '0' }, { name: 'Bancor', proportion: '0' }, { name: 'mStable', proportion: '0' }, { name: 'Mooniswap', proportion: '0' }, { name: 'Swerve', proportion: '0' }, { name: 'SnowSwap', proportion: '0' }, { name: 'SuiSwap', proportion: '1' }, { name: 'Shell', proportion: '0' }, { name: 'MultiHop', proportion: '0' }, { name: 'DODO', proportion: '0' }, { name: 'DODO_V2', proportion: '0' }, { name: 'CREAM', proportion: '0' }, { name: 'LiquidityProvider', proportion: '0' }, { name: 'CryptoCom', proportion: '0' }, { name: 'Linkswap', proportion: '0' }, { name: 'Lido', proportion: '0' }, { name: 'MakerPsm', proportion: '0' }, { name: 'KyberDMM', proportion: '0' }, { name: 'Smoothy', proportion: '0' }, { name: 'Component', proportion: '0' }, { name: 'Saddle', proportion: '0' }, { name: 'xSigma', proportion: '0' }, { name: 'Uniswap_V3', proportion: '0' }, { name: 'Curve_V2', proportion: '0' }, { name: 'ShibaSwap', proportion: '0' } ], orders: [ { makerToken: '0x6b175474e89094c44da98b954eedeac495271d0f', takerToken: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2', makerAmount: '9066063943760152484', takerAmount: '5000000000000000', fillData: [Object], source: 'SuiSwap', sourcePathId: '0x2ea41c4f046aa0e743deb854fb95d19a4c011243a12d190f8a22cf14e974c86b', type: 0 } ], allowanceTarget: '0x0000000000000000000000000000000000000000', sellTokenToEthRate: '1', buyTokenToEthRate: '1813.2096453862199738' } [ { name: '0x', proportion: '0' }, { name: 'Uniswap', proportion: '0' }, { name: 'Uniswap_V2', proportion: '0' }, { name: 'Eth2Dai', proportion: '0' }, { name: 'Kyber', proportion: '0' }, { name: 'Curve', proportion: '0' }, { name: 'Balancer', proportion: '0' }, { name: 'Balancer_V2', proportion: '0' }, { name: 'Bancor', proportion: '0' }, { name: 'mStable', proportion: '0' }, { name: 'Mooniswap', proportion: '0' }, { name: 'Swerve', proportion: '0' }, { name: 'SnowSwap', proportion: '0' }, { name: 'SuiSwap', proportion: '1' }, { name: 'Shell', proportion: '0' }, { name: 'MultiHop', proportion: '0' }, { name: 'DODO', proportion: '0' }, { name: 'DODO_V2', proportion: '0' }, { name: 'CREAM', proportion: '0' }, { name: 'LiquidityProvider', proportion: '0' }, { name: 'CryptoCom', proportion: '0' }, { name: 'Linkswap', proportion: '0' }, { name: 'Lido', proportion: '0' }, { name: 'MakerPsm', proportion: '0' }, { name: 'KyberDMM', proportion: '0' }, { name: 'Smoothy', proportion: '0' }, { name: 'Component', proportion: '0' }, { name: 'Saddle', proportion: '0' }, { name: 'xSigma', proportion: '0' }, { name: 'Uniswap_V3', proportion: '0' }, { name: 'Curve_V2', proportion: '0' }, { name: 'ShibaSwap', proportion: '0' } ]
code
UniswapV3 Quote { chainId: 1, price: '1819.24780097598123892', guaranteedPrice: '1801.05532296622142652', to: '0xdef1c0ded9bec7f1a1670819833240f027b25eff', data: '0x3598d8ab0000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000004e1bbb1b11f673a5e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002bc02aaa39b223fe8d0a0e5c4f27ead9083c756cc20001f46b175474e89094c44da98b954eedeac495271d0f000000000000000000000000000000000000000000869584cd00000000000000000000000010000000000000000000000000000000000000110000000000000000000000000000000000000000000000c2bfe11f3560f5b443', value: '50000000000000000', gas: '151000', estimatedGas: '151000', gasPrice: '59000000000', protocolFee: '0', minimumProtocolFee: '0', buyTokenAddress: '0x6b175474e89094c44da98b954eedeac495271d0f', sellTokenAddress: '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee', buyAmount: '90962390048799061946', sellAmount: '50000000000000000', sources: [ { name: '0x', proportion: '0' }, { name: 'Uniswap', proportion: '0' }, { name: 'Uniswap_V2', proportion: '0' }, { name: 'Eth2Dai', proportion: '0' }, { name: 'Kyber', proportion: '0' }, { name: 'Curve', proportion: '0' }, { name: 'Balancer', proportion: '0' }, { name: 'Balancer_V2', proportion: '0' }, { name: 'Bancor', proportion: '0' }, { name: 'mStable', proportion: '0' }, { name: 'Mooniswap', proportion: '0' }, { name: 'Swerve', proportion: '0' }, { name: 'SnowSwap', proportion: '0' }, { name: 'SuiSwap', proportion: '0' }, { name: 'Shell', proportion: '0' }, { name: 'MultiHop', proportion: '0' }, { name: 'DODO', proportion: '0' }, { name: 'DODO_V2', proportion: '0' }, { name: 'CREAM', proportion: '0' }, { name: 'LiquidityProvider', proportion: '0' }, { name: 'CryptoCom', proportion: '0' }, { name: 'Linkswap', proportion: '0' }, { name: 'Lido', proportion: '0' }, { name: 'MakerPsm', proportion: '0' }, { name: 'KyberDMM', proportion: '0' }, { name: 'Smoothy', proportion: '0' }, { name: 'Component', proportion: '0' }, { name: 'Saddle', proportion: '0' }, { name: 'xSigma', proportion: '0' }, { name: 'Uniswap_V3', proportion: '1' }, { name: 'Curve_V2', proportion: '0' }, { name: 'ShibaSwap', proportion: '0' } ], orders: [ { makerToken: '0x6b175474e89094c44da98b954eedeac495271d0f', takerToken: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2', makerAmount: '90962390048799061946', takerAmount: '50000000000000000', fillData: [Object], source: 'Uniswap_V3', sourcePathId: '0xfe215f0d81d8367ed86f2044b4b354d556f564f8bcb5bfec85fa07c54f31015c', type: 0 } ], allowanceTarget: '0x0000000000000000000000000000000000000000', sellTokenToEthRate: '1', buyTokenToEthRate: '1813.2096453862199738' } [ { name: '0x', proportion: '0' }, { name: 'Uniswap', proportion: '0' }, { name: 'Uniswap_V2', proportion: '0' }, { name: 'Eth2Dai', proportion: '0' }, { name: 'Kyber', proportion: '0' }, { name: 'Curve', proportion: '0' }, { name: 'Balancer', proportion: '0' }, { name: 'Balancer_V2', proportion: '0' }, { name: 'Bancor', proportion: '0' }, { name: 'mStable', proportion: '0' }, { name: 'Mooniswap', proportion: '0' }, { name: 'Swerve', proportion: '0' }, { name: 'SnowSwap', proportion: '0' }, { name: 'SuiSwap', proportion: '0' }, { name: 'Shell', proportion: '0' }, { name: 'MultiHop', proportion: '0' }, { name: 'DODO', proportion: '0' }, { name: 'DODO_V2', proportion: '0' }, { name: 'CREAM', proportion: '0' }, { name: 'LiquidityProvider', proportion: '0' }, { name: 'CryptoCom', proportion: '0' }, { name: 'Linkswap', proportion: '0' }, { name: 'Lido', proportion: '0' }, { name: 'MakerPsm', proportion: '0' }, { name: 'KyberDMM', proportion: '0' }, { name: 'Smoothy', proportion: '0' }, { name: 'Component', proportion: '0' }, { name: 'Saddle', proportion: '0' }, { name: 'xSigma', proportion: '0' }, { name: 'Uniswap_V3', proportion: '1' }, { name: 'Curve_V2', proportion: '0' }, { name: 'ShibaSwap', proportion: '0' } ]
UniswapV3 Quote { chainId: 1, price: '1819.24780097598123892', guaranteedPrice: '1801.05532296622142652', to: '0xdef1c0ded9bec7f1a1670819833240f027b25eff', data: '0x3598d8ab0000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000004e1bbb1b11f673a5e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002bc02aaa39b223fe8d0a0e5c4f27ead9083c756cc20001f46b175474e89094c44da98b954eedeac495271d0f000000000000000000000000000000000000000000869584cd00000000000000000000000010000000000000000000000000000000000000110000000000000000000000000000000000000000000000c2bfe11f3560f5b443', value: '50000000000000000', gas: '151000', estimatedGas: '151000', gasPrice: '59000000000', protocolFee: '0', minimumProtocolFee: '0', buyTokenAddress: '0x6b175474e89094c44da98b954eedeac495271d0f', sellTokenAddress: '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee', buyAmount: '90962390048799061946', sellAmount: '50000000000000000', sources: [ { name: '0x', proportion: '0' }, { name: 'Uniswap', proportion: '0' }, { name: 'Uniswap_V2', proportion: '0' }, { name: 'Eth2Dai', proportion: '0' }, { name: 'Kyber', proportion: '0' }, { name: 'Curve', proportion: '0' }, { name: 'Balancer', proportion: '0' }, { name: 'Balancer_V2', proportion: '0' }, { name: 'Bancor', proportion: '0' }, { name: 'mStable', proportion: '0' }, { name: 'Mooniswap', proportion: '0' }, { name: 'Swerve', proportion: '0' }, { name: 'SnowSwap', proportion: '0' }, { name: 'SuiSwap', proportion: '0' }, { name: 'Shell', proportion: '0' }, { name: 'MultiHop', proportion: '0' }, { name: 'DODO', proportion: '0' }, { name: 'DODO_V2', proportion: '0' }, { name: 'CREAM', proportion: '0' }, { name: 'LiquidityProvider', proportion: '0' }, { name: 'CryptoCom', proportion: '0' }, { name: 'Linkswap', proportion: '0' }, { name: 'Lido', proportion: '0' }, { name: 'MakerPsm', proportion: '0' }, { name: 'KyberDMM', proportion: '0' }, { name: 'Smoothy', proportion: '0' }, { name: 'Component', proportion: '0' }, { name: 'Saddle', proportion: '0' }, { name: 'xSigma', proportion: '0' }, { name: 'Uniswap_V3', proportion: '1' }, { name: 'Curve_V2', proportion: '0' }, { name: 'ShibaSwap', proportion: '0' } ], orders: [ { makerToken: '0x6b175474e89094c44da98b954eedeac495271d0f', takerToken: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2', makerAmount: '90962390048799061946', takerAmount: '50000000000000000', fillData: [Object], source: 'Uniswap_V3', sourcePathId: '0xfe215f0d81d8367ed86f2044b4b354d556f564f8bcb5bfec85fa07c54f31015c', type: 0 } ], allowanceTarget: '0x0000000000000000000000000000000000000000', sellTokenToEthRate: '1', buyTokenToEthRate: '1813.2096453862199738' } [ { name: '0x', proportion: '0' }, { name: 'Uniswap', proportion: '0' }, { name: 'Uniswap_V2', proportion: '0' }, { name: 'Eth2Dai', proportion: '0' }, { name: 'Kyber', proportion: '0' }, { name: 'Curve', proportion: '0' }, { name: 'Balancer', proportion: '0' }, { name: 'Balancer_V2', proportion: '0' }, { name: 'Bancor', proportion: '0' }, { name: 'mStable', proportion: '0' }, { name: 'Mooniswap', proportion: '0' }, { name: 'Swerve', proportion: '0' }, { name: 'SnowSwap', proportion: '0' }, { name: 'SuiSwap', proportion: '0' }, { name: 'Shell', proportion: '0' }, { name: 'MultiHop', proportion: '0' }, { name: 'DODO', proportion: '0' }, { name: 'DODO_V2', proportion: '0' }, { name: 'CREAM', proportion: '0' }, { name: 'LiquidityProvider', proportion: '0' }, { name: 'CryptoCom', proportion: '0' }, { name: 'Linkswap', proportion: '0' }, { name: 'Lido', proportion: '0' }, { name: 'MakerPsm', proportion: '0' }, { name: 'KyberDMM', proportion: '0' }, { name: 'Smoothy', proportion: '0' }, { name: 'Component', proportion: '0' }, { name: 'Saddle', proportion: '0' }, { name: 'xSigma', proportion: '0' }, { name: 'Uniswap_V3', proportion: '1' }, { name: 'Curve_V2', proportion: '0' }, { name: 'ShibaSwap', proportion: '0' } ]
0x Uniswap Uniswap_V2 Eth2Dai Kyber Curve Balancer Balancer_V2 Bancor mStable Mooniswap Swerve SnowSwap SushiSwap Shell MultiHop DODO DODO_V2 CREAM LiquidityProvider CryptoCom Linkswap Lido MakerPsm KyberDMM Smoothy Component Saddle xSigma Uniswap_V3 Curve_V2 ShibaSwap
code
const exchangeList = 'Uniswap_V3,SushiSwap' const params = { buyToken: 'DAI', sellToken: 'ETH', sellAmount: 0.05 * Math.pow(10, 18).toString(), // Always denominated in wei includedSources: exchangeList, }
const exchangeList = 'Uniswap_V3,SushiSwap' const params = { buyToken: 'DAI', sellToken: 'ETH', sellAmount: 0.05 * Math.pow(10, 18).toString(), // Always denominated in wei includedSources: exchangeList, }
Ashish Kumar Pradhan
Making Web3 space less scary through content
We'll send you the latest tech and tutorials via our weekly Web3 Vibes newsletter.
Uniswap is one of the most discussed and important projects in the DeFi space. It’s a pretty popular project for many reasons - in this guide, we will learn how to interact with the Uniswap smart contracts using a JavaScript library called
Smart-contracts are the heart and soul of all the development happening on the Ethereum blockchain, and as more and more people develop on Ethereum, smart contracts are becoming more complex.Sometimes a smart contract wants information about the real world, like...
Here is a video representation of this guide if you prefer to watch instead of read[yt:YjQj6uk9M98]On ethereum, before being included in a block, transactions remain in what is called a pending transaction queue, tx pool, or mempool -...
Bitcoin is the father of blockchain technology. With Bitcoin started a new era of blockchain and decentralization. Bitcoin enabled everyone to make the peer-to-peer transactions they enjoy today; this guide will teach you how to get these transactions from the Bitcoin...
Aave, previously known as ETHLender, has catapulted to the forefront of the DeFi space. Aave was the first in the space to come up with the idea of a Flash Loan. Before flash loans, you would have to stake an over-collateralized...
Aave, anteriormente conocido como ETHLender, se ha catapultado hacia la delantera en el espacio DeFi. Aave fue el primero de todos en aparecer con la idea de los Prestamos Flash. Antes de los Préstamos Flash, tenÃas que tener...
Compound finance are early pioneers in the decentralized finance space, as one of the first defi lenders. Compound offers a way to earn interest on several tokens: ETH, BAT, DAI, REP, WBTC, USDC & a few others. Compound makes this possible by locking your assets in a...
At a high level, keeper auctions allow speculators to automatically buy assets at a discount, like the $4m+ of ETH that was bought for near-zero DAI on Black Thursday. You can see the results...
Bots are often made to automate manual workflows; one such type is trading bots. Trade Butler is a very secure and popular trading bot so let’s see how we can run Trade Butler Bot backed by robust
On Ethereum, when a transaction is sent, before being added to a block, it resides in what is called a Mempool. To receive information about this transaction, the Mempool must be queried. This guide will demonstrate how to query a node’s mempool using QuickNode Ethereum...
Hello reader! Today we will be diving into details about making a bot that buys newly minted tokens on the PancakeSwap DEX. Today may be your first time making a trading bot or using the BSC network, and that is okay! By the time you have read through and completed this...
Not all users interact via the front-end UI when trading tokens on a decentralized exchange. Some users (or entities) trade programmatically via a smart contract or server-side scripts. This guide will demonstrate how to swap tokens on Uniswap using Javascript and the...