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?



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.