This PR adds automatic priority fee instructions to TransactionBuilder. There are a couple of options that can be specified.
auto (with or without a maxPriorityFee) which add a suitable priority fee to the transaction. This only works in build and not buildSync since it requires an rpc call.
fixed which is just a set amount that a user can specify
none (default) does not add priority fee instructions to the transaction
Since this is set to { type: "none" } updating to this version initially does not change anything. Using this does have some caveats because it prepends two instructions to the transaction. Calling code would have to make sure there is space in the tx for those extra instructions.
This PR adds automatic priority fee instructions to
TransactionBuilder
. There are a couple of options that can be specified.auto
(with or without a maxPriorityFee) which add a suitable priority fee to the transaction. This only works inbuild
and notbuildSync
since it requires an rpc call.fixed
which is just a set amount that a user can specifynone
(default) does not add priority fee instructions to the transactionSince this is set to
{ type: "none" }
updating to this version initially does not change anything. Using this does have some caveats because it prepends two instructions to the transaction. Calling code would have to make sure there is space in the tx for those extra instructions.