go-ethereum/internal/ethapi
Chase Wright 82d1112bae
internal/ethapi: return standardized error codes for transaction submission
eth_sendTransaction and eth_sendRawTransaction returned the generic
-32000 code for submission failures, so callers had to string-match the
message to distinguish e.g. a nonce error from an underpriced replacement.

Map submission/pool errors to the standardized JSON-RPC error-code catalog
shared across EVM clients in ethereum/execution-apis (src/error-groups:
ExecutionErrors 1-199, GasErrors 800-999, TxPoolErrors 1000-1199), while
preserving the original error message. Errors without a catalog code are
returned unchanged, keeping the existing -32000 default.
2026-06-03 10:42:19 -05:00
..
override eth/catalyst: implement testing_buildBlockV1 (#33656) 2026-02-23 15:56:31 +01:00
testdata internal/ethapi: Add timestamp to eth_getTransactionByHash (#33709) 2026-02-02 12:20:16 +01:00
addrlock.go all: update license information (#16089) 2018-02-14 13:49:11 +01:00
api.go internal/ethapi: return standardized error codes for transaction submission 2026-06-03 10:42:19 -05:00
api_test.go internal/ethapi: default block parameter to latest on state methods (#35100) 2026-06-03 12:35:12 +02:00
backend.go internal/ethapi: add eth_capabilities RPC method (#33886) 2026-05-27 10:15:09 +02:00
capabilities.go internal/ethapi: add eth_capabilities RPC method (#33886) 2026-05-27 10:15:09 +02:00
capabilities_test.go internal/ethapi: add eth_capabilities RPC method (#33886) 2026-05-27 10:15:09 +02:00
dbapi.go all: remove concept of public/private API definitions (#25053) 2022-06-21 12:05:43 +03:00
errors.go internal/ethapi: return standardized error codes for transaction submission 2026-06-03 10:42:19 -05:00
errors_test.go internal/ethapi: return standardized error codes for transaction submission 2026-06-03 10:42:19 -05:00
logtracer.go internal/ethapi: add timestamp to logs in eth_simulate (#32831) 2025-10-06 18:19:25 +02:00
simulate.go core, consensus, internal, eth, miner: construct block accessList (#34957) 2026-05-19 21:51:53 +08:00
simulate_test.go internal/ethapi: fix gas cap for eth_simulateV1 (#33952) 2026-03-05 09:09:07 +08:00
transaction_args.go internal: SetCodeTx tx.To must not be nil (#35094) 2026-06-01 10:56:05 +08:00
transaction_args_test.go internal/ethapi: add eth_capabilities RPC method (#33886) 2026-05-27 10:15:09 +02:00