Skip to content

Instantly share code, notes, and snippets.

@kunal365roy
Created March 30, 2020 20:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kunal365roy/3c37ac9d1c3aaf31140f7c5faa083932 to your computer and use it in GitHub Desktop.
Save kunal365roy/3c37ac9d1c3aaf31140f7c5faa083932 to your computer and use it in GitHub Desktop.
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"}
PARITY: {"jsonrpc": "2.0", "error": {"code": -32016, "message": "The execution failed due to an exception.", "data": "Reverted"}, "id": 1}
GETH: {"jsonrpc":"2.0","id":1,"error":{"code":-32000,"message":"gas required exceeds allowance (9970736) or always failing transaction"}}
PARITY_EXECUTION_ERROR = -32015
eth_call
{"jsonrpc": "2.0", "method": "eth_call", "params": [{"to": "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e", "data": "0xdd62ed3e0000000000000000000000009b814233894cd227f561b78cc65891aa55c62ad20000000000000000000000009b814233894cd227f561b78cc65891aa55c62ad2"}, "latest"], "id": 3}
PARITY: {"jsonrpc": "2.0", "error": {"code": -32015, "message": "VM execution error.", "data": "Reverted 0x"}, "id": 3}
GETH: {"jsonrpc":"2.0","id":3,"result":"0x"}
{"jsonrpc": "2.0", "method": "eth_call", "params": [{"to": "0xC7612135356ba8F75dbf517B55d88A91977492dc", "data": "0xbbb2dcf600000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000024f47261b0000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000000000"}, "latest"], "id": 6}
PARITY: {"jsonrpc": "2.0", "error": {"code": -32015, "message": "VM execution error.", "data": "Reverted 0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000e57524f4e475f50524f58595f4944000000000000000000000000000000000000"}, "id": 6}
GETH: {"jsonrpc":"2.0","id":6,"result":"0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000e57524f4e475f50524f58595f4944000000000000000000000000000000000000"}
{"jsonrpc": "2.0", "method": "eth_call", "params": [{"to": "0xE41d2489571d322189246DaFA5ebDe1F4699F498", "data": "0x3c130d90"}, "latest"], "id": 5}
PARITY: {"jsonrpc": "2.0", "error": {"code": -32015, "message": "VM execution error.", "data": "Bad instruction fe"}, "id": 5}
GETH: {"jsonrpc":"2.0","id":5,"result":"0x"}
PARITY_TRANSACTION_ERROR = -32010
eth_sendRawTransaction
{"id":1,"jsonrpc":"2.0","method":"eth_sendRawTransaction","params":["0xf901b5820c2985104c533c008310059094818e6fecd516ecc3849daf6845e3ec868087b75588058d15e176280000b9014429589f61000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee000000000000000000000000000000000000000000000000058d15e17628000000000000000000000000000089d24a6b4ccb1b6faa2625fe562bdd9a232603590000000000000000000000005d47e871f81f84d3154aec772bcce14973112c6980000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000071e493b295f1192e5000000000000000000000000440bbd6a888a36de6e2f6a25f65bc4e16874faa9000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000045045524d0000000000000000000000000000000000000000000000000000000025a033ec0648415aec347ff025be04214f835aa9eeee5b154f2f479bb5110025e837a07fbc9c6777910c99ce26078e53a45f3f17b29e8be8bb8919ac59280ae754a7c3"]}
PARITY: {"jsonrpc": "2.0", "error": {"code": -32010, "message": "Transaction with the same hash was already imported."}, "id": 1}
GETH: {"jsonrpc":"2.0","id":1,"error":{"code":-32000,"message":"nonce too low"}}
{"jsonrpc": "2.0", "id": 447462, "method": "eth_sendRawTransaction", "params": ["0xf902ce830730298502540be4008301986294798abda6cc246d0edba912092a2a3dbd3d11191b80b90264648873340000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000007bc38200000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000000040400f13269254000003e0e002e2500000000000000000000000000000000000008001524214434071a4a0000000000000000000000000000000000000000000049002d445300000f003234403600000000000000000000000000000000000000235e00e02cfdf97646004600237d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004030012d99ad6c50000c50600d2330000000000000000000000000000000000000100edddf4bacdf8eac400000000000000000000000000000000000000000000c000e4daad00005800cdcec9ce00000000000000000000000000000000000000e5ab001ed80006a4be00bd00e197000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001ca02b16f173a0c748709e646a4f54a14d886bf4607579f1860fb27c96181f4a4a35a051c6d207f158eb753c39b7ce011a15c303241e9ff78ac8bde497caf667569a6a"]}
GETH: {"jsonrpc": "2.0", "error": {"code": -32010, "message": "Transaction with the same hash was already imported."}, "id": 447462}
{"id":1,"jsonrpc":"2.0","method":"eth_sendRawTransaction","params":["0xf9010c8201d8852e90edd0008301e4eb94f173214c720f58e03e194085b1db28b50acdeead80b8a4ddf7e1a700000000000000000000000000000000000000000000010f0cf064dd59200000000000000000000000000000000000000000000000000000000000027cbb23770000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000005e6a3099000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4826a02ba2a83da303025aa531b108678d9ac609ea03cd07717ae36af1414cdc1bf9a3a075c42a758e426a480ff0d13f58bda7e5754d63b42cd4e37f833ff06723f43240"]}
PARITY: {"jsonrpc": "2.0", "error": {"code": -32010, "message": "Transaction gas price 200000000000wei is too low. There is another transaction with same nonce in the queue with gas price: 0wei. Try increasing the gas price or incrementing the nonce."}, "id": 1}
GETH: {"jsonrpc":"2.0","id":1,"error":{"code":-32000,"message":"nonce too low"}}
{"jsonrpc":"2.0","id":1053,"method":"eth_sendRawTransaction","params":["0xf8aa0b850218711a008303d090947b0c06043468469967dba22d1af33d77d44056c880b844095ea7b30000000000000000000000002a0c0dbecc7e4d658f48e01e3fa353f44050c208000000000000000000000000000000000000000000000000000000000bebd4dc25a0f0db82f74cbd6193b8eceaf84f1144407297412edfc8486113df9a2634d5e402a05734cef61237e775ffab1c61e4ee450883b2be545b8a755e0d872e2231b84af5"]}
PARITY: {"jsonrpc": "2.0", "error": {"code": -32010, "message": "Insufficient funds. The account you tried to send transaction from does not have enough funds. Required 2250000000000000 and got: 0."}, "id": 1053}
GETH: {"jsonrpc":"2.0","id":1053,"error":{"code":-32000,"message":"nonce too low"}}
{"id":1,"jsonrpc":"2.0","method":"eth_sendRawTransaction","params":["0xf867820130851bf08eb0008301fbd094a5576138f067eb83c6ad4080f3164b757deb2737808026a09d587e987aabc8063f0bf5f4c6cd81f777f301d0f7d39bfd601e4ec92fc9f8b4a039123e839bc0fe4384787a2cbc9bc91ebd290cd6e4a6027b7b82a2c6f0ddc60b"]}
PARITY: {"jsonrpc": "2.0", "error": {"code": -32010, "message": "Transaction nonce is too low. Try incrementing the nonce."}, "id": 1}
GETH: {"jsonrpc":"2.0","id":1,"error":{"code":-32000,"message":"nonce too low"}}
{"id":1,"jsonrpc":"2.0","method":"eth_sendRawTransaction","params":["0xf8d48219b985181914ab0083030d409449c4f9bc14884f6210f28342ced592a633801a8b8829a2241af62c0000b864ad65d76d000000000000000000000000000000000000000000000025a15f1bfcae8ba000000000000000000000000000000000000000000000000000000000005e6a1d8700000000000000000000000034ebb9092b9fc46c7c0b285ec89b9811e8d6a1f125a0f36201070f7b209842cd0830f5fb59ee8d7a637f58f9564ac04167892e48cb07a0623a11034289e0f92c0ca9fd11c6b71f7ea01ff69751ab0ac72ae6ccce88e782"]}
PARITY: {"jsonrpc": "2.0", "error": {"code": -32010, "message": "There are too many transactions in the queue. Your transaction was dropped due to limit. Try increasing the fee."}, "id": 1}
GETH: {"jsonrpc":"2.0","id":1,"error":{"code":-32000,"message":"nonce too low"}}
PARITY_UNKNOWN_ERROR = -32009
eth_sendRawTransaction
{"jsonrpc":"2.0","id":1182,"method":"eth_sendRawTransaction","params":["0xf901ab44850ba43b740083178f4094818e6fecd516ecc3849daf6845e3ec868087b75580b9014429589f610000000000000000000000000d8775f648430679a709e98d2b0cb6250d2887ef00000000000000000000000000000000000000000000017b7883c069166000000000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000c5d5656a0e1fcaed203128b32121acb8f008a3dc800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001ae124c51b1b570000000000000000000000000440bbd6a888a36de6e2f6a25f65bc4e16874faa9000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000045045524d0000000000000000000000000000000000000000000000000000000025a058e981708e2e57ea9a83f6a29e7b9cea9134b5e73b41874e0b8f15fce5fef702a04d4112fc8c403e2e28be5c11aa83f1e660c4bd440046a7130df4efae1323b523"]}
PARITY: {"jsonrpc": "2.0", "error": {"code": -32009, "message": "Unknown error when sending transaction.", "data": "Ethkey(InvalidSignature)"}, "id": 1182}
GETH: {"jsonrpc":"2.0","id":1182,"error":{"code":-32000,"message":"invalid sender"}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment