Solana Pay
Solathon follows the canonical Solana Pay specification for transfer URLs and transaction-request URLs.
The v2 helpers cover:
- lossless URL encoding and parsing with
Decimalamounts; - native SOL, classic SPL Token, and basic Token-2022 transfer creation and validation;
- ordered references and signed memos;
- safe HTTPS transaction-request fetching without forwarding RPC credentials;
- optional branded QR generation through
solathon[qr].
Basic Token-2022 payments are supported. Creation rejects transfer-fee and transfer-hook extensions, UI-transforming interest/scaled-amount mints, non-transferable or paused state, and unknown extensions where their safety cannot be established. These cases require extension-specific handling.
Start with Encode URL, then use Create Transfer or Fetch Transaction for the appropriate Solana Pay request type.