Skip to main content
A payment link holds money. Whoever opens it can claim it, into their own private balance or to a Solana address. A payment request asks for money: whoever opens it pays it from their private balance. Both use cloak.ag’s format, so links made with the SDK open on cloak.ag and in the Cloak app, and the other way round.
The call funds a note for the link from the private balance. Creating a link carries no protocol fee.
The URL is the money. Its secret is the part after #, which browsers never send to a server. Anyone with the full URL can claim the funds. Share it over a private channel and never log it.
A link someone already claimed throws link.claimed. The creator can claim their own unclaimed link to take the money back.

Request a payment

label is free text up to 32 bytes, shown to the payer and never verified. The payment arrives as a private note in the requester’s balance.

Decode without an account

decodeClaimablePaymentLink(url) and decodePaymentRequestLink(fragment) read a link’s token and amount without opening an account, for example to render a preview. The fragment still carries the secret, so treat decoded data as sensitive.

Errors