Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 71888

A lightweight JavaScript library which can be used as an alternative to Web3.js to build your JavaScript front-end and interact with the Ethereum blockchain.

2 votes

Listening to events in Ethers.js with websockets

Its because you have to specify the network type, otherwise it will take mainnet as default if not provided also make sure your infura provider websocket is for rinkeby/supports rinkeby var wsProvider …
Aaron Klich's user avatar
1 vote
1 answer
8k views

How to send uint256 and Address types to Smart contract in JavaScript web3/ethers?

Im trying to send a query to Pancakeswap's router function getAmoutsOut here the code for importing the contract using ethers ABI: const router = new ethers.Contract('0x10ED43C718714eb63d5aA57B78B5470 …
Aaron Klich's user avatar
2 votes
1 answer
3k views

How to set a custom gwei / gas price on uniswap/sdk Javascript using ethers.js module?

Im building an app to do trades on uniswap using ethers module. ive created contracts and imported the router and the factory contracts using this code: const factory = new ethers.Contract( addresse …
Aaron Klich's user avatar
9 votes
5 answers
34k views

insufficient funds for intrinsic transaction cost

i've codded a script using js to trigger a buy on uniswap. the way i achieved this is through importing uniswaps smart contracts using this line of code: const router = new ethers.Contract(addresses.r …
Aaron Klich's user avatar
3 votes
1 answer
3k views

How to send correct SwapExactEthForTokens params types on ethers/web3.js?

I need to know how to send correct paramaters / paramater types as in what does the parameter type has to be is it a hex number , a string ? help would be massively appreciated. Notes: 1)i cant set va …
Aaron Klich's user avatar