Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/learn/foundry/verify-contract-with-basescan.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ async function verifySourceCode() {
const params = new URLSearchParams({
module: 'contract',
action: 'verifysourcecode',
apikey: 'DK8M329VYXDSKTF633ABTK3SAEZ2U9P8FK', //remove hardcode
apikey: '<YOUR-API-KEY>',
});

const data = new URLSearchParams({
Expand Down Expand Up @@ -258,7 +258,7 @@ Result is the GUID and is a unique identifier for checking the status of your co
To verify the contract, let's create a curl request with the following parameters

```bash
curl "https://api.basescan.org/api?module=contract&action=checkverifystatus&guid=cqjzzvppgswqw5adq4v6iq4xkmf519pj1higvcxsdiwcvwxemd&apikey=DK8M329VYXDSKTF633ABTK3SAEZ2U9P8FK"
curl "https://api.basescan.org/api?module=contract&action=checkverifystatus&guid=cqjzzvppgswqw5adq4v6iq4xkmf519pj1higvcxsdiwcvwxemd&apikey=<YOUR-API-KEY>"
```

Run the command and you will see a that the contract should already be verified based on the `result` field
Expand Down