1

Brownie, Hardhat, and Truffle all provide contract verification as part of the core library capabilities. I do not see that Ape Framework have a dedicated module in their docs for verifying contracts.

https://docs.apeworx.io/ape/stable/userguides/quickstart.html

1 Answer 1

2

Ape Framework is a plug-in oriented smart contract deployment tool. There is actually a dedicated Etherscan plugin located here.

Set your Etherscan API Key:

export ETHERSCAN_API_KEY=SAMPLE_KEY

Publish the source contract code by passing the publish argument:

from ape import accounts, project

account = accounts.load("testnetacct")

account.deploy(project.MyContract, publish=True)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.