With the new version update, a dynamic system transition was made in the fee mechanism.
Weโre excited to announce a recent update that brings more dynamism to blockchain transactions. Previously, transaction fees were static at 0.1 PIRI. With this update, transaction fees are now dynamically calculated based on the blockchainโs congestion and other factors.
By the way minimum fee is increased to 1 PIRI.
Technical Details:
First, import the necessary libraries for cryptographic operations.
Finally, use the sendRaw function to initiate the transaction process.
asyncfunctionsendRaw(from, privateKey, to, amount) {constresult=awaitaddress.makingAddressInit();constamount=parseFloat(parseFloat(0.0001).toFixed(8));awaitsendRawTransaction(privateKey, from, to, amount,-1);}
With this update, we aim to make blockchain transactions more efficient and responsive to network conditions. We believe that dynamically adjusting transaction fees will lead to a fairer and more sustainable blockchain ecosystem.