solana-developers/solana-actions

Phantom says "Unable to simulate"

Closed this issue · 3 comments

Hey first of all thanks for the awesome examples for solana actions. When I visit the transfer-sol example and try to scan the qrcode with phantom wallet, phantom says "Unable to simulate". I'm wondering what's the issue here and is there a way to work around?
20D3577D-6A34-4993-B82B-928613C60F38_1_201_a

the example code is on devnet, so your wallet must be selected to devnet

some wallets have issues performing full simulation on devnet

@nickfrosty In my application I've changed it to the mainnet and still got this issue.

this would be an issue with the wallet itself or your rpc provider maybe giving a stale blockhash.
try with a different wallet app (solflare or backpack for example) to see if you experience the same simulation issue.

you can also try simulating the transaction yourself in your code to see if you get an issues