tronprotocol / tronweb

Javascript API Library for interacting with the TRON Network
MIT License
440 stars 277 forks source link

`options` object is ignored in TransactionBuilder #430

Closed eli-lim closed 8 months ago

eli-lim commented 1 year ago

https://github.com/tronprotocol/tronweb/blob/cd30451327302c1133ab47ff709ea904c99d113c/src/lib/transactionBuilder.js#L125

...

https://github.com/tronprotocol/tronweb/blob/cd30451327302c1133ab47ff709ea904c99d113c/src/lib/transactionBuilder.js#L176-L178

options here is not passed to createTransaction

start940315 commented 1 year ago

options parameter in createTransaction is now only used internal. So what do you want to do to use this parameter?

eli-lim commented 1 year ago

options parameter in createTransaction is now only used internal. So what do you want to do to use this parameter?

Thanks for your reply.

I want to change the transaction's expiration, instead of using the default of 60 secs

start940315 commented 1 year ago

You can use transactionBuilder.extendExpiration to change it.

start940315 commented 8 months ago

Tronweb v5.3.2 now support custom block header. You can pass a custom expiration in options blockHeader argument.