CRYPTO NEWS

How do I verify a smart contract on testnet bscscan?

I deployed a smart contract on Binance Smart chain testnet, and I’m trying to verify it. Through hardhat, it needs an API Key, but it doesn’t look like you can get an API key for testnet.bscscan.com.

If I copy and paste my solidity code manually and try to Verify and Publish from the testnet BSCScan page, it doesn’t work because it is importing @chainlink libraries and I get the error "ParserError: Source "@chainlink/contracts/src/v0.8/VRFConsumerBaseV2.sol" not found: File import callback not supported"

Is there a way to get around that error?

Unable to deploy smartcontract using web3j and Rinkbey infura

I’m trying to deploy a smartcontract on Rinkbey. I’ve followed the official documentation and some tutorials. I implemented the following code in my android studio but contract.deploy returns nothing. private fun connectWithRinkBey() { // web3j = Web3j.build(InfuraHttpService(rinkBeyUrl)) val web3j = Web3j.build(HttpService("https://rinkeby.infura.io/v3/786cbf2ff21241c583732b7a1741880a")) try { val clientVersion = web3j.web3ClientVersion() .sendAsync().get() if (!clientVersion.hasError()) { Toast.makeText(this, "Connected", Toast.LENGTH_LONG).show() Log.d(TAG,::Listen

I’m trying to deploy a smartcontract on Rinkbey. I’ve followed the official documentation and some tutorials. I implemented the following code in my android studio but contract.deploy returns nothing.

 private fun connectWithRinkBey() { //        web3j = Web3j.build(InfuraHttpService(rinkBeyUrl))         val web3j = Web3j.build(HttpService("https://rinkeby.infura.io/v3/786cbf2ff21241c583732b7a1741880a"))         try {             val clientVersion = web3j.web3ClientVersion()                 .sendAsync().get()             if (!clientVersion.hasError()) {                 Toast.makeText(this, "Connected", Toast.LENGTH_LONG).show()                 Log.d(TAG, "deployContract2: Starting")                 Log.d(TAG, "deployContract2: ${deployContract2()}")                 Log.d(TAG, "connectWithRinkBey: Ending")              } else {                 Toast.makeText(this, clientVersion.error.message, Toast.LENGTH_LONG).show()             }         } catch (e: Exception) {             Toast.makeText(this, e.message, Toast.LENGTH_LONG).show()         }     }  private fun deployContract2(): String {         val transactionManager = RawTransactionManager(web3j, getCredentialsFromPrivateKey())         val contractGasProvider = StaticGasProvider(gasPrice, gasLimit)         return Trust_sol_Trust.deploy(web3j, transactionManager, contractGasProvider)             .send()             .contractAddress     }  

How do I verify a smart contract on testnet bscscan?

Shopping cart
There are no products in the cart!
Continue shopping
0