# Base & EVM Mainnet Chain IDs and RPCs

**Use case:** 

Retrieve essential Base EVM mainnet chain IDs along with their RPC endpoints. This task provides up to 50 specific chains, detailing vital information for blockchain integration, including native currencies and block explorers. Access streamlined data tailored for developers facilitating seamless Web3 interaction.

## Input

```json
{
  "query": "base",
  "chainId": "",
  "mainnetOnly": false,
  "maxItems": 50
}
```

## Output

```json
{
  "chainId": {
    "label": "chainId",
    "format": "string"
  },
  "name": {
    "label": "name",
    "format": "string"
  },
  "shortName": {
    "label": "shortName",
    "format": "string"
  },
  "chain": {
    "label": "chain",
    "format": "string"
  },
  "networkId": {
    "label": "networkId",
    "format": "string"
  },
  "nativeSymbol": {
    "label": "nativeSymbol",
    "format": "string"
  },
  "nativeDecimals": {
    "label": "nativeDecimals",
    "format": "string"
  },
  "rpcUrls": {
    "label": "rpcUrls",
    "format": "string"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The ChainID Network EVM Chains & RPCs Web3 API Actor is ready to run with the inputs already set for "Base & EVM Mainnet Chain IDs and RPCs". [Sign up or log in](https://console.apify.com/create-task-from-example/oWT52mR0n59ODXPHz) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Base & EVM Mainnet Chain IDs and RPCs" task

The ChainID Network EVM Chains & RPCs Web3 API Actor will start running based on the input automatically. You can also change all the input fields, like search query, mainnets only, and more, to match your specific use case.

### 3. Receive the "Base & EVM Mainnet Chain IDs and RPCs" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as chainid, name, shortname, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Base & EVM Mainnet Chain IDs and RPCs" task via API](https://apify.com/mehdad-datalabs/chainid-network-evm-chains-rpc-web3-api.md).

## FAQ

### What data does the Base & EVM Mainnet Chain IDs and RPCs task return?

The Base & EVM Mainnet Chain IDs and RPCs task returns chain IDs, RPC endpoints, native currencies, and block explorers for EVM blockchain networks.

### Is there a limit to the number of records this task can extract?

The task can extract a maximum of 50 records per run based on the specified input.

### Do I need to authenticate to use this task?

No authentication or third-party API keys are required to run the Base & EVM Mainnet Chain IDs and RPCs task.

### How can I automate running this task?

Users can automate this task using the Apify API or schedule it to run automatically via the Apify Console.

## About this Actor

This example demonstrates how to use [ChainID Network EVM Chains & RPCs Web3 API](https://apify.com/mehdad-datalabs/chainid-network-evm-chains-rpc-web3-api.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/mehdad-datalabs/chainid-network-evm-chains-rpc-web3-api.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/mehdad-datalabs/chainid-network-evm-chains-rpc-web3-api.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
