Title: Get Contract Source Code - Etherscan
Open Graph Title: Get Contract Source Code - Etherscan
X Title: Get Contract Source Code - Etherscan
Description: Retrieve the source code for a verified smart contract.
Open Graph Description: Retrieve the source code for a verified smart contract.
X Description: Retrieve the source code for a verified smart contract.
Opengraph URL: https://docs.etherscan.io/api-reference/endpoint/getsourcecode
Generator: Mintlify
Domain: docs.etherscan.io
IPv4 address: 66.33.60.35
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://docs.etherscan.io/#organization","name":"Etherscan","url":"https://docs.etherscan.io","logo":{"@type":"ImageObject","url":"https://mintcdn.com/etherscan/O446YQrF1qMjlNwS/logo/etherscan-logo-dark.svg?fit=max&auto=format&n=O446YQrF1qMjlNwS&q=85&s=4e966e2dc30e631ecd17c82d5445201f"}},{"@type":"WebSite","@id":"https://docs.etherscan.io#website","name":"Etherscan","url":"https://docs.etherscan.io","publisher":{"@id":"https://docs.etherscan.io/#organization"}},{"@type":"WebPage","@id":"https://docs.etherscan.io/api-reference/endpoint/getsourcecode#webpage","url":"https://docs.etherscan.io/api-reference/endpoint/getsourcecode","name":"Get Contract Source Code","description":"Retrieve the source code for a verified smart contract.","dateModified":"2026-08-20T09:11:04.083Z","isPartOf":{"@id":"https://docs.etherscan.io#website"},"breadcrumb":{"@id":"https://docs.etherscan.io/api-reference/endpoint/getsourcecode#breadcrumb"}},{"@type":"BreadcrumbList","@id":"https://docs.etherscan.io/api-reference/endpoint/getsourcecode#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"API Endpoints","item":"https://docs.etherscan.io/api-reference/endpoint/balance"},{"@type":"ListItem","position":2,"name":"Contracts","item":"https://docs.etherscan.io/api-reference/endpoint/getabi"},{"@type":"ListItem","position":3,"name":"Get Contract Source Code","item":"https://docs.etherscan.io/api-reference/endpoint/getsourcecode"}]},{"@type":["TechArticle","APIReference"],"@id":"https://docs.etherscan.io/api-reference/endpoint/getsourcecode#apireference","headline":"Get Contract Source Code","name":"Get Contract Source Code","description":"Retrieve the source code for a verified smart contract.","url":"https://docs.etherscan.io/api-reference/endpoint/getsourcecode","mainEntityOfPage":{"@id":"https://docs.etherscan.io/api-reference/endpoint/getsourcecode#webpage"},"dateModified":"2026-08-20T09:11:04.083Z","keywords":"contract source code, getsourcecode","publisher":{"@id":"https://docs.etherscan.io/#organization"},"isPartOf":{"@id":"https://docs.etherscan.io#website"}}]}
{"@context":"https://schema.org","@type":"WebSite","name":"Etherscan","publisher":{"@type":"Organization","name":"Etherscan"},"provider":{"@type":"Organization","name":"Mintlify","url":"https://mintlify.com"}}
| application-name | Etherscan |
| og:site_name | Etherscan |
| og:type | website |
| og:image | https://etherscan.mintlify.site/_mintlify/api/og/v2?division=Contracts&title=Get+Contract+Source+Code&description=Retrieve+the+source+code+for+a+verified+smart+contract.&theme=094d35580a137d9d2d946084&signature=f03567c33d4bab2f8e2d2644b33b8c27f0c1fefc51b0998fdb1ad807cc1da6d1 |
| og:image:width | 1200 |
| og:image:height | 630 |
| twitter:card | summary_large_image |
| twitter:image | https://etherscan.mintlify.site/_mintlify/api/og/v2?division=Contracts&title=Get+Contract+Source+Code&description=Retrieve+the+source+code+for+a+verified+smart+contract.&theme=094d35580a137d9d2d946084&signature=f03567c33d4bab2f8e2d2644b33b8c27f0c1fefc51b0998fdb1ad807cc1da6d1 |
| twitter:image:width | 1200 |
| twitter:image:height | 630 |
| msapplication-config | /mintlify-assets/_mintlify/favicons/etherscan/PMbbZQeU1A_1WqNP/_generated/favicon/browserconfig.xml |
| apple-mobile-web-app-title | Etherscan |
| msapplication-TileColor | #0784C3 |
Links:
| Server | Vercel |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0 |
| Last-Modified | Sun, 22 Nov 2026 19:49:09 GMT |
Viewport: width=device-width, initial-scale=1, viewport-fit=cover