New answers tagged

0 votes

How to calculate gas cost of an ETH transaction in USD?

gasUsed * gasPrice should give you the cost in wei (10^18 wei = 1 ether). So you just need to get the ether price at timeStamp to get the price in whatever fiat you want.
user avatar
  • 29.1k
0 votes
Accepted

How get hash for user transaction?

Probably what you want is to monitor pending transactions? If that's the case, you need to connect to a node via websocket and subscribe to the "PendingTransactions". Something like this: ...
user avatar
  • 306
0 votes

How are Public Name Tags regsitered on Etherscan?

Not sure about the registry question. Check the API. To set metadata about a contract, you first claim ownership of the contract which gives you an admin web interface. Open an account with Etherscan ...
user avatar
  • 51.3k
1 vote

How to get transaction link into etherumscan to my website using etherumscan API

see if the transaction hash is generated it means it is successful transaction and in order to get transaction hash you can use " let txConfirm = await provider.getTransaction(FUNCTION_NAME.hash) ...
user avatar
0 votes

Get ETH Wallet address list (holder list) given a smart contract address (erc20)

It's not possible to get the holders information directly from the ERC20 contract itself. However there are some services offering their API for querying such info. Covalent offers an API for free. ...
user avatar
1 vote

How to find original mint transactions for crypto punks?

There's an earlier version of CryptoPunks token - https://etherscan.io/txs?a=0x6ba6f2207e343923ba692e5cae646fb0f566db8d&p=304 It was fully minted upon deployment and people who wanted to get one ...
user avatar
  • 2,435
1 vote
Accepted

Contract has callable functions not in ABI or source code

We could help better if you included more details such as contract addresses. But in your case it seems like that contract is a Proxy Contract, this is why you don't see the implementation nor the ...
user avatar
1 vote
Accepted

How to determine if a smart contract is ERC721 if it is not responding with ERC721 interfaceID

If it does not respond to the ERC-721 interface ID then it is not ERC-721. Some people are using heuristics (easiest is the setApprovalForAll event) and then they are labeling the things it finds as ...
user avatar
1 vote

ETH address with 35 leading zeros transacting?

The example you provided doesn't show an address with 35 leading zeros sending a transaction, but sending and receiving ERC20 tokens. Ad 1: You're right in the first part, but ERC20 transfers are not ...
user avatar
  • 665
0 votes
Accepted

Ethers.js: Error when calling symbol() on Maker (MKR) contract but no problem for other ERC-20 token contracts

The Maker token does not implement the optional parameters symbol and name as proposed by EIP-20: As you can see here, Maker uses bytes32 for symbol and name. , where in the case of EIP-20 they are ...
user avatar
  • 135
0 votes

How to get the total value of a address including tokens other than ETH

Seems like etherscan only provides ETH balance (in eth) in their APIs. But you could get all of the tokens of an account with ethers.js (or web3.py it doesn't really change much) like this, get the ...
user avatar
0 votes

UniSwap V3 API : How to track **unclaimed fees** programmatically?

In order to get the right amount of uncollected fees for each token of your position, you should query the position and do a bunch of math. In the alternative, you can call the smart contract directly ...
user avatar
0 votes

Where are contract functions implemented on bscscan verified contract

The contract Acc is only used as an interface so it doesn't need a code to be associated with the contract. If you look at the constructor constructor(address _acc) it receives an address that will ...
user avatar
  • 29.1k
0 votes

How to get all the information of a uniswap trade using web3?

Ethereum transaction contains input (call data) output (receipts) Both need to be analysed to underthe Uniswap trades fully. web3-ethereum-defi package provides function uniswap_v3....
user avatar
0 votes
Accepted

Is A New Instance of an Already Verified Contract Considered Already Verified

In many cases, Etherscan is able to match the newly deployed bytecode to contracts that were verified earlier (if the contract code didn't change). They do this "auto-verification" to expand ...
user avatar
  • 1,977
0 votes

How to trace a token adress from an ERC 721 transfer transaction?

You can use this API endpoint for Ropsten Network. It will provide you all the details with tokenID and other details of your address. https://api-ropsten.etherscan.io/api?module=account&action=...
user avatar
0 votes

Using Etherscan API to get the Token ID of a transaction

You can use this API endpoint for Ropsten Network. It will provide you all the details with token. https://api-ropsten.etherscan.io/api?module=account&action=tokennfttx&address=<...
user avatar
0 votes

How do I send my custom erc20 token from ethreum to arbitrum?

If your token does not exist on arbitrum testate and you send your tokens from ethereum, then arbitrum would first deploy the smart contract associated to the token and then transfers it to your ...
user avatar
1 vote

Etherscan api: how to get transaction fee?

I was just doing a similar thing (but calc before i send a tx). The process is to Get the average price for the currency you want the value in. i.e. USD. Coingecko has a free api that returns a list ...
user avatar
0 votes

Error when trying to verify contract

You will need to delete the files and recompile: run npx hardhat clean run npx hardhat compile try verify again. npx hardhat clean deletes cache and artifacts :)
user avatar
1 vote
Accepted

I am misunderstanding the gas data i'm seeing. Where is my disconnect?

When you sign an Ethereum transaction, you specify a gasLimit. Not the block gasLimit of 29941438 that appears in your data, but your transaction gasLimit. This is the maximum number of gas units ...
user avatar
  • 958
1 vote
Accepted

What are these 2 transactions with the same hash and different values?

Looking at the transaction in your example on etherscan I see this transaction makes multiple transfers of erc20 tokens to various address. It seems that the etherscan endpoint you are querying ...
user avatar
0 votes

Etherscan contract not updated even though contract updated

Can you elaborate? Smart contracts arent upgradeable. Once you deploy something on chain, it's here forever (Well it's an oversimplification, but thats the idea). What did you do exactly when you &...
user avatar
  • 956
0 votes
Accepted

Can ABI be uploaded to Etherscan without source code?

Discovered this. Etherscan recommends it for debugging purposes, but it's possible. https://info.etherscan.com/custom-abi/
user avatar
  • 13
0 votes

How to get failed transaction status code by using python web3?

Let's clear something first which can be misleading. Transaction status code in the term of ETH tx receipts is an integer, 0 for failed, 1 for successful tx's. If I am right this is not exactly what ...
user avatar
  • 186

Top 50 recent answers are included