Skip to main content
Version: Old ArrowSquid docs

RPC proxy

Since the Arrowsquid release, Subsquid Cloud provides a built-in caching RPC proxy service. Currently, it is a premium feature, with plans to make a subset of calls available to free tier users.

Available networks

EVM
Network namenetwork:protocol
Arbitrum One Mainnetarbitrum-one:http
Arbitrum Goerli Testnetarbitrum-goerli:http
Arbitrum Nova Mainnetarbitrum-nova:http
Astar Mainnetastar:http
Avalanche Mainnetava:http
Avalanche Testnetava-testnet:http
Base Goerlibase-goerli:http
Base Mainnetbase:http
BNB Smart Chain Mainnetbsc:http
BNB Smart Chain Testnetbsc-testnet:http
Ethereum Goerlieth-goerli:http
Ethereum Mainneteth:http
Ethereum Sepoliaeth-sepolia:http
Evmos Mainnetevmos:http
Fantom Mainnetfantom:http
Fantom Testnetfantom-testnet:http
Mantle Mainnetmantle:http
Metis Mainnetmetis:http
Moonbase Alpha Testnetmoonbase-alpha:http
Moonbeam Mainnetmoonbeam:http
Moonriver Mainnetmoonriver:http
OKTC Mainnetoktc:http
Optimism Goerlioptimism-goerli:http
Optimism Mainnetoptimism:http
Polygon Mainnetpolygon:http
Polygon Testnetpolygon-testnet:http
Polygon zkEVM Mainnetpolygon-zkevm:http
Polygon zkEVM Testnetpolygon-zkevm-testnet:http
Shiden Shibuyashibuya:http
Shiden Mainnetshiden:http
StarkNet Mainnetstarknet:http
Sui Testnetsui-testnet:http
Substrate
Network namenetwork:protocol
Acalaacala:http
Aleph Zeroaleph-zero:http
Aleph Zero (testnet)aleph-zero-testnet:http
Amplitudeamplitude:http
Astarastar-substrate:http
Basiliskbasilisk:http
Darwiniadarwinia:http
Darwiniacrabdarwiniacrab:http
Edeneden:http
Frequencyfrequency:http
Hydradxhydradx:http
Interlayinterlay:http
Karurakarura:http
Khalakhala:http
Kiltkilt:http
Kintsugikintsugi:http
Kusamakusama:http
Litentrylitentry:http
Moonbasemoonbase-substrate:http
Moonbeammoonbeam-substrate:http
Moonrivermoonriver-substrate:http
Phalaphala:http
Polkadotpolkadot:http
Shibuyashibuya-substrate:http
Shidenshiden-substrate:http
Turingturing:http
Zeitgeistzeitgeist:http

Enable the RPC add-on like this:

deploy:
addons:
rpc:
- eth-goerli:http

scale:
addons:
rpc:
max-rate: 10rps

Processor configuration

With the add-on successfully enabled, your squid will get a unique proxied endpoint to the requested network. Subsquid Cloud will make its URL available to the deployed squid at the RPC_${Upper(network)}_${Upper(protocol)} environment variable. Assert it to avoid compilation errors. We also recommend rate limiting RPC proxy requests on the processor side to the same rate as was used in the manifest:

import {assertNotNull} from '@subsquid/util-internal'

processor.setDataSource({
chain: {
// dash in "eth-goerli" becomes an underscore
url: assertNotNull(process.env.RPC_ETH_GOERLI_HTTP),
rateLimit: 10
},
archive: /* archive URL */
})

Pricing

RPC proxy requests are priced at a flat rate, with substantial packages included for free for all organization types. Pricing does not depend on the call method.