This repository was archived by the owner on Jul 23, 2024. It is now read-only.
Release v1.6.4
v1.6.4 Release Notes
What’s New
- Good news: You can now use WebSocket to subscribe to events via publish/subscribe API with caver.java. (#278)
- Subscribe to events using
caver.rpc.klay.subscribe
.- Use the parameters
newheads
to get notification for the latest block andlogs
for logs included in new blocks for specific contracts or events.
- Use the parameters
- Of course, you can unsubscribe using
caver.rpc.klay.unsubscribe
. - Please refer to Klaytn Docs for more details.
- Subscribe to events using
Bug Fixes
- Did you know that the hex prefix "0x" used to only work in lower case? Now it accepts upper case "0X" too. 271
- We fortified the validation logic for the privateKey. 272, 275
- We also made some improvements in the validation logic for
caver.utils.compressedPublicKey
,caver.utils.decompressedPublicKey
274, 285 * In therpc
layer, the default value of the parameterisFullTransaction
for the methodscaver.rpc.getBlockByXXX
used to betrue
, but now it’s set tofalse
. 280 - We fixed and improved the
contract.once
method. 282- The
EventFilterOptions
class has been refactored so that you can convert and manage subscription topics more easily. - Before, subscribing to an event returned only the raw data. Now with the new
subscribeFlowable
method, you can configure the data stream yourself, i.e. register callback methods for various cases.
- The