BTC…ETH…ETH gas…Fear & Greed…Market data · not advice

Master Guide

Web3 Infrastructure: RPC, Oracles, Indexers and MEV

Trace Web3 infrastructure from RPC requests to confirmed receipts. Check stale prices, oracle dependencies, indexer labels and transaction ordering.

An application depends on an RPC connection, an execution network and settlement.
An application depends on an RPC connection, an execution network and settlement.

Web3 infrastructure is the collection of services that connects an application to blockchain state and outside information. RPC nodes, indexers, oracles and transaction-routing services serve different roles. A failure can look like a lost balance, a bad quote or an unavailable button even when the underlying chain is running.

Updated 24 October 2026 · By Adam · Examples below are original educational scenarios, not live market data or product tests.

Web3 infrastructure: follow a single request

When a wallet asks for a balance, an RPC service answers a protocol request about chain state. An indexer organises events into convenient histories or labels. An oracle brings selected external information into contracts. None of those is automatically the same as the wallet's signing key or the chain's consensus.

Ethereum's oracle overview explains the boundary between onchain execution and external data. Chainlink's feed-selection guidance identifies market-pricing risks and stresses that application risk settings still matter. A recognised brand does not make every asset feed appropriate for every purpose.

It helps to write the request path down once for an application you use. A typical decentralized finance app touches at least five services, and each can fail on its own:

  1. The web front end, served from a domain name and usually built from third-party software libraries.
  2. The RPC endpoint your wallet or the site uses to read state and submit signed transactions. Your wallet's network settings show which one it uses.
  3. An indexer or data API that supplies histories, charts and portfolio totals.
  4. Oracle feeds that the protocol's contracts read for prices or other outside facts. Well-documented protocols list the feed addresses.
  5. The transaction route: the public mempool or a private submission service, then the block builder and proposer.

Only the oracle feeds and the contracts themselves are part of what the protocol's code enforces. Everything else is a convenience layer that can be wrong, slow or compromised while the chain continues normally.

Check freshness before trusting a number

Worked example: a cached price in a borrowing app

Imagine ten collateral tokens were last priced at $100 each. An app displays $1,000 collateral, but the market price has fallen to $80 and the quote is stale. Actual marked value would be $800. With an illustrative 75% liquidation threshold and $600 debt, health factor changes from 1.25 to 1.00.

The token quantity never changed. The uncertainty sits in the valuation input. Record quote timestamp, chain, feed address, decimals and the application's response to stale data. A UI updating its clock is not evidence that the underlying price updated.

Read an oracle feed yourself

You do not need to write code to see what a price feed last reported. On a block explorer, open the feed's contract address (taken from the protocol's or the oracle provider's documentation), choose the read functions, and call two of them:

  1. decimals(), which tells you how many decimal places the answer uses.
  2. latestRoundData(), which, according to the Chainlink API reference, returns roundId, answer, startedAt, updatedAt and answeredInRound. The reference marks answeredInRound as deprecated, so ignore it. updatedAt is the Unix timestamp, in seconds, of the last update.

Then compare updatedAt with the current time and with the feed's documented heartbeat, the longest interval it is configured to go without an update. An age well beyond the heartbeat means the value is stale, whatever the interface shows.

Worked example: decoding a raw feed reading

Suppose an explorer returns answer = 6184250000, decimals = 8 and updatedAt = 1,800,000,000, while the latest block's timestamp is 1,800,009,000. These values are illustrative. The price is 6,184,250,000 divided by 10 to the power 8, which is 61.8425 units of the quote currency. The age is 1,800,009,000 minus 1,800,000,000 = 9,000 seconds, or 2.5 hours.

If the feed documents a 2-hour heartbeat (7,200 seconds), this reading is 1,800 seconds, or 30 minutes, past the point where an update was due. A well-built protocol should reject or pause on it. Misreading the decimals is the other common error: treating the raw answer as if it used 6 decimals would give 6,184.25, a value 100 times too high.

On rollups there is one more input. Chainlink's sequencer uptime feeds report 0 when a Layer 2 sequencer is up and 1 when it is down, with startedAt marking when the status last changed. The documentation recommends waiting a grace period after the sequencer returns before accepting prices; its example uses 3,600 seconds. The reason is fairness: during an outage, users who can reach the chain through base-layer contracts have an advantage over everyone else, which can distort liquidations.

A fresh feed can still report a market that should not have been trusted. On 26 November 2020, DAI, a stablecoin designed to track one US dollar, briefly traded at about $1.30 on Coinbase Pro, a venue Compound's price oracle relied on. Borrowers who owed DAI suddenly looked undercollateralised, and about $88 million of collateral was liquidated on Compound, according to onchain figures reported by The Block. The oracle manipulation entry covers how thin or single-venue sources are attacked deliberately.

Distinguish an RPC outage from missing assets

  1. Confirm the selected network and account address.
  2. Check the transaction hash and status through an independent source.
  3. Compare block heights and timestamps; one endpoint may lag.
  4. Check token contract and decimal precision before treating a displayed number as a balance.
  5. Change to a documented endpoint if necessary, considering its privacy and rate-limit policy.

Do not enter a recovery phrase into a “wallet synchronisation” page to fix an RPC error. Reading a balance does not require a signing secret. A malicious endpoint may mislead your interface or observe requests even though it cannot directly sign for your wallet.

