RPC adapter
What is it and how to use it to debug your project

RPC Endpoints

  • wss://node-6870830370282213376.rz.onfinality.io/ws?apikey=0f273197-e4d5-45e2-b23e-03b015cb7000
  • wss://mandala-tc7-rpcnode.aca-dev.network/ws

EVM RPC

  • https://tc7-eth.aca-dev.network

RPC Health

Is the RPC Indexing service healthy?
1
curl https://tc7-eth.aca-dev.network \
2
-X POST \
3
-H "Content-Type: application/json" \
4
-d '{"jsonrpc": "2.0", "method": "net_indexer", "params": [], "id": 1}' \
5
| json_pp
Copied!

RPC getTransactionReceipt

Has the transaction been indexed in SubQuery?
1
curl https://tc7-eth.aca-dev.network \
2
-H "Content-Type: application/json" \
3
-d '{"id": 0,"jsonrpc": "2.0","method": "eth_getTransactionReceipt","params": ["0xf8561dee7e6d2128332e8fe177d834467f10ac03c676daefa1507947c685959b"]}' \
4
| json_pp
Copied!

RPC Cache

Hash to Block & Block to Hash
1
curl https://tc7-eth.aca-dev.network \
2
-H "Content-Type: application/json" \
3
-d '{"id": 0, "jsonrpc": "2.0", "method": "net_cacheInfo", "params": []}' \
4
| json_pp
Copied!

Web Socket RPC

  • wss://tc7-eth.aca-dev.network/ws
1
wscat -c wss://tc7-eth.aca-dev.network/ws
2
Connected (press CTRL+C to quit)
3
> {"jsonrpc":"2.0","method":"eth_getCode","params": ["0x5d8aae4de6ccab1b58c91db8d200aa1577117b2b", "latest"],"id":1}
Copied!