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

How to Calculate the Fee for Transferring SOL? #4234

Open
ronaldoguedess opened this issue Jan 24, 2025 · 0 comments
Open

How to Calculate the Fee for Transferring SOL? #4234

ronaldoguedess opened this issue Jan 24, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@ronaldoguedess
Copy link

Hi everyone,
I simulated a transaction using the RPC simulateTransaction and received the unitsConsumed value, which is "unitsConsumed": 150.

Is this the correct way to calculate the transaction fee?
Total Fee = 150 * 0.000005 SOL = 0.00075 SOL

Could someone confirm if this formula is accurate or if there's another factor I need to consider?

Additionally, I'm seeing different fee values across different wallets for the same transaction:

Trust Wallet: 0.000006 SOL
Phantom Wallet: 0.003 SOL
My test shows: 0.00075 SOL

Why are these values different? Is there something specific to each wallet's fee structure that I need to be aware of?

@ronaldoguedess ronaldoguedess added the bug Something isn't working label Jan 24, 2025
@trustwallet trustwallet deleted a comment from Basebit-cmd Jan 24, 2025
@trustwallet trustwallet deleted a comment from source-bit Jan 24, 2025
@trustwallet trustwallet deleted a comment from BinaryBloom569 Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant