2
votes
Accepted
Phantom mobile app fails silently when interacting with new Mobile Wallet Adapter?
After asking in discord about this, and with help I checked again and realized I was using devnet in the website but mainnet in phantom app,and that was perfectly working with Solflare as it seems ...
2
votes
Accepted
Anchor programs not working in react native and expo environment [TypeError: b.readUIntLE is not a function (it is undefined)]
Spoke offline and found a temporary fix for this issue.
Workaround is to downgrade your Anchor version (both Anchor CLI and @coral-xyz/anchor in your RN project) to <= v0.28.0.
The root cause of ...
1
vote
PHANTOM WALLET CONNECTION IN SOLANA REACT
use npm package @solana/wallet-adapter-react, @solana/wallet-adapter-react-ui
1
vote
Accepted
Why does my react web app break on mobile when trying to sign an off-chain message
The reason why this happens is because you most likely rely on useEffect to prompt a user to sign a message.
Like so:
useEffect(() => {
if (wallet?.publicKey) signMessageAndSendToBackend(wallet?....
1
vote
Accepted
On mobile browsers how do I properly authorize and sign a message in a single wallet session
Detect if wallet adapter is a mobile one: wallet.adapter.name === 'Mobile Wallet Adapter' and if it is use one of the two approaches:
use 2 separate buttons - one for connecting the wallet (...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
mobile-wallet-adapter × 11solana-wallet-adapter × 6
mobile × 4
react × 3
phantom × 2
phantom-wallet × 2
solana-program × 1
wallet × 1
anchor-program-idl × 1
deserialization × 1
serialization × 1
walletadapter × 1
node.js × 1
react-native × 1
webapp × 1