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

Questions tagged [verify]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
2 answers
25 views

Contract verify [duplicate]

I get such error of compilation in Optimism Sepolia testnet network.The contract succesfully compiles using hardhat with needed configuration.What should I do to get verified the contract ?
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
1 answer
35 views

Invalid API key sepolia network blockscout

I deployed a contract on sepolia network and I would like to verify my coin using hardhat. npx hardhat verify --network sepolia 0x44ED9AB9F4Ab72e4b1aBfEBaDf5A942617B90D18 I created an API key on ...
1 vote
1 answer
373 views

How do I tell which solidity version eth-brownie is using to compile my contracts?

I'm not specifying a solidity version so I'm not sure which solidity version brownie is using to compile my contract. I'm using pragma solidity ^0.8.0; so I'm not sure which version above 0.8.0 ...
0 votes
1 answer
164 views

How to get the hash in isValidSignature for ERC1271?

AFAIK, to verify a message, I need three things - message, signer wallet address and signature which is the signed message. Like when I use MyEtherWallet signing tool. But in function isValidSignature,...
0 votes
0 answers
23 views

General Exception, unable to get compiled [bytecode]

Hi I created a smart contract using Remix, I deployed the contract but now that I try to verify my contract on BscScan I keep getting the following error: Error! Unable to generate Contract Bytecode ...
2 votes
2 answers
4k views

Verify contract not working (not match bytecode)

Contract: https://etherscan.io/address/0xec16fed4f619aacd70c7db48327d362f675bfc29 Contract.sol // SPDX-License-Identifier: MIT pragma solidity >=0.4.22 <0.9.0; import "@openzeppelin/...
3 votes
1 answer
106 views

How can I use BLS12-381 curve operations:EIP-2537, Whether it's on a public or private chain

Recently I have been doing an experiment to sign smart contracts with bls12-381, but I can't find any tutorial or code for this, Is there any way to do that? please tell me if you know about it.
0 votes
1 answer
564 views

ABI for Etherscan verification

How I can get ABI in multiple contract code? if the code is here: Token address is: 0x4960a0Db832c3Bb503F3Da59a274D9385e0Ade5A Crowdsale contract: 0x7a76d1A86a8b801865eC9134552904366b327A45 I ...
2 votes
1 answer
587 views

verifying code deployed with web3.js

I am deploying my smart contracts using web3.js and compiling the code using solc. The contracts are deployed successfully with no issues however I am having a bit of a problem in verifying my ...
2 votes
1 answer
460 views

Decoding signature for verification not working

I'm trying to verify a signature, but when I decode it, the function reverts. This is the function I'm using function source(bytes memory signature) public returns (bytes32 r, bytes32 s, uint8 v) { ...
1 vote
1 answer
1k views

Error in plugin @nomiclabs/hardhat-etherscan: Error! Missing Or invalid Module name

Cannot verify contracts using hardhat. On running the command - npx hardhat verify <contract_address> --network rinkeby I get a bunch of warnings like this - Warning: Variable is shadowed in ...
0 votes
1 answer
485 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
721 views

Failing to Verify Contract with multiple arguments on etherscan

I am trying to verify a deployed smart contract on etherscan (goerli testnet) using the command: npx hardhat verify --contract contracts/Contract.sol:Contract --constructor-args scripts/arguments.js --...
0 votes
1 answer
81 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
0 answers
23 views

How to validate transactions on private network?

I'm currently launching a private network using genesis.json. We ran two nodes to process transactions from miners. I would like to check whether the other node (verifier) is validating the ...
0 votes
1 answer
84 views

How is signing a hash different from signing a message?

I've got an Arduino microcontroller (ATmega328P) where I can use the following code (borrowed from here) snippet to sign an arbitrary message . First, I take the keccak256 hash of the message, and ...
0 votes
0 answers
210 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
228 views

How to Verify smart Contracts Using Web3.js and Solc?

everyone, I am new to web 3,I deployed smart contract successfuly and get back contract address but now I am trying to verify that the smart contract with web3 and solc . https://www.shawntabrizi.com/...
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). ...
0 votes
1 answer
30 views

I cant verify my contract. It is very basic code

I cant verify my contract. It is very basic code. I cant understand why. https://i.sstatic.net/tBEUl.jpg
1 vote
3 answers
322 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-...
1 vote
1 answer
240 views

Having a signed tx object from mempool in js how can I rebuild raw tx data using ethersjs or web3js?

I have a pending signed tx object received through subscribe on pending transactions in js. I need to build raw tx data to be able to send it directly to the network, but the following code does not ...
0 votes
1 answer
467 views

"invalid signature length" when trying to verify signature

I'm using the entire source code to sign and verify messages from https://solidity-by-example.org/signature/ on Remix. But when I go through the process of running the functions getMessageHash, ...
2 votes
1 answer
155 views

Contract Verify fails

This is my code for utils/verify.js const { run } = require("hardhat") const verify = async (contractAddress, arguments) => { console.log("Verifying Contract... ") try { ...
0 votes
1 answer
210 views

Programmatically verification of a smart contract on a Nextjs component

I have come across a situation in my project ( Hardhat, Nextjs, TailwindCSS ) where I need to verify my smart contracts right after their deployment. Clearly, we have a mother smart contract that ...
0 votes
2 answers
225 views

Issue verifying proxy contract with linked library

I am experiencing a weird issue when verifying a Proxy Contract on Etherscan. I am using hardhat, @openzeppelin/hardhat-upgrades, and @nomiclabs/hardhat-etherscan. The issue Error in plugin @...
3 votes
2 answers
1k views

Why doesn't my verification of a signed message signature work in PHP?

I am attempting to verify a signed message in PHP. To be clear, I am not looking to interface with JSON-RPC or any external service, which I both a) know works and b) successfully verifies the ...
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 ...
0 votes
1 answer
1k views

