Verifiable RPC (vRPC)
Verifiable RPC (vRPC) returns cryptographically signed responses. Each one carries proof that it came from an approved, unmodified blockchain node running inside an Intel TDX hardware enclave, and that it was not altered on the way to you. Your client checks that proof on every response before the data reaches your code, so you no longer have to take the operator's word that an RPC reply is genuine.
vRPC works with JSON-RPC and with path-based REST chains. Adopting it is a one-line change: swap your ethers or viem client for the vRPC drop-in, and every existing call keeps working, now verified.
The problem it solves
When you call an RPC endpoint, you trust that the operator returns real chain data and runs the software it claims. Nothing in a plain RPC response lets you check that. A response can be altered in memory or in transit, or served by a compromised or mis-routed node, and a standard client cannot tell falsified data from the truth.
vRPC closes that gap. Only a key that lives inside an attested enclave can produce a valid signature, so a falsified or tampered response fails verification in your client before you act on it.
How a vRPC node works
A vRPC node runs the blockchain client and a small sidecar together in one Intel TDX confidential VM. Both are containers of the same deployment, so one hardware attestation covers the exact client image and the exact sidecar that signs its answers. The client's RPC port is reachable only from inside the VM.
At boot, the sidecar obtains an Ed25519 signing key that only attested enclaves can hold: the node itself and the key service that derives it. The key is released to the VM only after its TDX quote verifies and its configuration hash is on an approved list, so holding the key already implies the VM booted an approved configuration.
For every HTTP request, the sidecar passes the request bytes to the node unchanged, takes the node's answer, and signs it. The response carries three headers:
| Header | Content |
|---|---|
vRPC-Signature | Ed25519 signature, 0x hex, 64 bytes |
vRPC-Timestamp | Signing time, unix milliseconds |
vRPC-Pubkey | The signing key, 0x hex, 32 bytes |
The signature covers a fixed 104-byte fingerprint of the chain id, your exact request body, the response body and the signing time. A JSON-RPC batch gets one signature. The Ankr gateway adds vRPC-NodeId, the node that produced the bytes, so your client can fetch the attestation of exactly that node. The gateway holds no keys and forwards the signed bytes unchanged.
How your client verifies
On every response, with no extra network round trip, the SDK rebuilds the fingerprint from the bytes it sent and received, checks the Ed25519 signature, and checks that the timestamp is inside the replay window (60 seconds by default).
When a response is signed by a key the SDK has not seen yet, it anchors that key once:
- It fetches the node's attestation with a fresh random 32-byte nonce.
- It checks that the attested key equals the key that signed the response.
- It checks that the TDX quote embeds that key and your nonce, so the quote is fresh and about this key.
- It checks that the reported configuration matches the configuration hash in the quote.
- It has the hardware quote verified (always on; Phala's cloud verifier by default, replaceable with your own).
- It caches the trusted key for one hour, so later responses from that node verify locally.
Verification is fail-closed: if any check fails, the call throws a typed error and you get no data. For the exact list of what is and is not verified today, see What is verified.
Two modes
- Open mode (default): every response is signed and verified; requests and responses travel in plaintext inside TLS, as with any RPC provider.
- Ankr Confidential RPC: the same verification, and every call is also encrypted end to end to one attested node, so the Ankr gateway routes and bills it without being able to read it. Ankr Confidential RPC is live in demo phase on Ankr's production network and rolling out across Verifiable RPC chains.
Beyond EVM: JSON-RPC and REST
vRPC is not limited to JSON-RPC. Responses from path-based REST chains (for example TON's REST API) carry the same signed vRPC-* headers over the same fingerprint. The ethers and viem drop-ins cover EVM JSON-RPC; the transport-agnostic core package verifies any signed HTTP response, REST included, and the local verifying proxy serves clients in any language.
A one-line integration
You pass a single URL, your chain's vRPC route; the SDK derives the attestation route from it. There is no second base URL to configure and no per-call wiring. Everything downstream, getBalance, eth_call, contract reads, getLogs, getBlock, estimateGas, works as before, now verified. See the Quickstart for the exact swap.
Open source
The SDK and the sidecar are open source, so you can read the code, check the claims and run the verification yourself:
- SDK (TypeScript, Apache-2.0): github.com/w3tech/verifiable-rpc-sdk
- Sidecar (Rust, AGPL-3.0): github.com/w3tech/verifiable-rpc-sidecar
The proof travels with each response and you verify the math on your own side. What you still trust, and why, is laid out in the Trust model.
Get started
- Integrate the SDK: Quickstart for ethers, viem, any HTTP client and the local proxy.
- Understand the guarantees: What is verified, and what is not and the Trust model.
- Encrypt your calls: Ankr Confidential RPC and its cryptography.
- Need a verifiable endpoint? Verifiable RPC is open to every Premium API key on Arbitrum, BNB Smart Chain and Polygon: call
https://rpc.ankr.com/<chain>_vrpc/YOUR_ANKR_API_KEY(arbitrum_vrpc,bsc_vrpc,polygon_vrpc). Each request costs 3x the standard rate, 600 API credits on EVM chains, see Pricing. For another chain or a dedicated node, contact the Ankr team.