Skip to main content

sourcify_api_url

Function sourcify_api_url 

Source
fn sourcify_api_url(chain: Chain) -> Option<String>
Expand description

Returns the Sourcify-compatible API URL for chains that have one registered in etherscan_urls.

Some chains register their Sourcify-compatible verification API under etherscan_urls in alloy-chains. This function returns the properly formatted URL for such chains.