Logo
RPC Assistant

Abstract RPC Endpoint: What You Need to Connect to Abstract

Summary

Abstract is an Ethereum Layer 2 network built with zkSync technology. To connect your dApp or wallet to Abstract, you need an RPC endpoint address. This article provides the official Abstract RPC endpoints for mainnet and testnet, chain IDs, and developer resources like faucets and explorers. We also discuss how to evaluate RPC providers for reliability and performance on Abstract.

Abstract is an Ethereum Layer 2 network built with zkSync technology, designed to support consumer-scale decentralized applications. To interact with Abstract, your dApp or wallet needs an RPC endpoint. This guide provides the official Abstract RPC URLs, chain configuration details, testnet faucet, and tips for selecting a reliable RPC provider.

Abstract RPC Decision Checklist

Before choosing an Abstract RPC endpoint, consider the following:

  • Network type: Mainnet or testnet? Use testnet for development, mainnet for production.
  • Rate limits: Shared public RPC endpoints often have low rate limits. For production, consider a dedicated node.
  • Data archival: Do you need historical state? Archive nodes required for past block data.
  • WebSocket support: For real-time updates, ensure the provider offers WSS endpoints.
  • Compatibility: Abstract follows the Ethereum JSON-RPC standard, so standard tools like ethers.js and web3.js work.

Abstract Network Overview

Abstract is a zkSync Era-based rollup that provides high throughput and low transaction costs by leveraging zero-knowledge proofs. It is Ethereum-equivalent (EVM-compatible) at the bytecode level, meaning existing Solidity smart contracts can be deployed with minimal changes.

Key Features

  • EVM compatibility: Deploy existing Ethereum dApps.
  • Account abstraction: Native support for smart contract wallets.
  • Low fees: Transactions are batched and settled on Ethereum, reducing costs.
  • Fast finality: Blocks are produced every few seconds.

Abstract RPC Endpoints

The official RPC endpoints for Abstract are maintained by the Abstract team. Below are the chain details for mainnet and testnet.

Abstract Mainnet

  • Chain ID: 1115 (0x45B)
  • Native Currency: ETH
  • RPC Endpoint: https://api.mainnet.abs.xyz
  • WebSocket Endpoint: wss://api.mainnet.abs.xyz
  • Block Explorer: https://mainnet.abs.xyz

Abstract Testnet (Abstract Sepolia)

  • Chain ID: 11124 (0x2B74)
  • Native Currency: ETH (testnet)
  • RPC Endpoint: https://api.testnet.abs.xyz
  • WebSocket Endpoint: wss://api.testnet.abs.xyz
  • Block Explorer: https://explorer.testnet.abs.xyz
  • Faucet: Request test ETH from the Abstract Testnet Faucet

Note: These endpoints are public and may have rate limits. For production applications, consider a professional RPC provider to ensure reliability and scalability.

Connecting to Abstract with JSON-RPC

You can interact with Abstract using any standard Ethereum SDK. Here's an example using curl to get the latest block number:

curl -X POST https://api.mainnet.abs.xyz \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'

Example using ethers.js:

const { ethers } = require("ethers");

const provider = new ethers.JsonRpcProvider("https://api.mainnet.abs.xyz");
provider.getBlockNumber().then(console.log);

Abstract Faucet and Testnet Resources

To develop on Abstract Testnet, you need test ETH to pay for gas. Use the official faucet:

  • Faucet URL: https://faucet.testnet.abs.xyz
  • You will need to connect your wallet and request test tokens. Faucets typically have rate limits and require social authentication or a captcha.

Additionally, the testnet block explorer provides transaction details and contract verification tools.

How to Choose an Abstract RPC Provider

For production apps, relying on a public RPC endpoint can lead to throttling or downtime. Here's a comparison table to evaluate providers:

CriterionWhat to checkWhy it matters
Rate limitsRequests per second (RPS) or monthly limitPrevents application stalls under load
WebSocket supportWSS endpoint availabilityNeeded for real-time subscriptions
Archive dataAccess to historical stateRequired for analytics and some DeFi interactions
Uptime SLAProvider guaranteesEnsures consistent availability
Node typeShared vs dedicatedDedicated nodes offer isolated performance
Global regionsServer locationsLowers latency for users worldwide

When selecting a provider, look for one that offers dedicated nodes on Abstract, supports WebSocket, and provides transparent pricing. OnFinality supports Abstract RPC endpoints with both shared and dedicated node options. View our RPC pricing and supported networks to compare plans.

Common Issues and Troubleshooting

  • Rate limit exceeded: Switch to a dedicated node or upgrade your plan.
  • Transaction not mined: Check gas price and nonce; ensure you have enough balance.
  • Connection timeout: Verify the endpoint URL and your network connectivity.
  • Wrong chain ID: Ensure your wallet or app is configured for the correct Abstract chain ID (mainnet: 1115, testnet: 11124).

Key Takeaways

  • Abstract is an EVM-compatible L2 on zkSync, using standard Ethereum JSON-RPC.
  • Public RPC endpoints are available for mainnet and testnet but may have rate limits.
  • For production, evaluate providers based on rate limits, WebSocket, archive data, and uptime.
  • Use testnet faucet free test ETH before deploying to mainnet.
  • OnFinality offers reliable Abstract RPC infrastructure with flexible plans.

Frequently Asked Questions

Q: What is the Abstract chain ID?
A: Mainnet chain ID is 1115 (0x45B), testnet (Sepolia) is 11124 (0x2B74).

Q: Is Abstract Ethereum-compatible?
A: Yes, it is fully EVM-compatible, so existing tools like MetaMask and Hardhat work.

Q: How do I get test ETH for Abstract testnet?
A: Use the official faucet at https://faucet.testnet.abs.xyz.

Q: Can I run my own Abstract node?
A: Yes, but it requires significant resources. Using an RPC provider is simpler and more cost-effective for most teams.

Q: Does OnFinality support Abstract?
A: Yes, OnFinality provides both shared and dedicated Abstract RPC nodes. Check our Abstract network page for details.

RPC Knowledge Base

Related RPC details

Never Worry about Infrastructure Again

OnFinality takes away the heavy lifting of DevOps so you can build smarter and faster.

Get Started