Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eth_getTransactionByHash returns "too many arguments, want at most 1" when txhash is not found #3783

Open
quick-pawiromitchel opened this issue Sep 3, 2024 · 0 comments

Comments

@quick-pawiromitchel
Copy link

eth_getTransactionByHash returns too many arguments, want at most 1 for a txhash that's not found, but it should be just returning null. The error is confusing.

System information

zkEVM Node version: zkevm-node version v0.7.3
Network: Mainnet

Expected behaviour

Should be returning null

Actual behaviour

Returns the following

{
  "jsonrpc": "2.0",
  "id": 147,
  "error": {
    "code": -32602,
    "message": "too many arguments, want at most 1"
  }
}

Steps to reproduce the behaviour

curl  -X POST \
  'IP:8545' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "method": "eth_getTransactionByHash",
  "params": [
    "0x428ba7f2905e10afad572c6ce74e6532cdef2b803e9360cac38254ba68c579e7"
  ],
  "id": 147,
  "jsonrpc": "2.0"
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant