All Questions
Tagged with javascript etherscan
24 questions
0
votes
0
answers
50
views
How to fetch the transaction amount from Arbiscan using Node.js
I am facing challenges when I try to fetch the transaction amount from Arbiscan (using Arbiscan API).
I want to fetch the transaction amount of my latest transaction using Node.js. The following ...
0
votes
1
answer
28
views
Methods not appearing when printing contract but do appear on Etherscan
I have a goerli testnet contract you can check out here. I'm trying to call executeFlashLoan using a javascript function using web3js, but the code acts as if the function doesn't exist. However, it'...
1
vote
1
answer
279
views
How to get the amount recieved during swap on Uniswap?
I'm trying to get the amount that I recieved in WETH during swap on Uniswap(can be hardcoded WETH).
On the code below, I took random address that did swap, got his transactions and then decoded it ...
0
votes
1
answer
1k
views
How Can I Filter Ethereum Transactions by Method ID or Name, Similar to Etherscan's Advanced Filter Feature
I am working on a project where I need to retrieve all transactions associated with a specific method within a given block or set of blocks. As an example, Etherscan provides this functionality ...
1
vote
0
answers
245
views
Kyber / UniSwap: Error: execution reverted
I am currently testing around with https://github.com/dappuniversity/price-bot and came to a weird error. The task of the bot is to compare some trading pairs on Uniswap and Kyber network. I think ...
2
votes
1
answer
180
views
Uniswap DAI / ETH: TypeError: exchangeContract.methods.getEthToTokenInputPrice is not a function
I played around with this https://github.com/dappuniversity/trading-bot and came to the following error: TypeError: exchangeContract.methods.getEthToTokenInputPrice is not a function
I thought that ...
1
vote
1
answer
263
views
Warning! Error encountered during contract execution [invalid opcode: opcode 0x29 not defined]
hello every one hope you are doing fine.
i was trying to communicate with my smart contract which is deployed on the goeril test network but i m facing this error
Warning! Error encountered during ...
1
vote
1
answer
110
views
When passing a uri with metadata created by infura ipfs or pinata ipfs from a react app to NFT contract I receive this Error: invalid BigNumber string
For testing purposes I have "downsized" my original NFT contract, to a very basic one, to understand where this error is coming from. When I call the mint function I need to pass an uri. It ...
0
votes
1
answer
136
views
Finding size of a block number
Below is a simple programme which includes web3 :-
let web3 = require('web3');
var real = new web3(web3.givenProvider) // web3.givenProvider is having value of my infura endpoint
discuss();
...
1
vote
1
answer
1k
views
Retrieve Ethereum public key from transaction data
I'm trying to get an Ethereum address public key from its previous transaction data. What I'm trying to achieve is to be able to get this data from a block explorer API like Etherscan API and then ...
1
vote
1
answer
270
views
how can i extract nft collections from etherscan.io?
Just like major NFT Market places like opensea , foundation , rarible , x2y2.io have been extracting all the collections and their NFT's which are available in etherscan.io. I am seeking ways on how ...
1
vote
1
answer
208
views
how do I implement payable in erc1155?
I'm so new to solidity and I'm trying to implement payable Nft using ethers.js. I think I'm checking the balance of the address and comparing it with mintRate * amount wrong. I tried something like ...
0
votes
1
answer
25
views
Have user pay for withdrawing funds from owner only function
I have some complicated user case and have decided to go with a hybrid offchain and onchain method for my rewards system. The issue is that we want rewards to only be available to certain users that ...
0
votes
1
answer
102
views
Etherscan sends back garbage values through API for the same query that works on the website
I'm trying to fetch data through the etherscan API from a proxy aave lending pool smart contract. This works absolutely fine for AaveV1 but for AaveV2, it just sends back garbage values (uint min and ...
0
votes
1
answer
613
views
hardhat testing JavaScript got data from array via [ index ] instead of ( index )
in javascript and in solidity if you need to get gata from array index you can write like that
let data = array[ index ]
but in the testing phase, i saw javascript got data from array like this array (...
0
votes
1
answer
422
views
How to get transaction link into etherumscan to my website using etherumscan API
please help me with my problem :
I am creating a website with blockchain. Now I need to get my transaction results into etherscan.io to my website with a link for this transaction and all these by ...
0
votes
1
answer
184
views
Promise { <pending> }
I am trying to get transactions done by each wallet by using Etherscan API. However, I am getting Promise { <pending> }.
Can someone please tell how to solve this issue?
Here is my code:
const ...
0
votes
1
answer
3k
views
Getting this error for TOKEN ABI: You must provide the json interface of the contract when instantiating a contract object [closed]
I am trying to get abi of a token with etherscan and pass the variable in to the web3 function. I am using etherscan's getabi built in function as it is shown in the API documentation but I am still ...
0
votes
0
answers
372
views
Proper way to fire smart contract function passing an array with web3js
I'm using web3js version 0.20.7
The smart contract originally had a function (called whiteListAddress(address _address, bool value) ) that took an address and a boolean value, which was called like ...
0
votes
1
answer
179
views
Different block information for the same block number at different times
On web3.eth.subscribe('newBlockHeaders') I get notification and trying to get last block via saved block number earlier. It was happen with 9559839 block number on mainnet. First, I was get data with ...
0
votes
1
answer
848
views
Error: Uncaught [TypeError: Cannot read property 'ContractName' of undefined]
I am trying to get source of open source verified contracts and write into a file at my local folder. I could write only one file (of first address) but for the rest i am facing captioned error. ...
0
votes
1
answer
2k
views
Invalid Address format - Etherscan.io APIs problem
I have download list of verified open source contract addresses's list and loaded into addresses[]. Now I want to download sourcecode/ABIs etc... of that contracts. Although, i have called setTimeOut ...
1
vote
3
answers
3k
views
How to dynamically load contracts data with their ABI from etherscan API?
Im wanting to pull data from a smart contract I've loaded via user address and etherscan API for the ABI.
But how would I go about programmatically adding all the functions from the ABI into my ...
0
votes
1
answer
319
views
Store ABI Value in var
I've finally managed to get my web3.js to work.. I did this only for the purpose to display one specific value on my website.. I'm not so good with jquery and hope you guys can help me out.
This is ...