Docs/Guides
Run the whitelist
As the issuer, admit and refuse requests and remove entries, and see the root change with each decision.
This guide is for the issuer, the wallet named in the program's configuration that decides who can be paid. Admitting and removing are transactions that wallet signs. Refusing is a signed message.
You need the issuer wallet, with SOL for network fees and for the small account each admission creates.
#Sign in
App
Open /issuer and press Connect the issuer wallet. The wallet signs a sign-in message. Any wallet other than the configured issuer is refused.
The page then shows the current root and revision, the number of recipients, the Requests waiting, and the Whitelist.
SDK
const state = await liora.signInIssuer(wallet);
// { state: "signed_in", issuer: … } or { state: "refused" }CLI
Issuer commands sign in by themselves from --keypair. Listing the requests needs no key:
liora issuer requestsrequests
id fixture-rowan
wallet EViimyfpZdQJtspZ3ZGKjja7ms1qJymVh5dsT6JrYSF4
handle rowan
metaAddress liora:1:818c38b64a0b498c277d851d1ec9a29361e7f01094681ec65a40ce3192a99f90b4a34070fd972d0c51615458d787457ef3a8ae50cbaacb8f02949ba99830a825
status requested
leafIndex null
leaf null
updatedAt 2026-11-25T00:00:00.000Z#Decide on a request
Each request shows the handle asked for, the wallet that asked and when. What you check before admitting someone is yours to define.
App
In the Requests table, press Admit or Refuse on the row. Admit asks the wallet to sign a transaction. Refuse asks it to sign a message.
After an admission the row moves to the Whitelist table with its leaf number, and the root and the revision at the top change.
SDK
const { requests } = await liora.requests();
const { revision } = await liora.whitelist();
const admitted = await liora.admit(requests[0].id, revision);{ "status": "whitelisted", "leafIndex": 1, "revision": 2, "size": 2, "acceptedRoots": 2 }The example keeps the fields that changed, from the entry and the whitelist the call returns. refuse(id, revision) returns the entry with status refused and the whitelist as it was.
CLI
liora issuer admit <request-id> <revision> --keypair issuer.json
liora issuer refuse <request-id> <revision> --keypair issuer.jsonEvery decision carries the whitelist revision you read. If someone was admitted or removed since, the revision has moved and your decision is rejected with RevisionChanged, and you decide again on the current state.
#Remove an entry
App
In the Whitelist table, press Remove on the row and approve the transaction.
SDK
const removed = await liora.remove(entryId, revision);{ "status": "removed", "revision": 3, "size": 1, "acceptedRoots": 1 }CLI
liora issuer remove <request-id> <revision> --keypair issuer.json#What each decision does
| Decision | On chain | Roots accepted afterwards | The recipient |
|---|---|---|---|
| Admit | A leaf at the next index, an entry account, a new root | The new root and the earlier ones, up to 32 | Can be paid from now on |
| Refuse | Nothing | Unchanged | Stays unpayable |
| Remove | The leaf cleared, a new root | The new root alone | Cannot be paid from the moment it confirms |
A removal also stops payments that were proved before it and not yet confirmed: their root is no longer accepted. Payments the recipient already received stay theirs, stay spendable and stay readable by the auditor.
A removed spend key cannot be admitted a second time. The recipient registers again from another wallet, which has other keys.
Anyone can watch the result on the ledger, which shows the recipient count, the current root and the revision.
#If it fails
| What you see | Why | Next |
|---|---|---|
Refused at sign-in, ISSUER_REQUIRED | The wallet is not the configured issuer | Connect the issuer wallet |
RevisionChanged, CONFLICT | The whitelist changed after you read it | Read the requests and the revision again |
InactiveEntry | The entry was already removed | Nothing to do |
INDEXER_PENDING | Your transaction confirmed and the directory has not shown it yet | Wait. Do not sign it again |