DocsRun the whitelist

DocsGuides21 of 33 · 3 min read

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

ts
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:

bash
liora issuer requests
requests
  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

ts
const { requests } = await liora.requests();
const { revision } = await liora.whitelist();

const admitted = await liora.admit(requests[0].id, revision);
json
{ "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

bash
liora issuer admit <request-id> <revision> --keypair issuer.json
liora issuer refuse <request-id> <revision> --keypair issuer.json

Every 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

ts
const removed = await liora.remove(entryId, revision);
json
{ "status": "removed", "revision": 3, "size": 1, "acceptedRoots": 1 }

CLI

bash
liora issuer remove <request-id> <revision> --keypair issuer.json

#What each decision does

DecisionOn chainRoots accepted afterwardsThe recipient
AdmitA leaf at the next index, an entry account, a new rootThe new root and the earlier ones, up to 32Can be paid from now on
RefuseNothingUnchangedStays unpayable
RemoveThe leaf cleared, a new rootThe new root aloneCannot 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 seeWhyNext
Refused at sign-in, ISSUER_REQUIREDThe wallet is not the configured issuerConnect the issuer wallet
RevisionChanged, CONFLICTThe whitelist changed after you read itRead the requests and the revision again
InactiveEntryThe entry was already removedNothing to do
INDEXER_PENDINGYour transaction confirmed and the directory has not shown it yetWait. Do not sign it again