From e3b30ca8721ae35d83e0ca9d40db6de3526a47d5 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Tue, 8 Aug 2023 14:14:18 -0700 Subject: [PATCH] add docs with some helpful curl commands --- docs/misc curl.bash | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/docs/misc curl.bash b/docs/misc curl.bash index 8e612dfd..b1904bd9 100644 --- a/docs/misc curl.bash +++ b/docs/misc curl.bash @@ -46,3 +46,27 @@ curl https://eth.llamarpc.com \ -X POST \ -H "Content-Type: application/json" \ --data '{"method":"eth_getTransactionReceipt","params":["0x85d995eba9763907fdf35cd2034144dd9d53ce32cbec21349d4b12823c6860c5"],"id":1,"jsonrpc":"2.0"}' + + +--> [ + {"jsonrpc": "2.0", "method": "sum", "params": [1,2,4], "id": "1"}, + {"jsonrpc": "2.0", "method": "notify_hello", "params": [7]}, + {"jsonrpc": "2.0", "method": "subtract", "params": [42,23], "id": "2"}, + {"foo": "boo"}, + {"jsonrpc": "2.0", "method": "foo.get", "params": {"name": "myself"}, "id": "5"}, + {"jsonrpc": "2.0", "method": "get_data", "id": "9"} +] +<-- [ + {"jsonrpc": "2.0", "result": 7, "id": "1"}, + {"jsonrpc": "2.0", "result": 19, "id": "2"}, + {"jsonrpc": "2.0", "error": {"code": -32600, "message": "Invalid Request"}, "id": null}, + {"jsonrpc": "2.0", "error": {"code": -32601, "message": "Method not found"}, "id": "5"}, + {"jsonrpc": "2.0", "result": ["hello", 5], "id": "9"} +] + +--> [1,2,3] +<-- [ + {"jsonrpc": "2.0", "error": {"code": -32600, "message": "Invalid Request"}, "id": null}, + {"jsonrpc": "2.0", "error": {"code": -32600, "message": "Invalid Request"}, "id": null}, + {"jsonrpc": "2.0", "error": {"code": -32600, "message": "Invalid Request"}, "id": null} +]