[Notice] Klaytn SDK caver-js v1.6.3 Released

Tech at Klaytn
Klaytn
Published in
2 min readJun 30, 2021

Today we are excited to announce that the caver-js (Javascript Software Development Kit of Klaytn) v1.6.3 has just been released.

The caver-js v1.6.3 now supports the Governance API. Users can use the Governance API via caver.rpc.governance. caver.transaction provides a function that returns a transaction instance provided by Caver from a transaction hash, and caver.abi and caver.contract also support a function to decode functionCall strings encoded with function signatures and parameters. The functions to recover the public key from the signature are also provided, and caver.validator newly added in caver-js v1.6.3 provides functions for validating signed messages and transactions.

Supports Governance RPC Call in caver.rpc.governance.

  • You can send a Governance RPC Call to Node using caver.rpc.governance.

Supports decodeFunctionCall

  • caver.abi.decodeFunctionCall returns the decoded parameters if you pass abi and functionCall as parameters.
  • caver.contract, caver.kct.kip7, caver.kct.kip17 and caver.kct.kip37 provide the decodeFunctionCall method and return the decoded parameter by passing functionCall as a parameter.

Supports a function that recovers public keys from signature

  • caver.utils.recoverPublicKey returns the public key that signed the signature.
  • tx.recoverPublicKeys returns public keys from the signatures field.
  • tx.recoverFeePayerPublicKeys returns the public keys from the feePayerSignatures field.
  • caver.transaction.recoverPublicKeys takes an RLP-encoded transaction as a parameter and returns public keys from the signatures field of the transaction.
  • caver.transaction.recoverFeePayerPublicKeys takes an RLP-encoded transaction as a parameter and returns public keys from the feePayerSignatures field of the transaction.

Provides caver.validator

  • caver.validator.validateSignedMessage validates the signature that signed the message.
  • caver.validator.validateTransaction validates the signatures and feePayerSignatures of the transaction.
  • caver.validator.validateSender validates the signatures of the transaction.
  • caver.validator.validateFeePayer validates the feePayerSignatures of the transaction.

For detailed information about caver-js v1.6.3, please refer to https://github.com/klaytn/caver-js/releases/tag/v1.6.3.

To download caver-js, please visit https://www.npmjs.com/package/caver-js/v/1.6.3.

--

--