v0.7.0
Release Notes - Version v0.7.0
New Features
-
New API Endpoint
getSnapShotBySnapShotIdAndAddress
:We have added a new endpoint that allows querying a snapshot by its ID and an Ethereum address. The URL pattern for the new API endpoint is:
rubyCopy code
/getSnapShotBySnapShotIdAndAddress/:snapShotId/:address
This new endpoint returns a JSON object containing the
snapShotConfigName
, the queriedaddress
, the associatedsnapShotBalance
, and theupdatedAt
timestamp of the snapshot.There is also a variant that allows for raw data retrieval:
rubyCopy code
/getSnapShotBySnapShotIdAndAddress/:snapShotId/:address/raw
This variant returns just the snapshot balance as a plain text.
Enhancements
-
Lowercase Ethereum Address Handling:
To improve the consistency and reliability of data retrieval, we have updated the
getSnapShotBySnapShotIdAndAddress
endpoint to convert Ethereum addresses to lowercase before querying the database. This change ensures that the endpoint functions correctly, regardless of the case of the Ethereum address in the URL.
Bug Fixes
-
Address Not Found Error:
In previous versions, the
getSnapShotBySnapShotIdAndAddress
endpoint could fail if the Ethereum address was not found in the snapshot. In v0.7.0, this issue has been addressed. The endpoint now returns a clear error message when the address is not found.
Summary
In this release, we have focused on improving the flexibility and reliability of our API by adding a new endpoint and enhancing the handling of Ethereum addresses. The new getSnapShotBySnapShotIdAndAddress
endpoint allows more precise querying of snapshots, while the change to lowercase Ethereum addresses ensures accurate data retrieval across all queries.
What's Changed
- getSnapShotBySnapShotIdAndAddress API and lowercase stakerAddresses by @taha-abbasi in #21
Full Changelog: v0.6.0...v0.7.0