Skip to content

Compute mint rent exemption dynamically in JS client#134

Open
lorisleiva wants to merge 1 commit intomainfrom
loris/use-sync-rent-fn-from-kit
Open

Compute mint rent exemption dynamically in JS client#134
lorisleiva wants to merge 1 commit intomainfrom
loris/use-sync-rent-fn-from-kit

Conversation

@lorisleiva
Copy link
Member

This PR uses the new synchronous getMinimumBalanceForRentExemption function from @solana/kit to compute the rent of the new mint account without having to make an RPC call.

This is equivalent to the previous hardcoded solution except that, when these computations will change, we'll only need to change that in one place.

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