AxLabs releases neow3j 3.25.1 on Nov. 23, redesigning the transaction API and adding contract event subscriptions

AxLabs releases neow3j 3.25.1 on Nov. 23, redesigning the transaction API and adding contract event subscriptions

AxLabs announced the release of neow3j version 3.25.1 on November 23. The update, which is the newest iteration of the Java library for building on the Neo blockchain, overhauls the way applications submit and monitor transactions and introduces ten new capabilities, among them the ability to subscribe to contract events.

The upgrade brings six breaking changes, meaning that any project still running a 3.24‑series version will have to adjust its code. The team had already published the feature‑focused 3.25.0 release earlier that day; 3.25.1 is essentially a patch that corrects build‑tool issues and the Neo Express configuration bundled with the test utilities, leaving the runtime API unchanged from 3.25.0.

The most significant alteration is the introduction of a new class named TransactionSubmission. This object is now returned whenever an application sends a transaction (pull request #1184). In earlier versions, developers had to make one call to broadcast the transaction and a second call to follow its progress. The new class encapsulates the entire lifecycle, indicating whether the node accepted the transaction, waiting for its inclusion in a block, providing the execution log, and reporting the block height and timestamp. Because block inclusion does not guarantee successful execution, the object also flags whether the transaction’s execution was halted, making it easier to detect node‑level rejections and retrieve error details directly.

Another notable addition is the contract‑event subscription method subscribeToEvents() (pull request #1187). Java applications can now listen for events emitted by a specific contract as new blocks are processed, without having to subscribe to all block notifications and manually filter the results. The method still relies on polling the node for each block, so the node must support the getapplicationlog RPC call.

AxLabs identified six changes that could break existing code written for the 3.24.x line. Five are listed explicitly in the release notes; the sixth—a removed library—appears in the build scripts. The two most likely to cause immediate problems are:

1. Hash formatting: when hashes for accounts, contracts or transactions are converted to strings they now include a “0x” prefix (pull request #1192). JSON representations and contract manifests remain unchanged, but any code that parses or compares hash strings will need to accommodate the prefix.

2. Transaction submission: the send operation now yields a TransactionSubmission instance rather than the raw node response. The original response is still accessible within the object, and the utilities for tracking a transaction and retrieving its log have been moved onto this new class.

The remaining four changes are less likely to break code but may still require attention. Two signing‑related updates—most notably the addition of a StdLib class that wraps Neo’s native StdLib contract (pull request #1186)—simplify serialization, encoding and string handling without requiring explicit contract calls. Several minor enhancements eliminate the need for common conversion steps; for example, the compiler now translates Java’s absolute‑value, min, max and sign functions for integer types into a single NeoVM instruction rather than embedding the full Java method body (pull request #1190).

A batch of bug fixes also improves error handling. Network failures and unexpected RPC errors now terminate waiting loops instead of being silently retried. Transaction lookups that query unknown transactions return an empty result, while other errors are propagated upward. Short‑duration timeouts are respected, and polling stops once the timeout expires (pull request #1193).

Full details for both the 3.25.0 and 3.25.1 releases are available on GitHub at the following links:

https://github.com/neow3j/neow3j/releases/tag/3.25.0
https://github.com/neow3j/neow3j/releases/tag/3.25.1

Source: CryptoNews.net

Post a Comment

Previous Post Zeniflix Post