Base API FAQ

Frequently asked questions about the Base API

What is Base?

Base is a secure, low-cost, builder-friendly Ethereum Layer 2 (L2) solution designed to bring the next billion users onchain. Developed and incubated within Coinbase, Base is built on the MIT-licensed OP Stack, in collaboration with Optimism, with a goal to progressively decentralize in the coming years. By leveraging Base, developers have an opportunity to provide users with a robust Ethereum L2 environment at a fraction of the cost.

What is the Base API?

The Base API allows developers to interface with the Base mainnet and testnet nodes. With this API, developers can execute transactions, query on-chain data, and interact with the Base network, relying on a JSON-RPC standard.

How can I get started using the Base API?

Explained in Base API Quickstart

Is Base EVM compatible?

Absolutely. Base is built as an Ethereum L2, which means it confidently supports any Ethereum Virtual Machine (EVM) codebase. This allows developers to smoothly deploy and migrate assets and users from Ethereum L1 and other interoperable chains to Base.

What API does Base use?

Base utilizes the JSON-RPC API standard. This API is crucial for any blockchain interaction on the Base network, allowing users to read block/transaction data, query chain information, execute smart contracts, and store data on-chain.

What is a Base API key?

When accessing the Base network via a node provider like Alchemy, Base developers use an API key to send transactions and retrieve data from the network.

For the best development experience, we recommend that you sign up for a free API key!

Which libraries support Base?

Common Ethereum libraries like ethers.js and web3.js should be compatible with Base, given its EVM nature.

What programming languages work with Base?

Languages that work with Ethereum, such as Javascript, Solidity, Typescript, and Shell, should also be compatible with Base. Solidity remains the primary choice for smart contract development, while Javascript is ideal for off-chain interactions.

What does Base use for gas?

The primary currency for transaction fees and other network activities on Base is ETH.

What testnet should I use for Base?

Developers should use the Base Goerli testnet for Base. This testnet provides an environment to deploy smart contracts, execute transactions, and test applications. ETH for the Base Goerli can be obtained from the Base Goerli Faucet.

What methods does Alchemy support for the Base API?

You can find the list of all the methods Alchemy support for the Base API on Base API Endpoints page.

How can I bridge assets between Ethereum and Base?

The Base Bridge facilitates the bridging of ETH between Ethereum and Base. To bridge assets:

  1. Navigate to Base Bridge for Base Goerli or Base Mainnet.
  2. Click "Connect wallet" and link your wallet.
  3. Specify the amount of ETH (or a supported asset) you wish to deposit or withdraw.

My question isn't here, where can I get help?

Don't worry, we got you. Check out our discord and feel free to post any questions you have!

ReadMe