[Notice] Klaytn SDK caver-java v1.6.1 Released
Today we are excited to announce that the caver-java (Java Software Development Kit of Klaytn) v1.6.1 has just been released.
caver.contract
of caver-js v1.6.1 supports the fee delegation model. Users can use fee delegation in caver.contract
by additionally defining fields related to the fee delegation in the options
object delivered as a parameter of the function or in contract.options
. In addition, the sign
and signAsFeePayer
functions are additionally provided to obtain a signed transaction to deploy or execute a specific smart contract. The create
function provided for the usability of Klaytn SDK is also available in caver-js v1.6.1.
caver.contract
of caver-java v1.6.1 supports the fee delegation model. Users can use fee delegation in caver.contract
by additionally defining fields related to the fee delegation in the SendOptions
object delivered as a parameter of the method or in the defaultSendOptions
field in caver.contract
.
In addition, the sign
and signAsFeePayer
methods are additionally provided to obtain a signed transaction to deploy or execute a specific smart contract.
Supported additional fields for fee delegation in the SendOptions class
feeDelegation
,feePayer
andfeeRatio
can be additionally defined in theSendOptions
object where the values used for creating a transaction are defined.
Supported signing functions in caver.contract
- In caver-java v1.6.1, The
sign
andsignAsFeePayer
methods are additionally supported in the Contract class and the ContractMethod class.
Supported fee-delegation model in caver.contract
- In caver-js v1.6.1, you can use fee delegation in
caver.contract
by additionally defining fields related to the fee delegation in theSendOptions
object delivered as a parameter of the method or in thedefaultSendOptions
field incaver.contract
.
Also, in caver-java v1.6.1, like caver-js, another library of Klaytn SDK, the Wrapper class of main class in each package has been implemented to support usability such as caver.[module name].[function_name].
This Wrapper class provides two main functions:
- Creates an instance of the base class, which can be mapped to the wrapper class, through the
create
method. - Wraps the static method of the base class and provides it in the form of an instance method.
Components accessible through the Caver
instance are as follows.
- Account:
caver.account
AccountKey:caver.account.accountKey
- Transaction:
caver.transaction
- ABI:
caver.abi
- Contract:
caver.contract
- KCT:
caver.kct
KIP7:caver.kct.kip7
KIP17:caver.kct.kip17
KIP37:caver.kct.kip37
- Utils:
caver.utils
- IPFS:
caver.ipfs
For detailed information about caver-java v1.6.1, please refer to https://github.com/klaytn/caver-java/releases/tag/v1.6.1.
To download caver-java, please visit https://search.maven.org/artifact/com.klaytn.caver/core/1.6.1/jar