Questions tagged [etherscan]

Etherscan allows you to explore and search the Ethereum blockchain for transactions, addresses, tokens, prices and other activities taking place on Ethereum

183 questions
11
votes
6 answers

Error in plugin @nomiclabs/hardhat-etherscan: The contract verification failed. Reason: Fail - Unable to verify - with arguments

I am trying to verify my contract with arguments and I am getting this error: Error in plugin @nomiclabs/hardhat-etherscan: The contract verification failed. Reason: Fail - Unable to verify I am also importing Open Zeppelin contracts…
solidityguy
  • 199
  • 1
  • 3
  • 8
9
votes
5 answers

Verify and Publish Contract on Etherscan with Imported OpenZeppelin file

I'm currently building a ERC721 compliant contract and have published the contract here: https://ropsten.etherscan.io/address/0xa513bc0a0d3af384fefcd8bbc1cc0c9763307c39 - I'm now attempting to verify and publish the contract source code The start of…
7
votes
3 answers

Error: sending a transaction requires a signer while calling aggregate function of Multicall Contract Ethereum

index.js:1 Failed to fetch multicall chunk [{…}] 1 Error: sending a transaction requires a signer (operation="sendTransaction", code=UNSUPPORTED_OPERATION, version=contracts/5.0.2) Multicall contract address -…
Shanu Goyanka
  • 71
  • 1
  • 1
  • 2
6
votes
1 answer

ERC20 Tokens Transferred Information from Transaction Hash

EtherScan provides a API for transaction details It's part of Geth/Parity Proxy APIs by name eth_getTransactionByHash, But I am unable to get information what ERC20 token was transferred and how many. I need Token Details and Number of token…
Mangesh
  • 2,257
  • 4
  • 24
  • 51
5
votes
1 answer

How to pass array of structs as argument on etherscan (tuple[])?

I'm trying to pass the format of array of structs as argument on smart contract write function on etherscan, This is solidity example: Info[] public info; struct Info { address userAddress; uint256 amount; bool active; }…
Giorgiu
  • 199
  • 1
  • 3
  • 10
5
votes
1 answer

How to decode transaction input data using `ethers.utils.defaultAbiCoder`

I'm fetching transaction data using Etherscan API. This is the example result I'm getting: { blockNumber: '7409930', timeStamp: '1639151980', hash: '...', nonce: '4124', ... input:…
Jan Potočnik
  • 51
  • 1
  • 2
4
votes
2 answers

Why the timestamp of block get from ethers.js not equals to display in etherscan.io?

import {providers} from "ethers"; const provider = new providers.InfuraProvider("homestead") async function main() { provider.on("block", (blockNum)=> { console.log(blockNum+ ": " +new Date(Date.now())) }) } main() From code…
cruelcage
  • 2,044
  • 6
  • 19
  • 19
4
votes
1 answer

Is there any way to get the address of the library for a specific contract address?

We have a smart contract factory which deploys smart contract instances. These smart contract instances use SafeMath. We want verify code for these instance on Etherscan. But, Etherscan requires SafeMath library address to verify contract code. How…
3
votes
1 answer

Puppeteer element selection returning null or timing out

I am trying to use puppeteer to extract the innerHTML value from a button on a webpage. For now, I am simply trying to await the appearance of the selector to allow me to then work with it. On running the below code the program times out…
PeteG
  • 421
  • 3
  • 17
3
votes
1 answer

How to pass a two-dimensional array as a function argument in Etherscan?

I need to call a contract function from Etherscan that takes a 2d array as an argument, namely: foo (address[][]). I have tried every thinkable way to call the function with no success. Etherscan displays error expected array value (arg="foo",…
Pm Rivière
  • 191
  • 2
  • 13
3
votes
0 answers

How do I find the number of buys and sells within the last 24 hours for a specific ERC-20 token?

I found this API that can give the the list of 'normal' transactions for a smart contract given the address for example Shiba Inu…
3
votes
0 answers

atomicMatch for Opensea via etherscan?

Is it possible to complete an atomicMatch on Opensea via Etherscan? Rinkeby as example https://rinkeby.etherscan.io/address/0x5206e78b21ce315ce284fb24cf05e0585a93b1d9#code Some of the argument inputs look like they are taking several arguments as…
JohnG
  • 31
  • 3
3
votes
2 answers

Etherscan gas tracker api for testnets

I am trying to use Etherscan gas tracker api to get gas prices. I figured out to use apis for the Ethereum mainnet, however I am having some problems with the testnets. I have found a question and an answer that if I use api-ropsten for instance, I…
3
votes
1 answer

etherscan-api does not output pending transactions

I am using the etherscan-api here: (https://sebs.github.io/etherscan-api/#txlist) to get the list of transactions for a user (given public key), and I am getting the list of cleared transactions only, even though on etherscan.io I can see all…
xiaolingxiao
  • 4,793
  • 5
  • 41
  • 88
3
votes
1 answer

How to build Etherscan webscraper?

I'm building a webscraper that constantly refreshes a buch of etherscan URL's every 30 seconds and if any new transfers have happened that are not accounted for, it sends me an email notification and a link to the relevant address on etherscan so I…
1
2 3
12 13