Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Priority Fee to Transaction #159

Open
jecacs opened this issue Apr 1, 2024 · 1 comment
Open

Add Priority Fee to Transaction #159

jecacs opened this issue Apr 1, 2024 · 1 comment

Comments

@jecacs
Copy link

jecacs commented Apr 1, 2024

Hey guys. How i can add priority fee to transaction?

@Nagaprasadvr
Copy link

use
compute_budget.SetComputeUnitPrice(compute_budget.SetComputeUnitPriceParam{MicroLamports: 1_000_000})
and
compute_budget.SetComputeUnitLimit(compute_budget.SetComputeUnitLimitParam{Units: 100000})

priority_fee = compute_unit_limit * compute_unit_price

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants