How to verify contracts on the BSC

hey bro, i have same trouble. can you help me please?

sir i don’t understand, where i can configure the plugin in builder.config.js ?

this file not found in folder

Hardhat was previously Buidler. so you should set configs in the hardhat.config.js

1 Like

bro do you found any wrong in there?why it’s say error?
“MYAPIKEY” is my bscscan API key

It looks like ok, so what’s the error?

if i execute, its say like this

Error HH110: Invalid JSON-RPC response received:

Emmmmm, maybe you should change to another RPC endpoint, have a look at their documentation: https://docs.binance.org/smart-chain/developer/rpc.html

still error,i don’t know what going on

Sorry, I really do not know much about BSC-Chain, maybe you can share code at here, and then I can have a try to verify.

1 Like
pragma solidity ^0.8.0;

import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol";

contract ShigokuKen is ERC20 {
    constructor(uint256 initialSupply) public ERC20 ("ShigokuKen", "SHIG"){
        _mint(msg.sender, initialSupply);
    }
}
`

this my contract address
0xC0cd44CF203066EB90eD8c5A978A6D75723f4412

I have tried, but it always fails, so maybe this not the original code.

well that’s okay, i really appreciate your help. Thank you very much

1 Like

The Verification Issue I have now resolved.

Thanks to the help in this forum.

Id be happy to explain the fix I identified, and a potential bug that the devs might want to know about, in the remix flattener.

In any case Cheers. Happy coding Gentlemen.

Button

Verification

Resolved

@Yakinm,

Seems theres an artifact in your code below just following the closing bracket.
Not sure it was a part of the original deployment or just an errant key stroke when posting it into the forum.

pragma solidity ^0.8.0;

import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol";

contract ShigokuKen is ERC20 {
    constructor(uint256 initialSupply) public ERC20 ("ShigokuKen", "SHIG"){
        _mint(msg.sender, initialSupply);
    }
}
`

In either event it seems that you and I have the same exact code. And hoping too - for some added guidance with validation.

Best of luck either way.

Cheers

Hello,

Can someone please help me verify my contract? Thanks in advance.
my Code:

pragma solidity ^0.8.0;

import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol";

contract SetupCoin is ERC20 {
    constructor(uint256 initialSupply) public ERC20 ("SetupCoin", "STPC"){
        _mint(msg.sender, initialSupply);
    }
}

My contract adress: 0xf2c787abb72adce1af959e229ba55011871ce5e4
compiler: 0.8.1

Hi, I think you should have a try following this tutorial:

Verified! | BscScan