Docs/Guides
Pay
Pay a whitelisted recipient from your private balance, and read what the payment left on chain.
A payment moves value from your notes to a stealth address made for this one payment. You need to be unlocked, with a private balance that covers the amount and the two flat fees, and a recipient who is whitelisted.
#Send it
App
Open Pay.
Name the recipient
Enter a handle or a meta-address. The app looks it up and shows Whitelisted with the handle and meta-address it found, or Not whitelisted.
Enter the amount
In SOL. The line under it gives the two flat fees as one sum.
Prove and send
Press Prove and send. The steps of the proof tick off as your device completes them, then the payment is sent and confirmed.
The panel What the public sees fills with the receipt and is marked On chain. Open in the ledger shows the same payment on its public page.
SDK
const found = await liora.lookup("mira");
if (found.state !== "found") throw new Error("not whitelisted");
const result = await liora.pay(
{ recipient: "mira", assetId: "1", amountLamports: "250000000" },
(state) => render(state),
);lookup is optional: pay does it too and ends in failed with NOT_WHITELISTED when there is nobody to pay. The callback receives each state:
["pending", "proving membership 0/3", "proving liora 1/3", "proving rings 2/3", "proving rings 3/3", "sent", "confirmed"]That is fixture mode, which stands in for the proofs with three steps of its own. A real payment reports four, in the order they happen: the whitelist path, the Rings proof, the Liora proof and a local check.
CLI
liora pay mira 250000000 --keypair payer.jsonstate confirmed
kind pay
signature 3cceS4ApB8kPaxRWvmFdD36uq5Ayo3GupH4bcJZQpiBJDHDih65F6dpgs382S7qeE565Ej4FsbmFfGirVz4pvwE
receipt
stealthAddress c62735922c1c7bfba7eb3e194be987e1806672432231448785bbfc864296cba0
ephemeralKey 648fc85b4b27f7b42a8e29c3788d0c8f3595ef654a24a7868da8684821bc4895
viewTag 11
auditCiphertext
c1 2ba81de1fc3ac1e798f0e642a82966be11d33e562613d4fc9f3ea616bd307d90
c2 ed35d2b1257bad14ab277443cf5b371987c72f405d96ebf8d69351cd14fb4f2c
whitelistRoot 073b116d9ea244810fb4b574cf9bac61c35d7d8b2a56b60facf9fcd4ae6608a8
signature 3cceS4ApB8kPaxRWvmFdD36uq5Ayo3GupH4bcJZQpiBJDHDih65F6dpgs382S7qeE565Ej4FsbmFfGirVz4pvwE
eventIndex 0
slot 4
blockTime 2026-11-25T14:31:49.162Z
proofVerified trueThe amount is in lamports. The command exits 0 only when the payment confirmed.
#What happened
Lookup
Your device downloaded the directory and found the recipient's meta-address and leaf in it. Nobody was asked about that recipient in particular.
Derivation
It drew a fresh secret and computed the stealth address, the ephemeral key, the view tag and the audit ciphertext.
Proving
It had the Rings proof for the transfer made, by a Rings prover on your machine or by the attested prover, and then made the Liora proof itself: that the hidden recipient is whitelisted and auditable.
Relay
It handed the finished transaction to the relayer, which paid the network fee and sent it. Your wallet signed nothing.
On chain
The program verified the proof, moved the value to the stealth address, paid the two fees and emitted the announcement.
Change from the payment comes back to your own balance as a new note.
#The receipt
The receipt is the payment's announcement: it is all the public can read. Keep the signature: it is how you, the recipient and the auditor refer to this payment on the ledger.
#Afterwards
Your own record of what you sent, with the recipient and the amount, stays on your device. The app lists it under Activity, the SDK returns it from activity(), and the CLI keeps it in .liora/activity/ and prints it with liora activity. The chain does not hold the recipient or the amount, so this record cannot be rebuilt from it.
#If it fails
| What you see | Why | Next |
|---|---|---|
Not whitelisted, NOT_WHITELISTED | The recipient has no active place on the whitelist | They register and the issuer admits them |
INSUFFICIENT_BALANCE | Your spendable notes do not cover the amount and both fees | Deposit, or send less |
PROOF_FAILED | The directory snapshot did not reproduce its own root, or proving failed | Send again |
ROOT_EXPIRED | The whitelist changed while you were paying, and the directory no longer matches the root on chain | Look the recipient up again and pay again |
SIMULATION_FAILED | The relayer's dry run was rejected by the program | Nothing was sent. Scan, then pay again |
CONFIRMATION_FAILED | The transaction was sent and failed | Your notes are unspent. Send again |
A state sent or pending with a followError | Contact was lost after submitting | Follow the signature. Do not send again until you know |