Contracts Verification API
Verify your smart contracts and fetch verified contract artifacts via BuildBear’s unified verification endpoints.
Supported Verification Types
Foundry
- Etherscan
- Sourcify
Hardhat
- Etherscan
- Sourcify
Note: All the verification are cross compatible. Contract(s) verified using Etherscan can also be fetched from Sourcify endpoint and vice versa. And the endpoints also support external verified contracts from mainnet.
Etherscan Verification (Foundry/Hardhat)
POST
segments
sandboxId(string)
RequiredThe ID of the sandbox you're verifying for.Request Example
- The verification endpoint follows this format, which your contract verification request should be sent to:
Sourcify Verification (Foundry/Hardhat)
POST
segments
sandboxId(string)
RequiredThe ID of the sandbox you're verifying for.Request Example
- The verification endpoint follows this format, which your contract verification request should be sent to:
Fetch Contract Artifacts (Etherscan)
GET
segments
sandboxId(string)
RequiredThe ID of the sandbox.address(string)
RequiredContract address whose artifacts are being fetched.Request Example
Fetch Contract Artifacts (Sourcify)
GET
segments
sandboxId(string)
RequiredThe ID of the sandbox.chain(string)
RequiredThe chain ID of the contract.address(string)
RequiredContract address whose artifacts are being fetched.