Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [contract-verification]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
12 views

Issue with ERC20 Contract Verification on Base API Despite Successful Response

I'm attempting to verify my ERC20 contract using the Base API. I'm receiving a positive response with the following: { "status": "1", "message": "OK", ...
Yazan Ali's user avatar
0 votes
0 answers
11 views

Contract Verification Problem

I'm encountering a perplexing issue while trying to verify my contract through BaseScan. I received a successful verification response from https://api.basescan.org/api as follows: { "status&...
Yazan Ali's user avatar
0 votes
0 answers
24 views

Unable to generate Contract ByteCode and ABI

I have deployed my smart contract on Base Mainnet, and when i try to verify it on Basescan, I keep getting this error message: "Error! Unable to generate Contract ByteCode and ABI (General ...
alanng90211's user avatar
0 votes
0 answers
21 views

I am experimenting with a contract and creating my own router and running into a verification Issue on EtherScan

hope you all are well. I wanted to see if anyone would be able to help me diagnose what I could possibly be doing wrong. Ive read through numerous posts and it seems many solutions have not yet helped ...
Altcoin View's user avatar
0 votes
2 answers
537 views

I can't verify a proxy contract on polygon amoy testnet with Hardhat

how can I verify a proxy contract on polygon amoy testnet with Hardhat? When I run the verify command, I get the following error, so I can't verify: Etherscan API call failed with status 404, response:...
user1492006's user avatar
0 votes
0 answers
12 views

Etherscan.io Verification Addresses

It's taking me a long time to verify addresses on Etherscan.io Can someone give me a solution for verifying contract addresses?
Brenda Lee Smith's user avatar
0 votes
3 answers
1k views

Unable to verify contracts on polygon Amoy testnet

I have deployed some contracts on amoy testnet. To verify I followed this doc and I have also used the same approach for other chains as well. But in this case I am getting the following error: Error ...
Solidity Nerd's user avatar
0 votes
0 answers
35 views

Etherscan - Problem with smart contract verification (Error! Unable to generate Contract Bytecode and ABI)

I got a smart contract created (Metamask) and deployed to Etherscan via REMIX. On Etherscan my Metamask wallet appears as contract creator. All went fine - so far so good. Now my problem: I try to ...
hausgeist's user avatar
0 votes
0 answers
14 views

Etherscan does not recognize Remix Flatten contract? Don't know why?

I just tried to verify my token contract in Etherscan with a flattened version of the contract, generated from the Remix feature. It is a standard openzeppelin ERC20 contract and got the following ...
Patupai's user avatar
1 vote
2 answers
79 views

Verification of a proxy contract not working because of constructor args

I am creating a smart contract verification service as a learning experiment and I am now able to verify most of contracts that I come across etherScan (in part doing so there is not only an option). ...
Daniel Pérez García's user avatar
0 votes
1 answer
80 views

Different bytecodes when verifying contract on Etherscan Goerli for code from OpenZeppelin Wizard

I went to https://wizard.openzeppelin.com to generate an ERC20 contract and then pasted the contract on Remix and deployed on Goerli. Then, I flattened the same code and tried to verify it on Goerli ...
ratib90486's user avatar
0 votes
0 answers
23 views

Multiple Solidity Versions in flattened file

I have deployed a contract to Mumbai Polygon testnet. While verifying and publishing source code, the flattened file has multiple solidity versions. I got the error below. The OpenZeppelin contracts ...
Valli Nayaki's user avatar
0 votes
0 answers
208 views

Foundry: Veirfy contracts on deployment with config in foundry.toml

Ok so I'm using Foundry to deploy contracts to multiple networks (Ethereum and L2s). I use the --verify option to verify on deployment. On goerli network the contracts get verified automatically on ...
Inn0vative1's user avatar
0 votes
1 answer
95 views

How to Retrieve Library Addresses Linked to a Smart Contract on Etherscan?

I've run into a situation where I need to identify the library addresses that a verified contract is linked to. I understand that during the contract verification process on Etherscan, one must ...
MShakeG's user avatar
  • 1,693
0 votes
1 answer
18 views

How can I verify & publish source code on bscscan?

Can someone please help me verify & publish the source code for this token? I keep getting error message saying invalid constructor arguments (please make sure they are in ABI encoded format). ...
Toya Brown's user avatar
1 vote
1 answer
108 views

how to verify a contract on etherscan?

thank you for your answers, but I think I'm still missing something, I don't know where to look for the elements that I don't like? does anyone have a solution please? I try with CONTRACT VERIFICATION ...
Bryce De Nyce's user avatar
0 votes
1 answer
87 views

how to deploy factory smart contract

// SPDX-License-Identifier: MIT pragma solidity ^0.8.17; contract Car { string public model; address public carAddr; constructor( string memory _model) { model = _model; ...
Nisarg's user avatar
  • 21
1 vote
3 answers
321 views

I can't verify contract on etherscan because it needs abi-encoded constructor

I can't verify and check my contract on Etherscan. It asks me for the abi-encoded constructor, but I can't find it. Can someone help me, or tell me how to find the missing information? Please! // SPDX-...
Bryce De Nyce's user avatar
0 votes
1 answer
151 views

Sourcify is failing to verify a contract that is verified on etherscan. Why?

This contract address: 0xA933268b812f97Cf623Af8d16780e45880fa1af2 Is verified on mumbai polygonscan. When I try to verify it with sourcify, I get this error: invalid json response body at https://...
Yan Digilov's user avatar
0 votes
2 answers
322 views

contract.deploymentTransection.wait(1) not working in ethers version 6.4.0

Error is in this line const deploymentReceipt = await contract.deploymentTransection.wait(1); Entire code I am using to deploy contract and wait const { ethers, run, network } = require("hardhat&...
Aditya's user avatar
  • 21
0 votes
1 answer
57 views

How to find Constructor Arguments for verification on Etherscan.io

I spent 4 days for this work. plz make me know anybody. this is solidity code of my token I use openzeppelin. // SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "@openzeppelin/...
jerry12345's user avatar
0 votes
1 answer
101 views

verifying smart contract using etherscan api?

I wanted to verify my smart contract from polygonscan api but when I use this code I always get a Module Error : "Error! Missing Or invalid Module name" and this is the code I am using in ...
geniar99's user avatar
3 votes
2 answers
715 views

Why can't MetaMask "verify" a contract?

When interacting with smart contracts via MetaMask, what does it mean when the wallet tells you "We cannot verify this contract. Make sure you trust this address"? See an example of the ...
Iaroslav's user avatar
  • 365
-1 votes
1 answer
80 views

Verify contract code on Etherscan when deployed with Ethersjs factory

I have contract compiled via hardhat and types generated via typechain. In my typescript code I am using await MyContract__factory.deploy() to deploy the contract. Is there a way / library / etc to ...
Milk's user avatar
  • 431
2 votes
2 answers
599 views

Extracting salt from tx's to the CREATE2 deployer contract 0x4e59b44847b379578588920ca78fbf26c0b4956c

I've noticed a pattern in deploying CREATE2 contracts and now I'm trying to find out the salt used. The reason is, for verifying contracts with CREATE2 on Sourcify salt and the deployerAddress are ...
kuzdogan's user avatar
  • 657
2 votes
1 answer
79 views

unable to verify etherscan contract may be due to high optimize runs

I have used high optimize runs as 999999999 while deploying contract.. I need to verify contract on etherscan but it has range from 0-1000000 .. what should i do?
Abhishek Bengani's user avatar
1 vote
0 answers
38 views

How to pass argument with a specific interface into constructor for a sucessfull etherscan verification?

I have an marketplace contract that needs to be verified. It looks like this: // SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/token/ERC721/IERC721.sol&...
weird-dreams's user avatar
0 votes
1 answer
189 views

Verify a cloned contract

I want to deploy a contract via the clone factory pattern described here Is there a way to verify the child cloned contract (preferably via CLI) on etherscan? I know for proxy contracts generally it ...
YBM's user avatar
  • 1
1 vote
3 answers
689 views

Is it possible to verify someone else's smart contract on Etherscan?

I just deployed an ERC20 token on the Rinkeby testnet. The token has some features like Minting and Burning. After verifying the code on Etherscan I am able to interact with the functions and generate ...
Federico Gentile's user avatar
0 votes
1 answer
16 views

Problems verifying token contract address

I am having problems verifying my token as it shows https://i.stack.imgur.com/N8GFF.png Even though the bytecode appears to be correct im getting a safemath.sol error and i cant seem to figure out how ...
ItsInhaleYo's user avatar
0 votes
1 answer
167 views

ERC-1155 contract verification error: Unable to generate Contract ByteCode and ABI | ByteCode (what we are looking for): - vs what we got -

I'm getting the following error while verifying my ERC-1155 smart contracts. Before verifying I cross-checked the following things: compiler version. Optimizer settings (enabled or not, runs, etc.) ...
BUIDLer's user avatar
0 votes
0 answers
209 views

factory implementation etherscan verification

I have a contract and its factory. The factory allows cloning of the contract through EIP-1167. Although I can deploy the factory and verify it easily on etherscan: hardhat verify --network <...
Syffys's user avatar
  • 121
0 votes
1 answer
323 views

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

While testing some deployment and verification scripts, we deployed a smart contract and verified it on testnet etherscan. Then redeployed the smart contract again and tried to verify the new contract ...
em_mutable's user avatar
2 votes
2 answers
909 views

How do the public key recovery methods like secp256k1.RecoverPubkey(msg, sig) recover public key from a transaction signature

For a signature done using a private key, we know that the corresponding public key is needed to verify. When the address is a one way hash function of the public key (which means from the address, it ...
thiru's user avatar
  • 21
0 votes
1 answer
458 views

Hardhat test verificaiton failed

I have Error in plugin @nomiclabs/hardhat-etherscan: The selected network is hardhat. Please select a network supported by Etherscan. when trying to verify a contract in hardhat. The contract: ...
Mentasuave01's user avatar
1 vote
1 answer
1k views

Automatic verification of Smart Contracts deployed from another Smart Contract

I have seen an Smart Contract that deploys new contracts, which are automatically verified in etherscan without doing anything special: Contract contract = new Contract(a, b); The contract is ...
Alexander Herranz's user avatar
2 votes
3 answers
807 views

"TypeError: etherscan.apiKey.trim is not a function" with multiple API keys

greeting the next link continue part about Multiple API keys and alternative block explorers https://github.com/nomiclabs/hardhat/tree/master/packages/hardhat-etherscan#multiple-api-keys-and-...
naive2022's user avatar
1 vote
1 answer
459 views

BSC-Testnet Contract verification Fails: Error! Unable to generate Contract ByteCode and ABI

I've been struggling with this with different methods. As the most straightforward, I tried manually-flattening the code in REMIX, and verifying it on bscscan. Compiler version OK, Runs for ...
ealco85's user avatar
  • 23
2 votes
0 answers
38 views

dapptools verification: jays: error in -e

I'm deploying a simple blank contract: // SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.6; contract DapptoolsPlay { } However, when I use the verify command from dapptools, I run ...
Patrick Collins's user avatar
1 vote
0 answers
15 views

The concept of delayed abstraction: VerX

I am trying to understand the concept of delayed abstraction mentioned in paper [416] at: Link of VerX VerX tool uses the concept of delayed abstraction for SC verification. Is Delayed abstraction ...
zak100's user avatar
  • 1,406
1 vote
0 answers
220 views

TRYING TO VERIFY MY SOURCE CODE ON ETHERSCAN ErrorUnable to generate Contract ByteCode and ABI (General Exception, unable to get compiled [bytecode])

Compiler Warning(s): ParserError: Expected pragma, import directive or contract/interface/library/struct/enum/constant/function definition. --> myc:1:1: | 1 | "accounts": { | ^^^^^^^^^^ ...
zack's user avatar
  • 11
1 vote
0 answers
261 views

" But we were unable to locate a matching bytecode (err_code_2)" - can't verify smart contract on etherscan

I deployed my contract to rinkeby recently but I am unable to sell verify it. Here's a screenshot of the page. I've already flattened the file (since I imported like 10 OZ files) via remix, and it ...
kmao's user avatar
  • 21
1 vote
0 answers
130 views

How to update local search path for nomiclabs-hardhat-etherscan?

The documentation says: Just provide the deployment address and constructor arguments, and the plugin will detect locally which contract to verify however I have some contracts that only implement ...
ClementWalter's user avatar
0 votes
1 answer
483 views

Problem with "Verify & Publish Contract Source Code" on BscScan

I wanted to "Verify & Publish Contract Source Code" on BscScan, but I get this message: ParserError: Multiple SPDX license identifiers found in source file. Use "AND" or "...
Piotrekkk's user avatar
0 votes
1 answer
210 views

brownie deployment KeyError: 'OpenZeppelin/[email protected]/Address' FLAT FILE?

Could anyone help me make sense of this error. For context. I had 2 contracts 1 will verify and the other won't. I noticed this when trying to merge them into 1 contract. The contract that is not ...
William Best's user avatar
1 vote
1 answer
1k views

Properly parse contract creation bytecode metadata hash using cbor module in npm

I 'd like to build a smart contract verification service like etherscan. While trying some verfication test on etherscan, I get to know that deployed contract blockchain bytecode differs from ...
kimiro's user avatar
  • 165
0 votes
2 answers
651 views

What is the problem with how i am going about verifying my contract i just deployed?

Im having troubles verifying and my constructor arguments and ABI have been triple checked. Can anyone assist? here is what im getting on polygonscan. Compiler debug log: Error! Unable to generate ...
0xGbrads's user avatar
1 vote
0 answers
204 views

I am unable to publish and verify my contract on etherscan kovan test network. (Year 2021)

I am trying to publish my contract on kovan testnet but in the compiler output section, I am getting the same error again and again. I tried to do everything which was asked there, but couldn't find a ...
Caxva's user avatar
  • 11
1 vote
1 answer
1k views

token is not verifying on bsc scan

i am using remix to deploy this token. it compile and deployed to mainnet/testnet using remix. but when i try to verify the source code it gives me this error. Error! Unable to generate Contract ...
stofu's user avatar
  • 93
1 vote
1 answer
2k views

etherscan contract verification unable to match bytecodes due to $-signs

I have a contract called Test , which uses a library called LCG. They are respectively defined in the .sol files with the same name as the contract: // SPDX-License-Identifier: GPL-3.0 pragma solidity ...
Marlo's user avatar
  • 339