Skip to content

Commit

Permalink
feat: adds verification API endpoints (#324)
Browse files Browse the repository at this point in the history
# Description

- Adding contract verification API to the ZKsync Era network details
page
- Also re-structuring the explorers page to include this information.

## Linked Issues

[In this
discussion](zkSync-Community-Hub/zksync-developers#930)
a user was unable to find the info in the docs.

## Additional context

It's pretty hard to find the smart contract verification URLs as
currently they're only provided in some hardhat config examples.

---------

Co-authored-by: Sarah Schwartz <58856580+sarahschwartz@users.noreply.github.com>
  • Loading branch information
uF4No and sarahschwartz authored Feb 18, 2025
1 parent ae3ace9 commit 12518a9
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 7 deletions.
2 changes: 2 additions & 0 deletions content/00.zksync-era/20.environment/00.index.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ To manually add ZKsync Era as a custom network in your wallet, follow these step
- Currency Symbol: `%%zk_mainnet_currency_symbol%%`
- Block Explorer URL: `%%zk_mainnet_block_explorer_url%%`
- WebSocket URL: `%%zk_mainnet_websocket_url%%`
- Explorer Verification API: `%%zk_mainnet_contract_verification_url%%`

### Sepolia testnet network details

Expand All @@ -36,6 +37,7 @@ To manually add ZKsync Era as a custom network in your wallet, follow these step
- Currency Symbol: `%%zk_testnet_currency_symbol%%`
- Block Explorer URL: `%%zk_testnet_block_explorer_url%%`
- WebSocket URL: `%%zk_testnet_websocket_url%%`
- Explorer Verification API: `%%zk_testnet_contract_verification_url%%`

## Get testnet funds for your wallet

Expand Down
28 changes: 21 additions & 7 deletions content/00.zksync-era/40.tooling/40.block-explorers.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,35 @@ title: Block explorers
description: Learn about the official and 3rd party resources for exploring the ZKsync Era network.
---

## ZKsync Explorer

The [ZKsync Era Block Explorer](%%zk_mainnet_block_explorer_url%%)
details comprehensive data about transactions, blocks, batches, wallets, tokens, and smart contracts on the ZKsync Era network.

## Block Explorer API
- [ZKsync Era Mainnet Block Explorer](%%zk_mainnet_block_explorer_url%%)
- [ZKsync Era Testnet Block Explorer](%%zk_testnet_block_explorer_url%%)

We’ve developed the ZKsync Era Block Explorer API for developers to access ZKsync Era Block Explorer data directly via HTTP requests.
Feel free to contribute and create issues and feature requests in [ZKsync Era Block Explorer GitHub repo](%%zk_git_repo_block-explorer%%).

- [Mainnet Block Explorer API](https://block-explorer-api.mainnet.zksync.io/docs)
- [Testnet Block Explorer API](https://block-explorer-api.sepolia.zksync.dev/docs)
### Block Explorer API

We’ve developed the ZKsync Era Block Explorer API for developers to access ZKsync Era Block Explorer data directly via HTTP requests.

The API provides various endpoints for many use cases you might want in your app.
It is compatible with [Etherscan API](https://docs.etherscan.io/),
The API provides various endpoints for many use cases you might want in your app. It is compatible with [Etherscan APIs](https://docs.etherscan.io/),
which makes it easy to transition your existing apps to ZKsync Era network.

Feel free to contribute and create issues and feature requests in [ZKsync Era Block Explorer GitHub repo](%%zk_git_repo_block-explorer%%).
- [Mainnet Block Explorer API Swagger](https://block-explorer-api.mainnet.zksync.io/docs)
- [Testnet Block Explorer API Swagger](https://block-explorer-api.sepolia.zksync.dev/docs)

### Verification API endpoints

The ZKsync Explorer Verification API allows you to verify smart contracts on the ZKsync Era network. You can use the following
endpoints to verify your smart contracts:

| Network | Contract Verification API |
| --- | --- |
| Mainnet | `%%zk_mainnet_contract_verification_url%%` |
| Testnet | `%%zk_testnet_contract_verification_url%%` |

## Other block explorers

Expand Down

0 comments on commit 12518a9

Please sign in to comment.