メインコンテンツへスキップ

Public RPC vs private RPC endpoint: wallet choice

    A wallet user moving off default RPCs should use a public RPC endpoint for occasional transfers and a private keyed endpoint for frequent or heavy use. Public endpoints are shared and rate-limited; private endpoints require an account and provide a quota tied to it.

    • Casual transfers: use a public RPC.

    • Frequent activity or dApp development: consider a private keyed RPC.

    • Private transaction RPCs change how transactions are sent, not simply who gets an API quota.

    Which RPC endpoint should your wallet rely on?

    For everyday use, choose the simplest endpoint that responds reliably for your network. A wallet sends JSON-RPC requests to an endpoint to read blockchain data and submit signed transactions. The Ethereum JSON-RPC API specification’s “JSON-RPC API” section describes this request-and-response interface, which lets wallets communicate with nodes.

    A public RPC is an endpoint shared by many users, often listed for free in a network directory. Because requests compete for shared capacity, providers may limit them or become slow under load. Chainlist lists public endpoints alongside network details such as chain ID and currency; availability and limits can vary by endpoint.

    A private keyed RPC comes from a provider account, such as Alchemy or Infura. Its URL contains an API key that associates requests with your account and quota. This can make usage easier to track and reduce the uncertainty of a shared endpoint, but it does not guarantee uninterrupted service: provider limits and outages still apply.

    MetaMask’s default Ethereum RPC runs through Infura. To try another option, create an Alchemy account, copy the Ethereum endpoint URL from its dashboard, then open MetaMask’s network settings and add or edit a custom network. Enter the URL as the RPC URL and check that the network name and chain ID match Ethereum before saving. MetaMask Support’s “How to add a network” instructions cover entering a custom RPC URL.

    That URL is a credential: the API key is embedded in it. Anyone who gets the URL may use your quota, so avoid posting it in screenshots, public config files, or support messages. If it leaks, replace or revoke the key in the provider dashboard and update the wallet with the new URL.

    Consider two otherwise identical MetaMask users on the same network. One makes an occasional transfer; the public endpoint is likely the simpler fit. The other makes many requests or builds a dApp; a keyed endpoint gives them an account quota to monitor and is the better starting point. The deciding factor is activity volume, not the wallet or network.

    There is a different meaning of “private” in a private transaction RPC. Flashbots Protect routes pending transactions away from the public mempool, where transactions are typically visible before inclusion in a block. Its documentation’s “Quick Start” section describes sending transactions through this private route. It is about transaction visibility, not a dedicated API quota; check the RPC’s behavior and compatibility before relying on it for a wallet.

    In practice, choose a public RPC for occasional transfers when easy setup matters, and a keyed RPC when frequent use makes a tracked quota worth managing. For a public option, Chainlist is a place to compare network endpoints; this advice connects to choosing an RPC from Chainlist. For a private keyed endpoint, get the URL from the provider dashboard, then keep it out of shared configs and screenshots.

    Related questions

    Can an RPC provider steal my funds?

    An RPC provider cannot sign a transaction for you just by serving your wallet’s requests; transaction approval and signing happen in the wallet. A provider can see requests sent to it and may return incorrect data, fail to respond, or refuse requests, so use a provider you trust and verify important network details.

    What happens when an RPC hits its rate limit?

    Requests may slow down or fail until the limit resets or your usage allowance changes. Your wallet may show loading errors or fail to fetch balances and submit transactions. You can wait, switch to another working endpoint, or use a keyed provider account with a suitable quota.

    What should you check after switching?

    How is a private RPC added to MetaMask?

    Open MetaMask’s network settings, choose the option to add a custom network, and enter the provider’s RPC URL with the matching chain ID and network details. Save it, select the network, and confirm the displayed network is the one you intended before transacting.

    Do private RPC providers log wallet activity?

    They can associate requests with the endpoint and API key, so assume the provider can observe activity sent through that service. Review its privacy terms and avoid sharing the keyed URL; using a different endpoint changes which provider receives those requests.

    あなたへのおすすめ