Docs/Reference
CLI
Every command and option of the liora command, with what it prints.
liora is the SDK on a command line. It is installed with the SDK, needs Node 22, and runs one command per invocation: it unlocks from a keypair file, does the one thing, and drops the keys.
liora <command> [arguments] [options]#Commands
| Command | Needs | What it does |
|---|---|---|
liora keys | --keypair | Prints the wallet and its meta-address. |
liora register <handle> | --keypair | Files a registration under the handle. |
liora deposit <lamports> | --keypair | Deposits lamports of public SOL into the private balance. |
liora balance | --keypair | Scans and prints the spendable balance. |
liora pay <handle-or-meta> <lamports> | --keypair | Pays a whitelisted recipient, by handle or meta-address. |
liora scan | --keypair | Prints the payments the wallet's keys open. |
liora withdraw <wallet> <lamports> | --keypair | Pays lamports out to a public wallet. |
liora activity | --keypair | Prints what this wallet sent from this folder, and what it received. |
liora ledger | Prints every payment's announcement. | |
liora audit [recipient] | --auditor-key | Prints each payment with its recipient. With a recipient, only theirs. |
liora issuer requests | Prints the registrations waiting for a decision. | |
liora issuer admit|refuse|remove <request-id> <revision> | --keypair of the issuer | Decides on a registration, against the revision the issuer read. |
liora config | Prints the program's configuration. |
Amounts are whole lamports: 250000000 is 0.25 SOL.
#Options
--keypair <file>- A Solana keypair file: a JSON array of 64 bytes. The wallet of holder and issuer commands.
--auditor-key <file>- A file holding the audit secret as a JSON decimal string.
--api <url>- The API's origin.
--device-prover <url>- A Rings prover running on this machine. Without it, Rings proofs go to the attested prover through the API.
--mode real|fixturerealtalks to the chain through the API.fixturetalks to a fixture server.--session <id>- The fixture session to use, in fixture mode.
--csv- With
audit: write CSV to standard output. --json- Print the result as one line of JSON. Errors too, as
{"error": …}.
#Keys on disk
--keypair names a Solana keypair file. The CLI signs the unlock message with it and derives the same keys the app would derive for that wallet, so a balance held from the app is spendable from the CLI and the other way round.
--auditor-key names a file with the audit secret as a decimal number in JSON quotes.
The CLI keeps a record of what a wallet sent, so that activity can show it later. The records are in .liora/activity/ under the folder the command ran in, one encrypted file per transfer, readable only with the same keypair.
#Output
Without --json a result is printed as indented name value lines. With --json it is one line of JSON, the same object the SDK call returned.
liora keys --keypair payer.jsonstate unlocked
wallet CzjFSHbXGRVVZfDKmyAT1mA9m63nSfBvrHPyyv9hxo9E
metaAddress liora:1:8a1e363a240d7bc035e9096033e3c62416fc2d908af0fef86fda3749b5f7b4207efbb943ccea5a63ba9ce3bd7be6933035207143aa5de55d251abd3dbd7f1306liora register dana --keypair payer.jsonid 00570869-8557-4494-93f2-a59bc9127043
wallet CzjFSHbXGRVVZfDKmyAT1mA9m63nSfBvrHPyyv9hxo9E
handle dana
metaAddress liora:1:8a1e363a240d7bc035e9096033e3c62416fc2d908af0fef86fda3749b5f7b4207efbb943ccea5a63ba9ce3bd7be6933035207143aa5de55d251abd3dbd7f1306
status requested
leafIndex null
leaf null
updatedAt 2026-11-25T14:31:41.027Zliora deposit 2000000000 --keypair payer.jsonstate confirmed
kind deposit
signature 3ie4yhgXrpBv7L6xyEUoJZkxhddrtfPGQdNZ1LxDT7fTfjhWnkTUrQzpX31VE58o2PGYQxJ6cNLTMhGyZeZBcj1Wliora balance --keypair payer.jsonassetId 1
decimals 9
symbol SOL
amountLamports 2000000000liora 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 trueliora activity --keypair payer.jsonstate list
entries
assetId 1
amountLamports 250000000
direction sent
kind pay
status confirmed
signature 3cceS4ApB8kPaxRWvmFdD36uq5Ayo3GupH4bcJZQpiBJDHDih65F6dpgs382S7qeE565Ej4FsbmFfGirVz4pvwE
counterparty mira
assetId 1
amountLamports 2000000000
direction received
kind deposit
status confirmed
signature 3ie4yhgXrpBv7L6xyEUoJZkxhddrtfPGQdNZ1LxDT7fTfjhWnkTUrQzpX31VE58o2PGYQxJ6cNLTMhGyZeZBcj1WThese runs were made in fixture mode, against a fixture server.
#Exit status
A command exits 0 when it did what was asked. deposit, pay and withdraw exit 1 unless the transfer confirmed, and print the final state either way:
liora pay nobody 1000 --keypair payer.jsonstate failed
kind pay
error
code NOT_WHITELISTED
stage proof
message This recipient is outside the active whitelist.Any other failure prints its message to standard error and exits 1. With --json the error is printed as {"error": {"code", "stage", "message"}}. The codes are on Errors.
#Issuer commands
liora issuer requests
liora issuer admit <request-id> <revision> --keypair issuer.json<revision> is the whitelist revision the issuer read before deciding, which the API's GET /v1/whitelist returns. A decision against an older revision is refused.
#Audit
liora audit --auditor-key auditor.json
liora audit mira --auditor-key auditor.json --csv > mira.csvaudit prints every payment with the recipient's decrypted spend key and, where the directory has one, their registration. The CSV adds a spendPublic column to the columns of the SDK's export. Amounts read encrypted.