Release Note
Release Note v6.0.0-beta.2
- Bump ethers from 6.8.0 to 6.11.1
- Bump ethereum-cryptography from 2.1.2 to 2.1.3
- Bump axios from 1.6.2 to 1.6.8
Release Note v6.0.0-beta.1
Build Transaction locally
Support build transactions locally with block header argument. You can pass { blockHeader: {...} }
as options argument to methods of transactionBuilder that can build transaction locally. In this way, TronWeb will not request block header info from the chain.
Support Tip-586
Add 2 methods of trx, trx.getBandwidthPrices and trx.getEnergyPrices, which request the prices of bandwidth and energy from fullNode.
FAQ
- Cannot destructure property 'Transaction' of 'globalThis.TronWebProto' as it is undefined.
This is a problem caused by webpack as it doesn't load cjs file correctly. To solve this problem, you need to add a new rule like below:
{
test: /\.cjs$/,
type: 'javascript/auto'
}