Etherscan allows you to explore and search the Ethereum blockchain for transactions, addresses, tokens, prices and other activities taking place on Ethereum
Questions tagged [etherscan]
183 questions
2
votes
1 answer
How to get token prices with UNISWAP API
I am using uniswap python api to get live token prices. I am using all the variation of the builtin functions. However, it does not give me the right value.
HERE IS MY CODE
address = "0x0000000000000000000000000000000000000000"
private_key = …

Dude
- 366
- 5
- 19
2
votes
0 answers
Can't verify contract on etherscan - unable to locate a matching bytecode (err_code_2)
As the title says I cannot verify my smart contract on Etherscan. I read all the solutions from similar threads with no luck. I'm getting the following error :
Error! Unable to generate Contract ByteCode and ABI
Found the following…

user3362334
- 1,980
- 3
- 26
- 58
2
votes
1 answer
Geth: balance is always 0 on --rinkeby
According to Etherscan i have 7.5 Ether, but when I execute eth.getBalance(eth.accounts[0]) inside the Javascript console it returns always "0"
this is how I am connecting geth to rinkeby (is running for more than 24 hours)
geth --rinkeby
this is…

Gelso77
- 1,763
- 6
- 30
- 47
1
vote
2 answers
Get list of recent added/deployed smart contracts
Is there a way to retrieve the most recent added/deployed smart contracts to the ethereum chain?
Thanks a lot for any advice.
Regards,
JR

JR_
- 183
- 1
- 3
- 15
1
vote
0 answers
Unable to verify smart contract on polygoanMumbai using VSCode
I tried to verify my contract with constructor arguments but hardhat throwing that error everytime my smart contract file is given below
Domain.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.10;
// We first import some…

Andro Tech Buddy
- 81
- 5
1
vote
1 answer
Unable to query or get any response from BscScan contract
The following code:
const { JsonRpcProvider } = require("@ethersproject/providers")
const { Contract } = require("ethers")
const { Wallet } = require("@ethersproject/wallet");
const abi = require('./abi.json');
const GLOBAL_CONFIG = {
…

steve
- 11
- 2
1
vote
1 answer
How pass array of numbers to contract function in Etherscan?
I have this piece of code from a solidity contract:
function loadMintIDs(uint256[MAX_TOKENS + 1] memory array) external onlyOwner {
require(array.length == MAX_TOKENS + 1, "List of IDs must be MAX_TOKENS + 1");
require(!IDsLoaded,…

Swerfer
- 345
- 1
- 9
1
vote
0 answers
Etherscan status difference between pending and indexing
I've been checking block status and then I got wonder that I can't see pending in RinkebyScan but indexing.
The reason I check this is because I want to speed up my tx so I need to send new tx with higher gas when tx I sent is pending. But it always…

mynameisConan
- 19
- 2
1
vote
1 answer
How to calculate dollar value of transaction fee from Gas price details in Ethereum transaction
I am looking to convert gas fee info from this api end point: into dollars (calculating taxes).
The endpoint gives 'gas', 'gasPrice' and 'gasUsed' values that I'm sure would be enough, but I can't quite work it out.

PeteG
- 421
- 3
- 17
1
vote
1 answer
NFT from custom ERC-1155 smart contract not displaying correctly on Etherscan for Goerli test net
I have deployed an ERC-1155 smart contract to the Goerli test net at address: 0xE4e0b1FA4b3f4B947A14D429962eD30fEc9b9a96 (Etherscan link)
I performed the first transaction on the smart contract, which transferred an NFT to this address:…

Austin
- 41
- 4
1
vote
1 answer
How to tell if a transaction is related to an NFT (erc721) transaction or not in etherscan
How can we say if the following transaction is related to NFT (ERC721) transaction or not in Etherscan?
https://etherscan.io/tx/0xe2be6b09de94d1e17e575141adfa4351d97fa1ca1a619a3397403c51db0fa6a1

Anwesa Roy
- 73
- 6
1
vote
2 answers
Why is polygon mumbai giving error when trying to verify contract code?
I have tried using truffle, hardhat, alchemy and remix to do various methods of flattening then verifying or trying to verify using polygon API endpoints but all of them result in the same…

eljimm
- 43
- 5
1
vote
1 answer
How to add a logo to an ERC20 token?
I am new to blockchain. I really couldn't understand how to add logo to my erc20 crypto token on polygon before listing it on any coin market.
I want to add my own custom image to the circular portion. How can I change this current logo to…

Blockchain Kid
- 315
- 2
- 9
1
vote
0 answers
Prefill etherscan read contract page with data
How can I open etherscan read contract page (e.g. https://rinkeby.etherscan.io/address/0xbBfd0898b2cDA95955Ca9e22E96b7f9e338Ccda9#readContract), expand all tabs and prefill them with data (see screenshot)

sane5ek
- 11
- 1
1
vote
1 answer
Ethers pass method name with parameters instead of hexdata
I am using ethers to interact with contracts on Ethereum.
This is how my method looks like:
const tx = await signer
.sendTransaction({
to: contractAddress,
value: ethers.utils.parseEther(price),
data: hex,
…

Webby
- 146
- 10