Skip to main content
Version: 5.3.2

Release Note

You may encounter

  • Error: Cannot find module '@noble/secp256k1'

We are using ethers utils and it has an uncompatible upgrade which causes the problem. To solve this issue, please install @noble/secp256k1@1.7.1 manually:

npm install @noble/secp256k1@1.7.1

TronWeb 6.0.0(supporting typescript) beta version has been published on npm and it will become an official version soon. Please install and enjoy it as follows:

npm install tronweb@beta

New Features

  • Add blockHeader in options parameter in almost all apis of TransactioinBuilder. And the type is:
blockHeader?: {
    ref_block_bytes: string;
    ref_block_hash: string;
    expiration: number;
    timestamp: number;
};

If you pass an empty object, TronWeb will request block header from the chain. If you omit some fields or pass the wrong type, TronWeb will throw an error.

  • Support TIP-586. Add Resource Unit Price Query APIs for Solidity.
  • Add Trx.ecRecover to recover the address of a signed transaction.

GitHub issues

  1. Support multi-dimension address array such as address[][] https://github.com/tronprotocol/tronweb/issues/433
  2. fix error when triggerSmartContract with error address due to the undefined callback. https://github.com/tronprotocol/tronweb/issues/429
  3. Axios update https://github.com/tronprotocol/tronweb/issues/445