orca-so / orca-sdks

Open-sourced typescript SDKs for Orca
MIT License
43 stars 10 forks source link

Add option to dynamically select compute budget unit price (priority fee) in TransactionBuilder #71

Closed wjthieme closed 3 months ago

wjthieme commented 3 months ago

This PR adds automatic priority fee instructions to TransactionBuilder. There are a couple of options that can be specified.

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.