Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

Questions tagged [contract-verification]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
11 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", ...
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&...
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 ...
0 votes
1 answer
338 views

Can not verify source code on Etherscan (ERC721 contract)?

pragma solidity ^0.7.0; import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v3.4/contracts/token/ERC721/ERC721.sol"; import "https://github.com/OpenZeppelin/...
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 ...
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 ...
0 votes
2 answers
528 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:...
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 ...
2 votes
2 answers
905 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 ...
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?
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 ...
0 votes
1 answer
93 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 ...
0 votes
1 answer
2k views

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 ...
1 vote
1 answer
458 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 ...
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). ...
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 ...
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 "...
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 ...
0 votes
1 answer
150 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://...
0 votes
1 answer
99 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 ...
0 votes
2 answers
321 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&...
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 ...
0 votes
0 answers
207 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 ...
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). ...
2 votes
2 answers
594 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 ...
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 ...
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 ...
1 vote
3 answers
318 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-...
0 votes
1 answer
86 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; ...
1 vote
1 answer
6k views

Token contract source code not verified

Hi i have create my token with your code i have use https://github.com/ConsenSys/Tokens/blob/master/contracts/eip20/EIP20.sol end https://github.com/ConsenSys/Tokens/blob/master/contracts/eip20/...
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: ...
0 votes
1 answer
56 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/...
1 vote
2 answers
3k views

Checking whether a contract is verified on Etherscan or BSCscan through an API?

I've been trying to write a script to monitor new pairs created on Pancakeswap to see if there are tokens worth investing into. However I've noticed that 80% + of those are scams, and most of the time ...
3 votes
2 answers
704 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 ...
-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 ...
3 votes
3 answers
3k views

Do you know online tool for abi encoding?

Is there easy to use online tool to encode ABI parameters to pass verification on etherscan?
2 votes
1 answer
77 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?
0 votes
2 answers
3k views

How to find ABI and verify my contract

When I try to verify my contract , it returned: Note: Contract was created during TxHash# 0x8a13fd16a810e886266d49addf46e459847d583528f966561e45abdd34a13e14 Result: Does not match the input creation ...
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&...
0 votes
1 answer
188 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 ...
1 vote
3 answers
686 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 ...
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 ...
2 votes
3 answers
804 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-...
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 ...
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.) ...
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 <...
0 votes
1 answer
321 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 ...
0 votes
1 answer
223 views

Failed to verify contract source code due to timeout/memory limit

Failed to verify contract deployed through remix on Ropsten network both using optimization and without it. Error is: Exception #1 Occured: ERROR|The Contract solidity compilation has exceeded the ...
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 ...
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 ...