Alchemy Logo

Base API FAQ

Frequently asked questions about the Base API

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.

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.

Explained in Base API Quickstart

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.

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.

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!

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

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.

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

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 Base Goerli can be obtained from the Base Goerli Faucet.

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

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.

If you have any questions or feedback, please contact us at [email protected] or open a ticket in the dashboard.

Was this page helpful?