Skip to content

Commit

Permalink
docs: added info about new status codes (#11869)
Browse files Browse the repository at this point in the history
New `jsonrpc` version introduces new status codes that can be returned
in case of failure during method execution

---------

Co-authored-by: Yurii Koba <[email protected]>
  • Loading branch information
frolvanya and kobayurii authored Sep 30, 2024
1 parent c3668d1 commit 1acf3bd
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions chain/jsonrpc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Changelog


## 2.2.0

* Starting from this version we decided to use nearcore's version system

### Breaking changes

* Updated `rpc_handler` function ([#11806](https://github.com/near/nearcore/pull/11806) and [#11822](https://github.com/nearprotocol/nearcore/pull/11822)). The `jsonrpc` will start returning other HTTP codes than 200 OK for some errors:
* On internal server error it will return 500
* On timeout error it will return 408
* On request validation error will return 400

## 0.2.3

* Added `send_tx` method which gives configurable execution guarantees options and potentially replaces existing `broadcast_tx_async`, `broadcast_tx_commit`
Expand Down

0 comments on commit 1acf3bd

Please sign in to comment.