Contract verification Failed

I have two contracts Pool and PoolConfiguration, when deploying them to goerli test they both deploy successfully but when verifying on etherscan PoolConfiguration fail to verify and drops this error :...
2 votes
2 answers
172 views

Efficient way of verifying a sum of multiple numbers

If I have, let's say 1000 numbers or 10k numbers, and they all add up to 100 when combined, what would be the most efficient way to verify that in fact the sum of all of them is 100? I was thinking on ...
4 votes
2 answers
433 views

How verify transaction data in zkrollups?

The stateroot transition is verified by witness (pre- and post- state root) and proof, but validators also should verify the transaction data which is proposed by operators. How can verify the ...
0 votes
1 answer
178 views

yarn hardhat verify --help error

I'm trying to get help with the command yarn hardhat verify --help. I get the following error yarn run v1.22.19 $ F:\Aleksey\Study\Blockchain\projects\hardhat-simple-storage-fcc\node_modules\.bin\...
0 votes
1 answer
187 views

Verify complex smart contract with Hardhat help

I have a smart contract that imports from open zeppelin contracts. I have having some trouble verifying the contract through Hardhat. The contract compiles and is deployed on goerli testnet but i get ...
0 votes
0 answers
26 views

Verify on Rinkeby doesnt work for my contract eventho all parameters are right

Hello the following code has been succesfully compiled and deployed to rinkeby(0x2e38e76bc1bf67483e5c79dfa7adb8aa66667daf) but I cant verify it. I have quadruple checked the compiler version, if ...
1 vote
1 answer
69 views

Is it proper to estimate the throughput of verification from gas limit?

EIP-2537 says pairing of k pairs cost 23000*k + 115000 gas. Gas limit per block is 30M gas, and (30M-115000)/23000 is about 1299. Does it mean that there can be at most 1299 transactions to be ...
0 votes
2 answers
431 views

ParserError: Expected pragma, import directive or contract /interface/library definition

In an attempt to compile my ABI and verify my contract, I am getting the following warning: "ParserError: Expected pragma, import directive or contract /interface/library definition" on the first line ...
1 vote
1 answer
59 views

Verify on etherscan

Trying to verify contract 0x0568a87e64e65f4cc7898e08f0e57ffe2aa6241f, compiler 0.8.7 with source code // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/...
0 votes
1 answer
176 views

Signature from array of tokenId's isn't verifying

The domain message is: struct Offer{ address from; address to; uint256 nonce; uint256[] tokenIds; uint256 duration; } bytes32 constant ...
1 vote
2 answers
1k views

How can I verify a smart contract generated by another smart contract with some arguments?

I've created a contract factory smart contract and deployed + verified on Ropsten. How can I verify the child-contracts on etherscan? Parent contract: https://ropsten.etherscan.io/address/...
2 votes
1 answer
1k views

Is it possible to verify a given `block hash` is valid in a contract?

Inside my contract, I want to verify a given block hash is valid or not. block_hash_validation(string blockhash) returns (bool){ ...//check() return true; || return false; } Q1: If yes, from ...
1 vote
1 answer
840 views

Create zkProof onchain

Is it possible to create ZK-SNARKS proofs and verify them, all onchain, with solidity, without reveling the witness? The proving and verifying keys could be created offchain, but these two would have ...
0 votes
1 answer
144 views

Verifying the signature of a transaction seems circular

I'm reading Mastering Ethereum. Around page 116 it says; "to verify the signature one must have the signature (r and s), the serialized transaction, and the public key that corresponds to the ...
0 votes
1 answer
440 views

Failing to verify signature

I'm trying to verify a signature using OpenZeppelin's SignatureChecker library, but always returns false. This is the verify function from the lib: function isValidSignatureNow( address ...
0 votes
1 answer
844 views

Contract Verification Problem on Matic using Hardhat ```npx hardhat verify --network matic```

I am trying to deploy a contract on Matic network, I have an API key set up and the proper private key for metamask in my env. ( I have deployed many contracts and verified them this way many times. ...
8 votes
4 answers
6k views

Error when trying to verify contract

I'm trying to verify pn Etherscan my contract, but getting this error. What could it be? PS C:\Projects\HardHat TS2> npx hardhat verify --network rinkeby 0x9517F72c4b61A07fd0cF684eE7A74C18Eb36dad8 ...
0 votes
1 answer
46 views

How to verify smart contract used with github link

Hello this is simple question how to verify a erc20 smart contract of github openzeppelin link? I have erc20 token build with github openzeppelin link I want to verify it on explorer how to do it? ...
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
0 answers
988 views

Call contract that's unverified [duplicate]

I am currently developing a smart contract ecosystem. I want to interact with my smart contracts on the testnets. However, I have to verify to do so. I cannot verify, as I don't want my code displayed ...
1 vote
0 answers
216 views

Verify Smart Contract ABI Encoded Avalanche

I would like to verify a smart contract with snowtrace.io explorer on Avalanche. For this I need Constructor Argument ABI-Encoded To encode this, I use https://abi.hashex.org/ Anyway I get the error ...