RPC Raw

Request

HyperPlayโ€™s API includes chainId in the request body for better UX and security.

rpcRaw

  • Does not require chainId

  • Allows multiple RPC calls

curl --location 'localhost:9680/rpcRaw' \
--header 'Content-Type: application/json' \
--data '[
    {
      "method": "eth_accounts"
    },
    {
      "method": "eth_getBalance",
      "params": ["0x87885AaEEdED51C7e3858a782644F5d89759f245", "latest"]
    }
]
'

Response

[
    {
        "result": [
            "0x638105AA1B69406560f6428aEFACe3DB9da83c64"
        ],
        "id": -1,
        "jsonrpc": "2.0"
    },
    {
        "result": "0x5ff309feea9f67c21",
        "id": -1,
        "jsonrpc": "2.0"
    }
]

Last updated