Solana Wallet
Solana wallet controller for dapp side created any type of transactions
Note: This is only applicable in Tria's v2 internal infra, as in old infra.
How it works?
This can be used for any transaction created by the dapp on Solana, and wants to get signed via user's Tria wallet.
Passing the gas param in the signAndSendTxn function will cut the gas in any token, like USDC, SOL, etc., hence no dependency on SOL native tokens now to make txns
This was made possible because of Shyft Txn Relayer, which provides a feePayer to add to any Solana transactions
On the basis of the gas estimated, Tria's Solana feePayer will sponsor all that gas in SOL, and the user just has to pay in any token they prefer on Solana.
These transactions internally are partially signed by the user's key, as well as by the feePayer for paying the SOL fees.
About WalletController and FeeController
You can still keep using the WalletController and FeeController for Solana
for send, sendNft
for getSendFee, getSendNftFee
Only add the new popup for enabling any Solana transaction via SolanaWallet controller
Last updated