JSON-RPC Proxy
Forward raw JSON-RPC calls to chain nodes through the same unified POST /v1 interface as all other Spectrum methods. Use the rpcProxy method with the native RPC method name and parameters nested inside params.
{
"jsonrpc": "2.0",
"method": "rpcProxy",
"params": {
"chain": "ethereum",
"method": "eth_blockNumber",
"params": []
},
"id": 1
}The request is forwarded as-is to the chain’s RPC node. Dangerous methods (admin, personal, miner, wallet operations) are blocked.
Supported Methods
EVM chains: All standard Ethereum JSON-RPC methods: eth_blockNumber, eth_getBalance, eth_call, eth_getTransactionReceipt, eth_getLogs, trace_*, debug_*, etc.
Solana: Native JSON-RPC methods: getSlot, getBalance, getAccountInfo, getTransaction, getBlock, etc.
Bitcoin: Bitcoin Core RPC methods: getblockcount, getblockhash, getblock, getrawtransaction, etc.
rpcProxy
Forwards raw JSON-RPC calls directly to the chain node via the unified JSON-RPC interface. Supports all native RPC methods — EVM (eth_*, trace_*, debug_*), Solana, and Bitcoin. Dangerous methods (admin, personal, miner, wallet operations) are blocked.
Parameters
| Name | Required | Description |
|---|---|---|
| chain | yes | Network slug |
| method | yes | Native RPC method name (e.g. eth_blockNumber, eth_getBalance) |
| params | no | Method parameters as JSON array (e.g. [] or ["0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045", "latest"]) e.g. [] |
Response Fields
| Field | Type |
|---|---|
data | object |
jsonrpc | string |
result | string |
id | integer |