-
Notifications
You must be signed in to change notification settings - Fork 450
JSON RPC Error codes standardization using open-rpc extension specs #650
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
Open
simsonraj
wants to merge
22
commits into
ethereum:main
Choose a base branch
from
simsonraj:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+406
−1
Open
Changes from 6 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
510cc9f
sample implementation
simsonraj 68efb67
Pulling the x-error-groups from open-rpc package
simsonraj b7da3a7
updated gastsby & docs generator
simsonraj 46a9906
few fixes
simsonraj 623c57a
Merge pull request #1 from simsonraj/error_groups
simsonraj 2500734
Merge branch 'ethereum:main' into main
simsonraj 721f190
Update scripts/build.js
simsonraj 3bd6d47
meta data extension
simsonraj 4eacff2
Merge pull request #2 from simsonraj/error_groups
simsonraj 53d5577
sample implementation
simsonraj 554443e
Pulling the x-error-groups from open-rpc package
simsonraj d3f6f22
updated gastsby & docs generator
simsonraj 8d1dd3c
few fixes
simsonraj 50113ef
Update scripts/build.js
simsonraj fc8aacc
meta data extension
simsonraj 1ded1ed
Merge pull request #4 from simsonraj/sync_main_again
simsonraj 019a359
fix package conflicts
simsonraj 2b7da45
fix packages
simsonraj 9b06027
Merge pull request #5 from simsonraj/sync_main_again
simsonraj 5c8daea
extended error categories & code ranges implementation
simsonraj 4019acd
Added TXPOOL errors, README file and fixes
simsonraj 527bb9a
Added context in README
simsonraj File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
x-error-group: | ||
ExecutionErrors: | ||
- code: -31800 | ||
message: "Nonce too low" | ||
data: "Transaction nonce is lower than the sender account's current nonce" | ||
- code: -31801 | ||
message: "Nonce too high" | ||
data: "Transaction nonce is higher than the sender account's current nonce" | ||
- code: -31802 | ||
message: "Execution reverted" | ||
data: "Execution is reverted by REVERT Opcode" | ||
- code: -31803 | ||
message: "Invalid opcode" | ||
data: "An invalid opcode was encountered during execution" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
x-error-group: | ||
GasErrors: | ||
- code: -31800 | ||
message: "Gas too low" | ||
data: "Transaction gas is too low / intrinsic gas too low" | ||
- code: -31801 | ||
message: "Out of gas" | ||
data: "The transaction ran out of gas" | ||
- code: -31802 | ||
message: "Gas Price too low" | ||
data: "Gas price too low / gas price below configured minimum gas price" | ||
- code: -31803 | ||
message: "Exceeded Block gas limit" | ||
data: "Tx gas limit exceeds max block gas limit / intrinsic gas exceeds gas limit" | ||
- code: -31804 | ||
message: "Exceeded Fee cap" | ||
data: "Tx fee exceeds cap / max priority fee per gas higher than max fee per gas" | ||
- code: -31805 | ||
message: "Gas overflow" | ||
data: "Gas overflow error" | ||
- code: -31806 | ||
message: "Price lower than the base fee" | ||
data: "Transaction price must be greater than base fee / max fee per gas less than block base fee" | ||
- code: -31807 | ||
message: "Max priority fee overflow" | ||
data: "Max priority fee per gas higher than 2^256-1" | ||
- code: -31808 | ||
message: "Max fee overflow" | ||
data: "Max fee per gas higher than 2^256-1" | ||
- code: -31809 | ||
message: "Insufficient funds" | ||
data: "Insufficient funds for gas * price + value" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
x-error-group: | ||
JSONRPCNonStandardErrors: | ||
- code: -32000 | ||
message: "Invalid input" | ||
data: "Missing or invalid parameters" | ||
- code: -32001 | ||
message: "Resource not found" | ||
data: "Requested resource not found" | ||
- code: -32002 | ||
message: "Resource unavailable" | ||
data: "Requested resource not available" | ||
- code: -32003 | ||
message: "Transaction rejected" | ||
data: "Transaction creation failed" | ||
- code: -32004 | ||
message: "Method not supported" | ||
data: "Method is not implemented" | ||
- code: -32005 | ||
message: "Limit exceeded" | ||
data: "Request exceeds defined limit" | ||
- code: -32006 | ||
message: "JSON-RPC version not supported" | ||
data: "Version of JSON-RPC protocol is not supported" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
x-error-group: | ||
JSONRPCStandardErrors: | ||
- code: -32700 | ||
message: "Parse error" | ||
data: "An error occurred on the server while parsing the JSON text" | ||
- code: -32600 | ||
message: "Invalid request" | ||
data: "The JSON sent is not a valid request object" | ||
- code: -32601 | ||
message: "Method not found" | ||
data: "The method does not exist / is not available" | ||
- code: -32602 | ||
message: "Invalid params" | ||
data: "Invalid method parameter(s)" | ||
- code: -32603 | ||
message: "Internal error" | ||
data: "Internal JSON-RPC error" |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.