Flutter and Phantom Together #240
Replies: 2 comments 1 reply
-
Hello @uemirhanselim, We do not have any native libraries for flutter. Currently all Phantom interactions with other mobile dapps are acheived using deeplinks. But that is only for signing messages and sending transactions. In order to display a users balance you will need some other service like an RPC provider in order to read data from the blockchain. So you would use a deep link to connect phantom to your dapp and with the pub key you could query your blockchain data service for balances and transaction history. |
Beta Was this translation helpful? Give feedback.
-
Hi @adamdelphantom and @uemirhanselim , I am learning how to integrate phantom with flutter (web platform). My progress currently is
previously I try to use solana-wallet-adapter library, but somehow recently it just give an error on both wallet supported on that adapter. So, i try to use js interop and directly integrate with Phantom. But when trying to do no 3 above, it give me an error. Below is my function to sendSol.
Below is the error i got:
Any clue what is wrong with my code, I believe the issue is the format of transaction payload that i send to the signAndSendTransaction, but i have no idea what is the format and how to convert to it. Thanks. |
Beta Was this translation helpful? Give feedback.
-
How can I connect a phantom wallet to an app, my purpose is to show my phantom wallet balance in flutter app. Is there a doc for flutter that I can use, I couldn't find any.
Beta Was this translation helpful? Give feedback.
All reactions