### Etherscan API Key Configuration Examples
Source: https://context7_llms
Examples of API key configurations for different blockchain networks supported by Etherscan.
```env
AN_API_KEY=https://api.arbiscan.io/api
```
```env
OPTIMISM_API_KEY=https://api-optimistic.etherscan.io/api
```
--------------------------------
### Add New Chain Support (JavaScript Example)
Source: https://context7_llms
Illustrates how to add support for a new chain by appending its chain ID to an array. This example is presented in a JavaScript context.
```javascript
To add support for a new chain, simply append its "chain ID" to your array, like this JavaScript ( intern can't get Python installed on Windows )
```
--------------------------------
### Add Chains to Etherscan API
Source: https://context7_llms
JavaScript example demonstrating how to configure a list of chain IDs to be used with the Etherscan API. This allows developers to specify which chains their application should interact with.
```javascript
const chains = [42161, 8453, 10, 534352, 81457]
```
--------------------------------
### Etherscan V2 API Documentation Structure
Source: https://context7_llms
This entry outlines the main sections and pages available in the Etherscan V2 API documentation. It includes links to introductory material, guides for API key management, rate limits, supported blockchain networks, migration assistance from V1, and detailed API endpoint descriptions.
```APIDOC
Etherscan V2 API Documentation:
- Introduction: Overview of the Etherscan V2 API.
- Getting an API Key: Guide on how to obtain and manage API keys.
- Rate Limits: Information on API request limits and policies.
- Supported Chains: List of blockchain networks supported by the API.
- V1 to V2 API Migration Guide: Assistance for migrating from the previous API version.
- Use Cases:
- Accounting/Taxes: Specific applications for financial tracking.
- API Endpoints: Detailed documentation for available API methods and their usage.
```
--------------------------------
### Etherscan API Key Configuration
Source: https://context7_llms
Example of environment variables used to store API keys for different blockchain explorers like Etherscan, BscScan, and Snowscan. These keys are essential for accessing the respective API services.
```env
ETHERSCAN_API_KEY=VZFDUWB3YGQ1YCDKTCU1D6DDSS
BSCSCAN_API_KEY=ZM8ACMJB67C2IXKKBF8URFUNSY
SNOWSCAN_API_KEY=ATJQERBKV1CI3GVKNSE3Q7RGEJ
```
--------------------------------
### Client Code Block Component
Source: https://context7_llms
References a client-side JavaScript component used for rendering code blocks, likely for displaying code snippets or examples within the application.
```javascript
self.__next_f.push([1,"4a:I[73321,["5775","static/chunks/5775-d90fe1fac0834fb2.js","7582","static/chunks/7582-ed84f88cf37ca35d.js","274","static/chunks/274-fd9fee492899a008.js","907","static/chunks/907-474927aeb56a0d51.js","4856","static/chunks/4856-5992d81fe4ccb68d.js","3572","static/chunks/3572-79efa01bcf1bc87b.js","3470","static/chunks/3470-a519fc1af4c94681.js","7808","static/chunks/app/sites/static/%5Bmode%5D/%5BsiteURL%5D/%5BsiteData%5D/%5BpagePath%5D/page-e1d56aa50981a59e.js"],"AIActionsDropdown"]
4b:I[56462,["5775","static/chunks/5775-d90fe1fac0834fb2.js","7582","static/chunks/7582-ed84f88cf37ca35d.js","274","static/chunks/274-fd9fee492899a008.js","907","static/chunks/907-474927aeb56a0d51.js","4856","static/chunks/4856-5992d81fe4ccb68d.js","3572","static/chunks/3572-79efa01bcf1bc87b.js","3470","static/chunks/3470-a519fc1af4c94681.js","7808","static/chunks/app/sites/static/%5Bmode%5D/%5BsiteURL%5D/%5BsiteData%5D/%5BpagePath%5D/page-e1d56aa50981a59e.js"],"ClientCodeBlock"]
4c:I[42651,["5775","static/chunks/5775-d90fe1fac0834fb2.js","7582","static/chunks/7582-ed84f88cf37ca35d.js","274","static/chunks/274-fd9fee492899a008.js","907","static/chunks/907-474927aeb56a0d51.js","4856","static/chunks/4856-5992d81fe4ccb68d.js","3572","static/chunks/3572-79efa01bcf1bc87b.js","3470","static/chunks/3470-a519fc1af4c94681.js","7808","static/chunks/app/sites/static/%5Bmode%5D/%5BsiteURL%5D/%5BsiteData%5D/%5BpagePath%5D/page-e1d56aa50981a59e.js"],"InlineLinkTooltip"]
4d:I[52044,["5775","static/chunks/5775-d90fe1fac0834fb2.js","7582","static/chunks/7582-ed84f88cf37ca35d.js","274","static/chunks/274-fd9fee492899a008.js","907","static/chunks/907-474927aeb56a0d51.js","4856","static/chunks/4856-5992d81fe4ccb68d.js","3572","static/chunks/3572-79efa01bcf1bc87b.js","3470","static/chunks/3470-a519fc1af4c94681.js","7808","static/chunks/app/sites/static/%5Bmode%5D/%5BsiteURL%5D/%5BsiteData%5D/%5BpagePath%5D/page-e1d56aa50981a59e.js"],"CopyCodeButton"]
4e:I[36329,["5775","static/chunks/5775-d90fe1fac0834fb2.js","7582","static/chunks/7582-ed84f88cf37ca35d.js","
```
--------------------------------
### Etherscan and Blockchain Explorer API Keys and URLs
Source: https://context7_llms
This snippet provides essential API keys and base URLs for interacting with Etherscan and other blockchain explorers. It includes keys for Ethereum, Binance Smart Chain, Avalanche C-Chain (Snowtrace), Arbitrum (Arbiscan), and Optimism. The URLs are the corresponding API endpoints for these networks.
```shell
ETHERSCAN_API_KEY=VZFDUWB3YGQ1YCDKTCU1D6DDSS
BSCSCAN_API_KEY=ZM8ACMJB67C2IXKKBF8URFUNSY
SNOWSCAN_API_KEY=ATJQERBKV1CI3GVKNSE3Q7RGEJ
ARBISCAN_API_KEY=B6SVGA7K3YBJEQ69AFKJF4YHVX
OPTIMISM_API_KEY=66N5FRNV1ZD4I87S7MAHCJVXFJ
ETHERSCAN_API_URL=https://api.etherscan.io/api
BSCSCAN_API_KEY=https://api.bscscan.com/api
SNOWSCAN_API_KEY=https://api.snowscan.xyz/api
ARBISCAN_API_KEY=https://api.arbiscan.io/api
OPTIMISM_API_KEY=https://api-optimistic.etherscan.io/api
```
--------------------------------
### Gitbook Core CSS
Source: https://context7_llms
These are the core CSS files loaded by the Gitbook platform. They are essential for the styling and layout of the documentation pages.
```html
```
```html
```
```html
```
```html
```
```html
```
```html
```
```html
```
```html
```
```html
```
```html
```
```html
```
```html
```
```html
```
--------------------------------
### Next.js Framework Initialization Data
Source: https://context7_llms
These snippets represent data pushed to the Next.js framework's internal queue for initialization. They typically contain module IDs and associated JavaScript file paths, indicating how the application loads its components and modules.
```javascript
self.__next_f.push([1, "856-5992d81fe4ccb68d.js", "3572", "static/chunks/3572-79efa01bcf1bc87b.js", "3470", "static/chunks/3470-a519fc1af4c94681.js", "7808", "static/chunks/app/sites/static/%5Bmode%5D/%5BsiteURL%5D/%5BsiteData%5D/%5BpagePath%5D/page-e1d56aa50981a59e.js"], "DateRelative")
```
```javascript
self.__next_f.push([1, "5775", "static/chunks/5775-d90fe1fac0834fb2.js", "7582", "static/chunks/7582-ed84f88cf37ca35d.js", "274", "static/chunks/274-fd9fee492899a008.js", "907", "static/chunks/907-474927aeb56a0d51.js", "4856", "static/chunks/4856-5992d81fe4ccb68d.js", "3572", "static/chunks/3572-79efa01bcf1bc87b.js", "3470", "static/chunks/3470-a519fc1af4c94681.js", "7808", "static/chunks/app/sites/static/%5Bmode%5D/%5BsiteURL%5D/%5BsiteData%5D/%5BpagePath%5D/page-e1d56aa50981a59e.js"], "SkeletonSmall")
```
```javascript
self.__next_f.push([1, "5775", "static/chunks/5775-d90fe1fac0834fb2.js", "7582", "static/chunks/7582-ed84f88cf37ca35d.js", "274", "static/chunks/274-fd9fee492899a008.js", "907", "static/chunks/907-474927aeb56a0d51.js", "4856", "static/chunks/4856-5992d81fe4ccb68d.js", "3572", "static/chunks/3572-79efa01bcf1bc87b.js", "3470", "static/chunks/3470-a519fc1af4c94681.js", "7808", "static/chunks/app/sites/static/%5Bmode%5D/%5BsiteURL%5D/%5BsiteData%5D/%5BpagePath%5D/page-e1d56aa50981a59e.js"], "SkeletonHeading")
```
```javascript
self.__next_f.push([1, "5775", "static/chunks/5775-d90fe1fac0834fb2.js", "7582", "static/chunks/7582-ed84f88cf37ca35d.js", "274", "static/chunks/274-fd9fee492899a008.js", "907", "static/chunks/907-474927aeb56a0d51.js", "4856", "static/chunks/4856-5992d81fe4ccb68d.js", "3572", "static/chunks/3572-79efa01bcf1bc87b.js", "3470", "static/chunks/3470-a519fc1af4c94681.js", "7808", "static/chunks/app/sites/static/%5Bmode%5D/%5BsiteURL%5D/%5BsiteData%5D/%5BpagePath%5D/page-e1d56aa50981a59e.js"], "SuspenseLoadedHint")
```
```javascript
self.__next_f.push([1, "5775", "static/chunks/5775-d90fe1fac0834fb2.js", "7582", "static/chunks/7582-ed84f88cf37ca35d.js", "274", "static/chunks/274-fd9fee492899a008.js", "907", "static/chunks/907-474927aeb56a0d51.js", "4856", "static/chunks/4856-5992d81fe4ccb68d.js", "3572", "static/chunks/3572-79efa01bcf1bc87b.js", "3470", "static/chunks/3470-a519fc1af4c94681.js", "7808", "static/chunks/app/sites/static/%5Bmode%5D/%5BsiteURL%5D/%5BsiteData%5D/%5BpagePath%5D/page-e1d56aa50981a59e.js"], "TrackPageViewEvent")
```
```javascript
self.__next_f.push([1, "5775", "static/chunks/5775-d90fe1fac0834fb2.js", "7582", "static/chunks/7582-ed84f88cf37ca35d.js", "274", "static/chunks/274-fd9fee492899a008.js", "907", "static/chunks/907-474927aeb56a0d51.js", "4856", "static/chunks/4856-5992d81fe4ccb68d.js", "3572", "static/chunks/3572-79efa01bcf1bc87b.js", "3470", "static/chunks/3470-a519fc1af4c94681.js", "7808", "static/chunks/app/sites/static/%5Bmode%5D/%5BsiteURL%5D/%5BsiteData%5D/%5BpagePath%5D/page-e1d56aa50981a59e.js"], "PageClientLayout")
```
--------------------------------
### Google Analytics Integration Script
Source: https://context7_llms
This snippet includes the asynchronous loading of the Google Analytics script for GitBook sites. It specifies the source URL and includes attributes like nonce for security.
```javascript
document.addEventListener("DOMContentLoaded", () => {
if (Array.from(document.scripts).find(script => script.src.includes('rocket-loader.min.js'))) {
const alert = document.createElement('div');
alert.className = 'p-4 mb-4 text-sm text-red-800 rounded-lg bg-red-50 mt-8 mx-8';
alert.innerHTML = `
Error in site configuration:
It looks like ${window.location.hostname} has been incorrectly configured in Cloudflare. This may lead to unexpected behavior or issues with the page loading. If you are the owner of this site, please refer to GitBook's documentation for steps to fix the problem.
`;
document.body.prepend(alert);
}
});
```
--------------------------------
### CSS File Imports
Source: https://context7_llms
References static CSS files required for styling the web page. These are typically loaded by the browser to render the page's appearance.
```html
```
--------------------------------
### Etherscan.io API PRO Endpoint
Source: https://context7_llms
This entry documents the API PRO endpoint for Etherscan.io. It provides a direct link to the API documentation page, which is crucial for developers integrating with the Etherscan platform. The link specifies the target URL and associated click tracking insights.
```APIDOC
Endpoint: https://etherscan.io/apis
Method: GET
Description: Access the Etherscan API PRO documentation and related services.
Parameters: None directly specified in this snippet.
Returns: Link to the API documentation page.
Example Usage:
Navigate to https://etherscan.io/apis in a web browser.
```
--------------------------------
### Etherscan.io Navigation Links
Source: https://context7_llms
This snippet details the structure and content of navigation links presented on the Etherscan.io website. It includes links to the homepage, API documentation, and the official Twitter profile, specifying their URLs and associated CSS classes for styling.
```javascript
self.__next_f.push([1,"33:I[4093,["5775","static/chunks/5775-d90fe1fac0834fb2.js","274","static/chunks/274-fd9fee492899a008.js","4574","static/chunks/4574-1b7dbd30e5b62921.js","907","static/chunks/907-474927aeb56a0d51.js","3572","static/chunks/3572-79efa01bcf1bc87b.js","3225","static/chunks/3225-bd36fc0949ef28e8.js","2508","static/chunks/app/sites/static/%5Bmode%5D/%5BsiteURL%5D/%5BsiteData%5D/layout-f1a1dc416141dc0d.js"],"DropdownMenuItem"]
29:["$","$L26","Home",{"href":"https://etherscan.io/","className":"flex items-center shrink contrast-more:underline truncate text-tint links-default:hover:text-primary links-default:data-[state=open]:text-primary links-default:tint:hover:text-tint-strong links-default:tint:data-[state=open]:text-tint-strong underline-offset-2 links-accent:hover:underline links-accent:data-[state=open]:underline links-accent:underline-offset-4 links-accent:decoration-primary-subtle links-accent:decoration-[3px] links-accent:py-0.5 theme-bold:text-header-link theme-bold:hover:!text-header-link/7","insights":{"type":"link_click","link":{"target":{"url":"https://etherscan.io/","kind":"url"},"position":"header"}},"children":["Home",null]}]
2a:["$","$L26","API PRO",{"href":"https://etherscan.io/apis","className":"flex items-center shrink contrast-more:underline truncate text-tint links-default:hover:text-primary links-default:data-[state=open]:text-primary links-default:tint:hover:text-tint-strong links-default:tint:data-[state=open]:text-tint-strong underline-offset-2 links-accent:hover:underline links-accent:data-[state=open]:underline links-accent:underline-offset-4 links-accent:decoration-primary-subtle links-accent:decoration-[3px] links-accent:py-0.5 theme-bold:text-header-link theme-bold:hover:!text-header-link/7","insights":{"type":"link_click","link":{"target":{"url":"https://etherscan.io/apis","kind":"url"},"position":"header"}},"children":["API PRO",null]}]
2b:["$","$L26","Twitter",{"href":"https://twitter.com/etherscan","className":"flex items-center shrink contrast-more:underline truncate text-tint links-def
```
--------------------------------
### Page Meta Tags and Title
Source: https://context7_llms
Defines essential meta tags for SEO, viewport configuration, color schemes, and the page title. Includes links for favicons supporting light and dark modes.
```html