v0.57.0 #3841
steven-sheehy
started this conversation in
Releases
v0.57.0
#3841
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This release is focused on adding the necessary data and APIs needed for the JSON-RPC Relay defined in HIP-482. The JSON-RPC Relay implements the Ethereum JSON-RPC standard and relays HIP-410 Ethereum transactions to consensus nodes. Since the concept of a block is crucial for JSON-RPC APIs, this release also contains the implementation of HIP-415 Introduction of Blocks.
The mirror node now exposes the concept of blocks as introduced in HIP-415. We now calculate and store the cumulative gas used and the contract log bloom filter for the block as a whole. This HIP defines three new REST APIs and this release includes all three: a list blocks REST API, a get blocks REST API, and a list contract results REST API. The new
/api/v1/blocks
API supports the usuallimit
andorder
query parameters along withtimestamp
andblock.number
to support equality and range operators for consensus timestamps and block numbers, respectively. The/api/v1/blocks/{hashOrNumber}
is identical to the list blocks but only returns a single block by either its block hash or its block number. Finally, a/api/v1/contracts/results
REST API was added that is identical to the existing/api/v1/contracts/{id}/results
but able to search across contracts.GET /api/v1/blocks
GET /api/v1/blocks/{hashOrNumber}
A number of changes were made in support of HIP-410 Ethereum Transactions. The
/api/v1/accounts/{idOrAlias}
REST API was updated to accept an EVM address as a path parameter in lieu of an ID or alias. Anethereum_nonce
andevm_address
was added to the response of/api/v1/accounts/{idOrAliasOrAddress}
and/api/v1/accounts
. The existing/api/v1/contracts/results/{transactionId}
was updated to accept the 32 byte Ethereum transaction hash as a path parameter in addition to the transaction ID that it supports now. Its response, as well as the similar/api/v1/contracts/{idOrAddress}/results/{timestamp}
, was updated to add the following new Ethereum transaction fields:Note: Existing fields omitted for brevity.
A new exchange rate REST API
/api/v1/network/exchangerate
was added that returns the exchange rate network file stored in0.0.112
. It supports atimestamp
parameter to retrieve the exchange rate at a certain time in the past.A new
/api/v1/contracts/results/logs
API was added with the same query parameters and response as/api/v1/contracts/{address}/results/logs
but with the ability to search across contracts. It does not support address as a query parameter as it’s expected users use the existing API if they need logs for a specific address. The same rules around not exceedingmaxTimestampRange
still applies and allows it to stay performant. Pagination is possible using a combination of the timestamp and index query parameters.Finally, this releases completes our implementation of HIP-423 Long Term Scheduled Transactions. Two new fields
wait_for_expiry
andexpiration_time
were added to/api/v1/schedules
and/api/v1/schedules/{id}
.Enhancements
Bug Fixes
Dependency Upgrades
@hashgraph
/proto from 2.4.0 to 2.4.2 in /hedera-mirror-rest #3714Contributors
We'd like to thank all the contributors who worked on this release!
This discussion was created from the release v0.57.0.
Beta Was this translation helpful? Give feedback.
All reactions