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

Validate input of RPC requests #14

Merged
merged 9 commits into from Oct 31, 2022
Merged

Validate input of RPC requests #14

merged 9 commits into from Oct 31, 2022

Conversation

pkakelas
Copy link
Collaborator

Depends #13

example request:

{
	"jsonrpc":"2.0",
	"method":"eth_getBalance",
	"params":[
		"0x407d73d8a49eeb85d32cf465507dd71d507100c1", 
		"a random block opt"
	],
	"id":1
}

response:

{
    "jsonrpc": "2.0",
    "id": 1,
    "error": {
        "code": -32602,
        "message": "invalid argument 1: block option must be a valid 0x-prefixed block hash or hex integer, or \"latest\", \"earliest\" or \"pending\""
    }
}

@shresthagrawal shresthagrawal merged commit c85f199 into main Oct 31, 2022
@shresthagrawal shresthagrawal deleted the validation branch October 31, 2022 17:50
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

Successfully merging this pull request may close these issues.

None yet

2 participants