Skip to content

Instantly share code, notes, and snippets.

View kunal365roy's full-sized avatar

Kunal Roy kunal365roy

  • Berkeley California
View GitHub Profile
2021-09-09 23:34:52 5 320
2021-09-09 23:34:52 5 320
2021-09-09 23:34:52 5 320
2021-09-09 23:34:51 4 320
2021-09-09 23:34:51 4 19.8
2021-09-09 23:34:51 4 10.000001
2021-09-09 23:34:50 5 380
2021-09-09 23:34:48 5 380
2021-09-09 23:34:48 5 380
2021-09-09 23:34:47 4 380
@kunal365roy
kunal365roy / gist:3c37ac9d1c3aaf31140f7c5faa083932
Created March 30, 2020 20:46
Parity vs. Geth Error Code responses
PARITY_SUBSCRIPTION_INVALID_TRANSPORT = -32090
eth_subscribe
{"id":4,"jsonrpc":"2.0","method":"eth_subscribe","params":["newHeads",{}]}
PARITY: {"jsonrpc": "2.0", "id": 4, "error": {"code": -32090, "message": "Subscriptions are not available on this transport."}}
GETH: {"jsonrpc":"2.0","id":4,"error":{"code":-32000,"message":"notifications not supported"}}
PARITY_EXCEPTION_ERROR = -32016
eth_estimateGas
{"id": 1, "jsonrpc": "2.0", "params": [{"to": "0x61935cbdd02287b511119ddb11aeb42f1593b7ef", "data": "0xa6c3bf33000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000", "value": "0x3ff2e795f5000", "gasPrice": "0x1bf08eb00", "from": "0x6f67fedc36664c4d954cb4487c0377c9050bd1a0"}], "method": "eth_estimateGas"}
@kunal365roy
kunal365roy / gist:b43ace0b0644bfd8df64ea9f6995bb00
Created March 25, 2020 01:08
Geth vs. Parity Omitted fields March 22 2020
1) eth_getBlockByNumber(true):
Geth omits result.author, result.sealFields, transactions.chainId, transactions.condition, transactions.creates, transactions.publicKey, transactions.raw, transactions.standardV
2) eth_getBlockByHash(false):
Geth omits result.sealFields, result.author
3) eth_getTransactionReceipt
Geth omits result.logs.0.type, result.logs.0.transactionLogIndex, result.root
4) eth_getTransactionByHash: