Closed eli-lim closed 8 months ago
options parameter in createTransaction
is now only used internal. So what do you want to do to use this parameter?
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
You can use transactionBuilder.extendExpiration
to change it.
Tronweb v5.3.2 now support custom block header. You can pass a custom expiration in options blockHeader
argument.
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 tocreateTransaction