- feat: support with_cycles for get_block and get_block_by_number rpc (#623)
- feat: support packed rpcs (#624)
- feat: support indexer exact search mod (#627)
- feat: support omnilock script (#590)
- feat: support building transaction in dev chain (#591)
- feat: support indexer RPC in ckb (#601)
- feat: support light client RPC (#602)
- feat: support offchain cell (#603, 606)
- feat: support field extra in mercury RPC get_balance (#605)
- feat: support RPC method estimate_cycles (#608)
- feat:support rpc method get fee rate statics (#611)
- feat: guitar Make ckb-indexer can configure which api url to use (#613)
- fix: fix signer test fixture (#575)
- fix: fix incorrect index at method
encodeFullBech32
(#576)
- feat: enhance mercury builder (#570)
- feat: make mercury enum public (#566)
- feat: add more easy-use mercury tool methods (#565)
2.0.0 is a refactored ckb-java-sdk release and brings plenty of BREAKING CHANGES compared with v1.0.*
and the earlier releases.
Breaking changes related with user interfaces
- Type or name change of quite a few fields in RPC type representation.
- Unified address representation and operation.
- Transaction signing mechanism by
ScriptGroup
,ScriptSigner
, andTransactionSigner
. TransactionBuilder
andScriptHandler
for transaction construction by manual.- Operation support for most common scripts.
- Clean some utils classes and unused classes.
Underlying breaking changes that less likely need users' changes
- Molecule serialization in a code-generated way.
- Unify type adapter for Gson serialization.
- More robust test.
Check migration-guide.md for more details.
- feat: Replace Record Id with Outpoint (#534)
- feat: support pw lock signature (#525)
- feat: support mercury get_sync_state RPC API (#522)
- feat: add method for legacy address conversion (#514) @fjchen7
- fix: improve address validation (#515) @fjchen7
- fix: fix PR labler not permission (#516) @fjchen7
- chore: fix release github action (#513) @fjchen7
- feat: adopt full address by default (#506) @fjchen7
- feat: add enum Freeze in extraFilter (#508) @fjchen7
- feat(mercury): support
build_sudt_issue_transaction
(#501) @handsome0hell - feat(mercury): add build_sudt_issue_transaction test (#502) @rev-chaos
- fix: replace short address with bech32m full address in test (#511) @fjchen7
- chore: label PR based on title (#507) @fjchen7
- chore: add CICD github actions (#505) @fjchen7
- docs: update README for default address (#510) @fjchen7
v0.101.1 (2021-12-01)
- Support
build_sudt_issue_transaction
(#501) - Add enum Freeze for extra (#508)
- Adopt full address by default (#501, #511)
- Label PR based on title (#508)
v0.101.0-beta.2 (2021-11-17)
- Enhance README.md (#490, #494, #497)
- Add address generation methods (#494, #496)
- Add timestamp in RPC response (#489)
- Make ckb-indexer interface compatible (#491)
- Rename
build_smart_transfer_transction
(#488) - Change RPC response structure (#492, #493, #495, #497)
- Fix key invalidation error (#487)
v0.101.0-beta.1 (2021-11-01)
- Add new rpc build_dao_claim_transaction, impl by following the RFC withdraw-phase-2 (#483)
- Rename rpc
build_deposit_transaction
tobuild_dao_deposit_transaction
(#483) - Rename rpc
build_withdraw_transaction
tobuild_dao_withdraw_transaction
(#483) - Building tx output support witnesses filling and new signature actions (#481 , #482)
- When sending a transaction, use passthrough as the default parameter (#479)
v0.100.0-beta.2 (2021-10-13)
- Fix the case that script type data1 is not taken into account during bech32m serialization and deserialization (#473)
v0.100.0-beta.1 (2021-10-10)
- The field hash_type has a new allowed value
data1
but it is only valid after hard fork activation - Add support for Bech32m
- The field
uncles_hash
in header will be renamed toextra_hash
for all JSON RPC methods
v0.43.3-beta.4 (2021-10-13)
- Fix a serialization error
in
GetTransactionInfoResponse
(#474)
v0.43.3-beta.2 (2021-09-27)
- Refactor nameing field (078c9e7)
- Fix
register_address
url error (4eba9b2) - Fix serialization error
in
get_spent_transaction
(ca4599a) - Fix
ExtraFilter
structure definition problem (f4cc990) - Fix
Record
structure definition problem (532d17)
v0.43.3-beta.1 (2021-09-22)
- Add
get_spent_transaction
support (bc744ab) - Add
dao
support (6eccbf0) - Add
get_mercury_info
api (7346d3d) - Add
get_db_info
api (28d3f20)
Adjusting build_smart_transfer_transaction
(4f2683d)
- Adjusting
query_transactions
interface (9d15fed) - Adjusting
build_transfer_transaction
interface (0ce8890) - Adjusting
build_adjust_account_transaction
interface (aa89d7a ca7efe5) - Adjusting
get_block_info
interface(09c3e38) - Adjusting
get_transaction_info
interface (ef6ece4) - Adjusting
balance
interface (ee1f367) - remove
build_asset_collection_transaction
interface (aa89d7a
v0.43.2 (2021-09-03)
-
Adjusting the
build_asset_account_creation_transaction
interface (2f74758 f660dbe) -
Adjusting the
get_generic_transaction
andget_generic_block
interface (acf3ec8 156876b 33a229b) -
Adjusting the
get_balance
interface (2f74758)
v0.43.1 (2021-08-01)
- Relay ckb rpc request through mercury (1504473)
- Add
get_fork_block
api (0755910) - Add
get_block_median_time
api (83ca4a9)
Fix the return value of the
interface verify_transaction_proof
(751f07b)
v0.43.0 (2021-07-25)
- #415 Support Mercury version 0.1.0-rc2
- Support CKB version 0.43.0
- #415 Support ckb-indexer version 0.2.1
v0.42.0 (2021-06-25)
- Remove
get_peers_state
rpc - Remove
get_cellbase_output_capacity_details
rpc
v0.41.1 (2021-06-12)
- Fix JDK version 15 to 8
v0.41.0 (2021-06-12)
- Implement Mercury SDK(0a2b5fc)
v0.40.0 (2021-03-08)
- Remove indexer module rpc and disable getcellbase_output_capacity_details rpc(0872f27)
- Remove indexer module rpc
- Add @Deprecated to get_cellbase_output_capacity_details rpc
v0.39.1 (2021-01-30)
- Fix WitnessArgs serialization size(bb73a39)
v0.39.0 (2021-01-12)
v0.38.1 (2020-12-16)
- Update interface RpcCallback public(b3f6b61)
v0.38.0 (2020-11-23)
Bump version to v0.38.0
v0.37.1 (2020-11-10)
- Lock bouncycastle version to 1.65 (79b870d)
v0.37.0 (2020-10-29)
- Add new rpc (
ping_peers
,clear_banned_addresses
,get_transaction_proof
,verify_transaction_proof
) (ad83ea7)
- Remove
get_cells_by_lock_hash
and indexer examples (d70522f)
- Remove
get_cells_by_lock_hash
rpc - Remove indexer and udt examples and new sudt examples will be added in the next release
v0.36.1 (2020-09-22)
- Package ckb-sdk.jar with jdk8
v0.36.0 (2020-09-22)
- Add @Deprecated to indexer rpc requests (ef26730)
v0.35.1 (2020-8-26)
- Add a
ckb-indexer
example (0f4eeda)
v0.35.0 (2020-8-25)
- Add
sync_state
rpc (202fda9) - Add tipHash to txPoolInfo(af8c54f)
- Add
set_network_active
rpc (bcd2c2b) - Add add_node and remove_node rpc (7cd8b9b)
- Add more fields to node_info and peer (bba542e)
- Set
get_peers_state
as deprecated rpc request (d2c4baf)
v0.34.0 (2020-7-21)
- Add batch rpc request (e5eef53)
- Add
clearTxPool
rpc request(64819d9) - Remove
estimateFeeRate
rpc request (054bd01) - Set
computeScriptHash
andcomputeTransactionHash
as deprecated rpc request (fec42ec)
- Remove
estimateFeeRate
rpc request (054bd01)
v0.33.0 (2020-6-22)
Bump version to v0.33.0
v0.32.0 (2020-5-26)
- Add Simple UDT example (18a15f5)
v0.31.0 (2020-4-17)
- Update cell collector error information (1468d85)
- Update output size calculating method (3e7f6d8)
v0.30.0 (2020-3-23)
- Replace test private key with dev chain private key (ad94180)
- Add fromBlockNumber to collectInputs method (3a66ab5)
- Refactor epoch parser class and method name (ca45791)
- Fix cell collector bug (80eca88)
v0.29.0 (2020-2-28)
v0.28.0 (2020-2-7)
Bump version to v0.28.0
v0.27.1 (2020-2-3)
- Add outputsValidator as parameter to sendTransaction rpc (d6d715e)
Add outputsValidator as parameter to sendTransaction rpc which is used to validate the transaction outputs before entering the tx-pool, an optional string parameter (enum: default | passthrough ), null means using default validator, passthrough means skipping outputs validation
v0.27.0 (2020-1-10)
- Reactor cell collector with iterator (a677b92)
- Adapt examples for new cell collector with iterator (41cc1a8)
v0.26.1 (2020-1-2)
- Add get_capacity_by_lock_hash rpc (69aea7b)
- Add example readme document (2a5bfd3)
- Update transaction builder (20eac75)
v0.26.0 (2019-12-14)
- Remove useless code (557632a)
v0.26.0-rc2 (2019-12-8)
- Implement Nervos DAO deposit (8cedeca)
- Implement Nervos DAO withdraw (8f330ff)
- Refactor collectInputs of CellCollector (1c74a03)
- Add fields of get_cells_by_lock_hash (b44c40a)
- Add fields of get_live_cells_by_lock_hash (2229dbe)
- Update set_ban params and estimate fee test case (b776c59)
v0.25.0 (2019-11-16)
- Update ckb-sdk build.gradle for packing (d0824ee)
v0.24.9 (2019-11-13)
- Impl indexer to collect cells and send transaction (cdbe0a0)
v0.24.8 (2019-11-13)
- Update occupiedCapacity method to convert ckb to shannon(bd00da8)
v0.24.7 (2019-11-12)
- Update cell output and script size calculating(b19d201)
- Update multisig transaction estimating fee(4a084fa)
- Remove useless min capacity(2709d57)
v0.24.6 (2019-11-09)
- Update witnesses signature and update witness initial value(78b2600)
- Update transaction fee calculating(400a763)
v0.24.5 (2019-11-08)
- Update address parse args length exception(dbf4fe5)
v0.24.2 (2019-11-07)
- Add AddressGenerator and AddressParser(dbf4fe5)
- Update address generator and parser for example(7cdf948)
v0.24.1 (2019-11-06)
- Refactor module names(rename core to ckb and add example module)(02ba44a)
- Split transaction building and signature(cc4fc63)
- Refactor multisig example to split transaction building and signature(48ac5c5)
- Update cell collector for transaction fee calculating(b4c720b)
- Rename core module to ckb
- Rename console module to ckb-sdk
- Create new example module
- Refactor examples for splitting transaction building and signature
- Reactor cell collector for transaction fee calculating
v0.24.0 (2019-11-02)
- Add estimate_fee_rate rpc(4e633ec)
- Update transaction example with estimating tx fee(43fe747)
- Update single sig transaction with new witness(48ac5c5)
- Impl multi sig address and transaction(9696651)
Sending transaction with single sig address will be changed because of new witness data structure and new signature logic.
v0.23.2 (2019-10-22)
- Fix witnesses count error(2163a03)
v0.23.1 (2019-10-22)
- Add transaction fee to sendCapacity example(60f2faf)
- Move exceptions to outside application(52b85e5)
- Add maven config to build.gradle(61f08ae)
v0.23.0 (2019-10-19)
- Impl transaction size and transaction fee calculating(c7285d3)
v0.22.0 (2019-10-05)
- Refactor rpc service module(ef7a809)
- Update script args and witnesses data type(af1f3ae)
- Update epoch and header structure(2e8a6af)
- header and epoch structures are changed.
- script args and witnesses are changed.
v0.21.1 (2019-09-25)
- Add blockHash and constructor for CellOutputWithOutPoint(fe3a929)
- Support multiply private keys to sign transaction(1ae3cc6)
- Support multiply private keys to sign transaction(4efd32c)
- Update readme about capacity transfer(d09587a)
v0.21.0 (2019-09-21)
- Add getBalance method and example usage(a915e66)
- Update header and nodeinfo data type to string(3f38f1)
- Update transaction parameter to hex string(1847c7d)
- Update integer to hex string for jsonrpc(f93b5bd)
- Update transaction generator and serializer data type to integer(96709a5)
- Remove hash for sendTransaction(9718b79)
- Update get_live_cell request parameters and response(25227d9)
- Update get_live_cell request parameters and response(d88ded8)
v0.20.0 (2019-09-07)
This version SDK supports computing script hash and transaction hash offline through script and transaction serialization.
- Move wallet to core module(1bd1050)
- Implement serialization schema (195a234)
- Implement serialization schema (2d55ea0)
- Implement serialization schema (384d555)
- Implement serialization schema (9433c56)
- Add serialization for script and transaction (2aaa141)
- Refactor secp256k1 sign and key method (f8d48c2)
v0.19.1 (2019-09-02)
- Fix script hash bug(342365c)
v0.19.0 (2019-08-28)
- Update transaction related data type(e36173d)
- Update transaction related data type(e5bbf46)
- Update transaction related data type(1087071)
- Remove epoch_reward of Epoch(ce2cdbb)
- Update genesis block system cell and code hash(4a81810)
- Update genesis block system cell and code hash(3cb10bb)
- Add compute lock hash rpc(3cb10bb)
- Fix transaction witness bug(77b7f67)
- Refactor wallet and sendCapacity test cases(05428e0)
- Remove header seal and add nonce to header
- Update script hash generator
- Update genesis block system cell and code hash
- Remove cell_output data and add outputs_data to transaction
- Remove epoch_reward of epoch
- Update cell dep(cell_dep and header_dep)
v0.18.0 (2019-08-10)
- Update to support CKB v0.18.0.
v0.17.0 (2019-07-27)
- Add hash_type to Script (6c84642)
- Update address format generator according recent RFC (cd93318)
- Add get_cellbase_output_capacity_details rpc (4d15c22)
- Add get_header and get_header_by_number rpcs (52663f0)
- Add set_ban and get_banned_address rpcs (ea424e5)
- Fix bech32 covertBits with any length parameter (217897f)
v0.16.0 (2019-07-13)
- Update to support CKB v0.16.0.
v0.15.0 (2019-06-29)
- Add index related rpc (b77194c)
- Update
get_blockchain_info
rpc (80dbfe2) - Use signRecoverable method to sign transaction (e004f98)
v0.14.0 (2019-06-15)
v0.13.0 (2019-06-01)
- Update tx_pool_info response data type (beb4488)
- Add non-parameter constructor to witness (6da731e)
v0.12.0 (2019-05-18)
-
Add example of sending capacity (8f25ae7)
-
Generalize OutPoint struct to reference headers (3bc8146)
-
Implement get_current_epoch RPC method (a74ad7d)
-
Implement get_epoch_by_number RPC method (88723c3)
-
Implement get_peers RPC method (2583cb8)
-
Implement State RPC methods (e461a3f)
-
Secp256k1: Implement ECDSA sign (d41b683)
-
Remove always success script (f39a106)
-
Implement tx_pool_info RPC method (fee7130)
-
Implement dry_run_transaction RPC method (b8b48f6)
-
Implement compute_transaction_hash RPC method (3edcb9c)
-
Rename proposalsRoot to proposalsHash (4e55ef9)
-
Update the parameter of OutPoint (7eeebad)
-
Remove trace RPC methods (be29cac)
-
Add Prerequisites and Installation and Usage for README (931f1af)
- Update transaction version data type to string
- Trace RPC methods are removed.
v0.11.0 (2019-05-14)
- Implement
get_block_by_number
rpc and add more rpc test cases - Update transaction data structure
- Update CellInput data structure
- Update proposals to string list
- Update CellOutputWithOutPoint lock string to script
- Add development to README
v0.10.0 (2019-05-06)
- Change capacity in RPC interface data type to string (88723c3)
- Add valid since to cell input (b4758e1)
v0.9.0 (2019-4-22)
- Update Cell and Script data type (005b181)
- Delete cellbase and cellbase_id fileds (378b58e)
- Delete signature and wallet logic (fe2cc84)
v0.8.0 (2019-4-8)
- Adapt CKB v0.8.0
v0.7.0 (2019-03-25)
- rpc: implement trace rpc trace_transaction and get_transaction_trace (dc56e9)
- Repalce SHA3 with Blake2b.
- Remove bitcoin_unblock.rb.
v0.6.0 (2019-02-25)
- rename PRC request localNodeInfo (9ae422)
- rename RPC response model CellInput and CellOutput (080378)
- support asw account and transfer (46b1ca)
v0.5.0 (2019-02-11)
- update response model to ckb prefix (316313e)
- add script model and calculate type hash (c3ddb81)