Replies: 1 comment 7 replies
-
@matbech My apologies for the delayed response! I am investigating this issue. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The reference parameter in the Solana Pay url is not included in a token transfer transaction. Per solana pay specification:
https://docs.solanapay.com/spec
"If the values are provided, the wallet must include them in the order provided as read-only, non-signer keys to the SystemProgram.Transfer or TokenProgram.Transfer/TokenProgram.TransferChecked instruction in the payment transaction. The values may or may not be unique to the payment request, and may or may not correspond to an account on Solana."
Example
solana:jupoGAk6QVHBtEdEUAsFhLRPCi5MK48bJZTu5AvBv6S?amount=100.00&spl-token=Gh9ZwEmdLJ8DscKNTkTqPbNwLNNBjuSzaG9Vp2KGtKJr&reference=2qjEcsqXQcdysoTpEgRkLJNJtFJCd8PnqmWoB8JqvPFx&label=mylabel&message=mymessage
QR code:
https://chart.googleapis.com/chart?cht=qr&chs=250&chl=solana%3AjupoGAk6QVHBtEdEUAsFhLRPCi5MK48bJZTu5AvBv6S%3Famount%3D100.00%26spl-token%3DGh9ZwEmdLJ8DscKNTkTqPbNwLNNBjuSzaG9Vp2KGtKJr%26reference%3D2qjEcsqXQcdysoTpEgRkLJNJtFJCd8PnqmWoB8JqvPFx%26label%3Dmylabel%26message%3Dmymessage
Transaction on chain:
https://solscan.io/tx/2jdcYWmm1Uub9miqmerh5hrJ7YVWt471oeQHKpTiwfKmS7aM8ZYjErAmHLBrSLsPbopPrEY6iotiLCUj26U44NHf?cluster=devnet
When looking at the transaction details you can see that it includes the token address (Gh9ZwEmdLJ8DscKNTkTqPbNwLNNBjuSzaG9Vp2KGtKJr) in the accounts (SOL balance change), instead of the provided reference.
Phantom Version
24.3.0
Beta Was this translation helpful? Give feedback.
All reactions