Run a SubQuery Data Node
Less than 1 minute
Run a SubQuery Data Node
Running SubQuery data nodes is the same as running the unforked nodes, but there is an additional option for exposing the new RPCs. You can find the documentation for Geth and OP-Geth
Enabling Enhanced RPC Endpoints
To enable the new RPCs, add the "subql" namespace to --http.api
and --ws.api
flags or in your toml
config to enable these RPCs. E.g --http.api="eth,net,web3,subql" --ws.api="eth,net,web3,subql"
or in the below .toml
[Node]
DataDir = "/mnt/eth-data/.ethereum/sepolia"
IPCPath = "geth.ipc"
HTTPHost = ""
HTTPPort = 8545
HTTPVirtualHosts = ["localhost"]
HTTPModules = ["net", "web3", "eth", "subql"]
AuthAddr = "localhost"
AuthPort = 8551
AuthVirtualHosts = ["localhost"]
WSHost = ""
WSPort = 8546
WSModules = ["net", "web3", "eth", "subql"]
GraphQLVirtualHosts = ["localhost"]
BatchRequestLimit = 1000
BatchResponseMaxSize = 25000000