Skip to content

add: getComputeUnitPrice#61

Open
aitimate wants to merge 1 commit intosolana-developers:mainfrom
aitimate:add-get-compute-unit-price
Open

add: getComputeUnitPrice#61
aitimate wants to merge 1 commit intosolana-developers:mainfrom
aitimate:add-get-compute-unit-price

Conversation

@aitimate
Copy link

@aitimate aitimate commented Oct 4, 2024

usage:

const computeUnitPrice = await getComputeUnitPrice(connection)
// or const computeUnitPrice = await getComputeUnitPrice(connection, 2 / 3)
const ComputeUnitPriceIx = ComputeBudgetProgram.setComputeUnitPrice({microLamports: computeUnitPrice})

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

Successfully merging this pull request may close these issues.

1 participant