# verify and publish

rinkeby etherscan > go to contract address > ![](/files/NwKYiwFe57XAyAkY6VC5)

![](/files/ACSQcvmhkz1oxqRGS81F)

Then we will come to this screen:

![](/files/6zsUVELSIEgg2zxNk1Vq)

We need to input the flattened solidity source code -> meaning copypasta all the imports and so forth.

can pro-grammatically flatten:

* get API key from ehterscan account
* input into brownie in .env file:

![](/files/YuAd7kuSQvEQ52yZb71C)

* in deploy.py, edit your deploy statement like so:

![](/files/Rg9OM6PP2WEIkkK9kL1B)

now rerun brownie run deploy.py --network rinkeby

![](/files/njwqMqPICrDgZTlfykE0)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://calnix.gitbook.io/eth-dev/archive/brownie-framework/brownie-advanced/verify-and-publish.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