Developers and careful users can test an endpoint directly with a handful of standard JSON-RPC calls, documented in Ethereum's JSON-RPC reference:

  • eth_syncing returns false when the node is not catching up. An object with currentBlock and highestBlock means it is still syncing and its answers may be out of date.
  • eth_blockNumber on two independent endpoints shows whether one is behind.
  • eth_getBlockByNumber with the tags latest, safe and finalized shows how far the newest block is ahead of the newest finalised one. A growing gap means finality is delayed, not that your transaction vanished.
  • eth_getTransactionReceipt returns a status of 1 for success and 0 for failure. A failed transaction still pays its fee; no receipt at all means the node has not seen it in a block.

Worked example: two endpoints, two answers

You send a transaction and your wallet says it cannot find it. Endpoint A reports latest block 21,000,450; endpoint B reports 21,000,390. A second explorer shows your transaction in block 21,000,420 with status 1. Endpoint B is 60 blocks behind, roughly 12 minutes at one block every 12 seconds (slightly more if some slots were missed), so it has simply not reached your block yet.

The correct response is to wait or switch to a documented endpoint, not to resend. Resending with the same nonce would be rejected; resending with a new nonce could execute the payment twice.

Finality can stall even on a healthy chain. On 11 and 12 May 2023, Ethereum's beacon chain stopped finalising blocks twice, for about 25 minutes and then for over an hour, as client software struggled with a backlog of old attestations. Blocks kept being produced and ordinary transactions were included throughout, but any service that waited for the finalized tag had to wait longer. The finality entry explains why the two signals differ.

Indexers make claims that need provenance

Worked example: the same transfer counted twice

A dashboard imports a transaction from an exchange export and an indexed wallet history. If it counts both as independent withdrawals, apparent outflow doubles. Deduplicate using transaction identifiers and account context; keep provenance so a corrected indexer label does not silently rewrite your notes.

Separate “contract emitted an event” from “the dashboard assigned an owner label”. Events can be inspected in the chain record; a label may be a provider's inference. Different indexers can legitimately disagree about the latter.

Before relying on an indexed figure, run three checks. First, open one underlying transaction by its hash on a block explorer and confirm the amount, token contract and direction match. Second, check whether the block is final; indexers that show unfinalised data may revise it after a reorganisation. Third, check the token's decimals: a transfer of 1,500,000 raw units is 1.5 tokens at 6 decimals but 0.0000000000015 at 18. If any check fails, treat the dashboard figure as a lead to investigate, not a fact.

Transaction ordering changes execution

MEV includes value associated with including, excluding or ordering transactions. Arbitrage and harmful sandwiching have different effects on users. Ethereum's MEV documentation describes the ecosystem. A private route can change who sees a pending transaction, while creating another service dependency; investigate its guarantees and failure behaviour.

The route is a trust relationship in both directions. On 3 April 2023, a newly registered validator exploited a flaw in relay software used to pass blocks from builders to proposers. It saw the contents of bundles submitted by MEV bots, replaced their transactions with its own and took roughly $25 million, according to security firm CertiK's incident analysis. The relay was patched. The lesson for ordinary users is narrower: hiding a transaction from the public mempool moves the question of who can see it to the operators of the private route. The MEV entry and slippage entry explain how a tight minimum output limits what any reordering can take.

For a DEX swap, connect each layer: interface quote → RPC state → asset and oracle inputs where used → signing request → transaction route → confirmed receipt. Use the oracle entry and DEX guide to inspect that chain of evidence. Record what your fallback displays when a service cannot return fresh data.

Front ends and software supply chains

An audited contract does not protect you from a compromised website that asks you to sign something else. Two dated cases show the pattern:

  • 9 August 2022: visitors to Curve Finance's web front end were redirected at the domain-name level to a cloned site that requested approval for a malicious contract. About $570,000 was taken. Curve's contracts were not affected.
  • 14 December 2023: malicious versions 1.1.5, 1.1.6 and 1.1.7 of Ledger's Connect Kit, a software library many applications load to connect wallets, were published after a former employee was phished. The injected code showed fake wallet-connection prompts that rerouted funds to the attacker and was live for about five hours; losses were reported at around $600,000. The company said its hardware devices were not compromised.

In both cases victims still had to sign a request in their own wallet. The defence is to read that request before signing: check that the contract address matches the one in the protocol's documentation, that an approval amount is not unlimited when you only need a fixed sum, and that a simple action is not asking for a transfer or a broad permission. Use the approvals and drainers entry and the wallet security checklist to build that habit.

Diagnose a problem by symptom

When something looks wrong, identify the layer before acting. The table pairs common symptoms with the most likely layer and the first check that separates a display problem from a real one.

SymptomMost likely layerFirst check
Balance shows zero or an old figureRPC endpoint or wrong networkChain ID and block height on a second source
Transaction "not found" after sendingLagging endpoint or not yet includedSearch the hash on an independent explorer; do not resend
Portfolio total far from expectationsIndexer pricing or decimalsOpen one transfer by hash and recompute it
Collateral value moved but the market did notOracle feedupdatedAt against the documented heartbeat
Swap filled well below the quoteTransaction orderingCompare the block's neighbouring transactions in the same pool
Site asks for an unexpected approvalFront end or supply chainStop; compare the contract with the official documentation

The first check in every row uses public data and needs no signature. If a step appears to require your recovery phrase or a new approval to "fix" a display problem, that is itself the warning sign.

Sources and verification

Primary references checked on 24 October 2026. Protocol settings and local rules can change; verify the linked version before acting.

Knowledge check

Apply the example before checking the answer.

Question 1 of 3Does a refreshed UI clock prove a price quote is fresh?

Question 2 of 3What is the example health factor at an $80 token price?

Question 3 of 3Does fixing an RPC error require giving a website your seed phrase?

The Letter

One clear letter, every week.

Plain analysis of crypto infrastructure, markets and security. No price calls, no referral links, no hype.

Unsubscribe at any time. Read the privacy notice.