SolanaQubit

Developer guide

Understand the application contracts before building a payment integration.

Download this guide as Markdown

Public Solana RPC is not the Qubit payments API

A Solana getSlot or getBalance request reads public network data. It does not read the private Qubit ledger or authorize a Qubit payment. The app uses authenticated, deployment-specific gateway interfaces for those actions.

Bind every approval to its review

  • Validate network, deployment domain, asset mint, owner, recipient, amount, fee, nonce and expiry before signing.
  • Represent asset amounts as integer base units. USDC has six decimals; 1.25 USDC is 1250000 units.
  • Recheck the selected wallet after every asynchronous approval step.
  • Treat signing text and serialized instructions as protocol data. A branding change must not silently rewrite them.
  • Separate sign-in authorization from payment authorization and from independent-key recovery.

Handle uncertain submissions

Persist the operation identity and signed transaction before broadcasting. If a timeout occurs, reconcile that same operation and its finalized receipt before another attempt. Duplicate requests must not produce duplicate credits or payouts. Retain reservations while an outcome is uncertain rather than returning spendable balance prematurely.

Protected-balance integrations

The protected vault uses an explicit protocol version, signature suite and deployment-bound message. Clients reject unsupported or contradictory metadata before using a recovery key. Key backups stay on the user’s device. A new signature suite requires corresponding on-chain enforcement.

References