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

[Solana]: Support specifying fee payer for an encoded transaction #4114

Open
10gic opened this issue Nov 18, 2024 · 1 comment
Open

[Solana]: Support specifying fee payer for an encoded transaction #4114

10gic opened this issue Nov 18, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@10gic
Copy link
Contributor

10gic commented Nov 18, 2024

Is your feature request related to a problem? Please describe.
A fee payer on Solana is an account that covers the transaction fees for a user. The fee payer is the first writable signer account in the list of accounts for a transaction.

Fee payers can simplify the user experience by allowing users to interact with an app without needing to acquire the native token. Developers can sponsor these fees to make it easier for users to engage with their app.

It would be amazing if this library supported specifying a fee payer for an encoded transaction.

Describe the solution you'd like
Add a function likes: tw_solana_transaction_add_fee_payer(encoded_tx, fee_payer)

Describe alternatives you've considered

Checklist

Resources

https://solana.com/docs/core/fees

Additional context

@10gic 10gic added the enhancement New feature or request label Nov 18, 2024
@satoshiotomakan
Copy link
Collaborator

Thanks for opening the issue!
Regarding adding an external fee payer for an encoded transaction via tw_solana_transaction_add_fee_payer(encoded_tx, fee_payer) - I'm not against that, but in TrustWallet we don't plan to work on that right now.
Please feel free to open a PR

@trustwallet trustwallet deleted a comment from Ruyeduardo Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants