Java SDK v2.6.1-rc1
(2020-09-30)
Please read documentation of Java SDK.
Support functions are:
- Contract compiling.
- Interacting with FISCO BCOS JSON-RPC interface.
- constructing and sending transactions.
- Advanced Messages Onchain Protocol(AMOP) functions.
- Contract event subscription.
- Encoding and decoding data with ABI.
- Account Management.
This java sdk is a code refactoring version base on Web3SDK 2.6.1. It includes the following new features:
- Support Toml config file, simplify configuration options.
- Support connecting with nodes of different groups.
- Support AMOP subscription and unsubscription at any time instead of just before start service.
- ABI module add support of encode and decode of struct type data.
- Use the common crypto tools of WeBank.
- Add a new module called group management to help applications manage nodes which java SDK connecting with.
- Use modular design, each module can use independently. For example, you can create crypto.jar file if only crypto module is needed.
Compatibility
- FISCO BCOS v2.0+.
- Not compatible with Web3SDK. When two users want to use AMOP functions to talk with each other, they should either both use Java SDK, or both use Web3SDK.
请参考文档:
支持功能:
- 合约编译。
- FISCO BCOS JSON-RPC 调用。
- 构造和发送交易。
- AMOP功能。
- 合约事件订阅。
- ABI 数据编解码。
- 账户管理。
Java SDK是基于Web3SDK重构的,它包含的新特性有:
- 支持Toml文件配置,简化配置项。
- 支持同时连接不同群组的节点。
- 支持动态订阅和取消订阅AMOP话题。
- ABI模块支持对结构体的编解码。
- 使用WeBank的通用加密工具。
- 新增群组管理模块,帮助用户管理不同群组的节点,简化应用代码。
- 使用模块化设计,便于组装再造。用户可以根据需要下载和使用必要的模块。
适配性:
- 适配FISCO BCOS v2.0+。
- 不适配Web3SDK。意思是,如果两个用户想使用AMOP功能进行通信,他们必须要么同时使用Java SDK,要么同时使用Web3SDK。