API
Every route of the Plaza API with its request, response and errors, generated from the contract.
The API builds transactions, relays private spends and serves what the program has indexed. It never sees holder keys: the browser derives them, scans for notes and proves membership itself. The same routes run in two modes, the live API and the fixture server, which answers with deterministic sample data for building a frontend.
| Mode | Default address |
|---|---|
| Live API | http://127.0.0.1:5902 |
| Fixture server | http://127.0.0.1:5903 |
The OpenAPI document is served at GET /openapi.json.
Conventions
- Bodies are JSON. Requests reject fields the schema doesn't name; responses may carry extra fields and new enum values, so read what you know and ignore the rest.
- Amounts, fees, slots, nonces and field elements are decimal strings. Do arithmetic in
BigInt. Fieldis a BN254 scalar as a decimal string, below21888242871839275222246405745257275088548364400416034343698204186575808495617.Addressis a base58 public key of 32 bytes,Signaturea base58 signature of 64 bytes,Timestampan ISO 8601 time in UTC.- SOL is addressed by the wrapped SOL mint,
So11111111111111111111111111111111111111112. - Every failure returns the error envelope with an HTTP status. The codes are on Errors.
Typed client
@plaza/contract holds the zod schemas and a typed client over these routes. Each method returns the parsed response and throws ApiClientError with status, code and body.error on a failure.
import { createClient, ApiClientError } from '@plaza/contract'
const api = createClient('http://127.0.0.1:5902')
const [set] = await api.sets()
if (set?.currentRoot) {
const { leaves } = await api.leaves(set.id, set.currentRoot.root)
}| Method | Route |
|---|---|
health | GET /health |
config | GET /config |
counts | GET /counts |
mints | GET /mints |
depositTree | GET /deposit-tree |
sets | GET /sets |
set | GET /sets/{asp} |
leaves | GET /sets/{asp}/roots/{root}/leaves |
openManifest | GET /manifests/open-set |
labelStatus | POST /labels/status |
venues | GET /venues |
destination | GET /venues/{address} |
deposit | POST /transactions/deposit/build |
ragequit | POST /transactions/ragequit/build |
registerAsp | POST /transactions/register_asp/build |
publishRoot | POST /transactions/publish_root/build |
registerVenue | POST /transactions/register_venue/build |
setAccepted | POST /transactions/set_accepted/build |
submit | POST /transactions/submit |
relay | POST /relay |
follow | GET /transactions/{signature} |
proof | GET /proof/{signature} |
preview | GET /fixture/app |
devWallet | GET /dev/wallet |
The client also has artifactUrl(file) for the circuit files and rpcUrl, indexerUrl and proverUrl, the Rings proxies described under Circuit files and Rings proxies.
Service
GET /health
Whether the service is up and which mode it runs in.
Returns Health
statusstringfixtureon the fixture server. On the live API,readyonce the program, indexer and circuit files are in place,waitingbefore.
GET /config
The chain settings a client needs to build a spend: the fee rate and recipient the intent commits to, the relayer, and the root window.
Returns ChainConfig
clusterstringlocalnet,devnetormainnet.feeBpsinteger- The withdrawal fee in basis points, as the program's
Configholds it. feeRecipientAddress- Receives the withdrawal fee.
relayerAddress- The fee payer of relayed spends.
rootWindowinteger- Roots each ASP keeps.
{
"cluster": "localnet",
"feeBps": 10,
"feeRecipient": "C2E4zx7ag3YhXJRo69p6m9w447CLrUtJntGchxZ3pUbh",
"relayer": "76epdQEtw8cUg8zRCLBoAvLzeSTfcDjCLToVgAh2pexR",
"rootWindow": 32
}GET /counts
The three live counts the landing shows.
Returns Counts
depositsinteger- Deposits indexed from the program.
setsinteger- Registered association sets.
spendsinteger- Transfers, withdrawals and ragequits indexed from the program.
{
"deposits": 4,
"sets": 1,
"spends": 3
}GET /mints
The mints the pool takes, with decimals.
Returns an array of Mint
mintAddress- The mint address. SOL is listed under the wrapped SOL mint.
symbolstring- Display symbol.
decimalsinteger- Decimals for turning base units into a display amount.
[
{
"mint": "So11111111111111111111111111111111111111112",
"symbol": "SOL",
"decimals": 9
},
{
"mint": "D9kWAuJFHUQWQerdcyr9dZ2tAPjtbbin6aatJHiMoX3R",
"symbol": "USDC",
"decimals": 6
}
]Deposits
GET /deposit-tree
Every deposit with its label inputs, in tree order, and the current root. A ragequit proves against this tree.
Returns DepositTree
rootField- The deposit tree's current root.
depositsobject[]- Every deposit, in tree order.
deposits[].labelField- The label.
deposits[].depositorAddress- The depositor.
deposits[].mintAddress- The mint.
deposits[].amountu64- Base units.
deposits[].slotu64- The slot the deposit executed in.
deposits[].nonceu64- The deposit counter it used.
{
"root": "7853200120776062878684798364095072458815029376092732009249414926327459813530",
"deposits": []
}Sets
GET /sets
Every registered association set with its current root and the venues that accept it.
Returns an array of SetSummary
idAddress- The ASP account address. Every set route takes this as
asp. authorityAddress- The wallet that publishes this set's roots.
namestring- Display name, 1 to 96 characters.
currentRootobject | null- The newest root, or
nullbefore the first publish. currentRoot.rootField- The Merkle root of approved labels.
currentRoot.membersinteger- Labels under this root.
currentRoot.slotu64- Slot the root was published in.
currentRoot.timeTimestamp- Block time of that slot, UTC.
currentRoot.signatureSignature- The publishing transaction.
currentRoot.activeboolean- Whether the root is still in the ASP's window, so a spend can prove against it. It turns
falsewhen newer roots push the root out or the ASP clears its window. memberCountinteger- Labels under the current root.
policystring- The policy line from the set's manifest. For a set other than the Open Set it is empty until the leaves of one of its roots have been requested.
manifestUristring- Where the manifest is served.
venuesobject[]- Venues that accept this set.
venues[].authorityAddress- The wallet that registered the venue and may change its accepted sets.
venues[].depositAddressAddress- Where withdrawals to this venue arrive. A withdrawal to this address must prove membership in one of
acceptedAsps. venues[].namestring- Display name, 1 to 96 characters.
venues[].acceptedAspsAddress[]- ASP accounts whose roots this venue accepts.
[
{
"id": "7xGeZY1kZwFg38bq6cZ29fdtgGoa2wyrBhtXCYBJq1ZM",
"authority": "7T7dkQ2cQdHtFhFjXTonckPHwKYCjCuh75DLRrLtPazU",
"name": "Open Set",
"policy": "Approves deposits after a screening delay and a local blocklist check.",
"currentRoot": {
"root": "7853200120776062878684798364095072458815029376092732009249414926327459813530",
"members": 2,
"slot": "120",
"time": "2026-11-23T00:10:00.000Z",
"signature": "2aLim4hUTxFct4kqpCUBR2HAezCXgih9PqbVve9RaSnYb18T1sTCpc9hA5PjWNe3aMCNdJUkNDvC6XQBmhdoH2Q5",
"active": true
},
"memberCount": 2,
"manifestUri": "http://127.0.0.1:5903/manifests/open-set",
"venues": [
{
"authority": "9hxm57QorSpiZSWN7rxXaBGxa2wi3BN74NwuaBWkN3VZ",
"name": "Plaza Desk",
"depositAddress": "6oMn6T9QyxRRiWCai8b1zD7KrmJgHqRkxsZ3qYQMQTbL",
"acceptedAsps": [
"7xGeZY1kZwFg38bq6cZ29fdtgGoa2wyrBhtXCYBJq1ZM"
]
}
]
}
]GET /sets/{asp}
One set with its whole root history.
Path
aspAddressrequired- The ASP account address.
Returns SetDetail
idAddress- The ASP account address. Every set route takes this as
asp. authorityAddress- The wallet that publishes this set's roots.
namestring- Display name, 1 to 96 characters.
currentRootobject | null- The newest root, or
nullbefore the first publish. currentRoot.rootField- The Merkle root of approved labels.
currentRoot.membersinteger- Labels under this root.
currentRoot.slotu64- Slot the root was published in.
currentRoot.timeTimestamp- Block time of that slot, UTC.
currentRoot.signatureSignature- The publishing transaction.
currentRoot.activeboolean- Whether the root is still in the ASP's window, so a spend can prove against it. It turns
falsewhen newer roots push the root out or the ASP clears its window. memberCountinteger- Labels under the current root.
policystring- The policy line from the set's manifest. For a set other than the Open Set it is empty until the leaves of one of its roots have been requested.
manifestUristring- Where the manifest is served.
venuesobject[]- Venues that accept this set.
venues[].authorityAddress- The wallet that registered the venue and may change its accepted sets.
venues[].depositAddressAddress- Where withdrawals to this venue arrive. A withdrawal to this address must prove membership in one of
acceptedAsps. venues[].namestring- Display name, 1 to 96 characters.
venues[].acceptedAspsAddress[]- ASP accounts whose roots this venue accepts.
rootsobject[]- Every published root, newest first.
roots[].rootField- The Merkle root of approved labels.
roots[].membersinteger- Labels under this root.
roots[].slotu64- Slot the root was published in.
roots[].timeTimestamp- Block time of that slot, UTC.
roots[].signatureSignature- The publishing transaction.
roots[].activeboolean- Whether the root is still in the ASP's window, so a spend can prove against it. It turns
falsewhen newer roots push the root out or the ASP clears its window.
{
"id": "7xGeZY1kZwFg38bq6cZ29fdtgGoa2wyrBhtXCYBJq1ZM",
"authority": "7T7dkQ2cQdHtFhFjXTonckPHwKYCjCuh75DLRrLtPazU",
"name": "Open Set",
"policy": "Approves deposits after a screening delay and a local blocklist check.",
"currentRoot": {
"root": "7853200120776062878684798364095072458815029376092732009249414926327459813530",
"members": 2,
"slot": "120",
"time": "2026-11-23T00:10:00.000Z",
"signature": "2aLim4hUTxFct4kqpCUBR2HAezCXgih9PqbVve9RaSnYb18T1sTCpc9hA5PjWNe3aMCNdJUkNDvC6XQBmhdoH2Q5",
"active": true
},
"memberCount": 2,
"manifestUri": "http://127.0.0.1:5903/manifests/open-set",
"venues": [
{
"authority": "9hxm57QorSpiZSWN7rxXaBGxa2wi3BN74NwuaBWkN3VZ",
"name": "Plaza Desk",
"depositAddress": "6oMn6T9QyxRRiWCai8b1zD7KrmJgHqRkxsZ3qYQMQTbL",
"acceptedAsps": [
"7xGeZY1kZwFg38bq6cZ29fdtgGoa2wyrBhtXCYBJq1ZM"
]
}
],
"roots": [
{
"root": "7853200120776062878684798364095072458815029376092732009249414926327459813530",
"members": 2,
"slot": "120",
"time": "2026-11-23T00:10:00.000Z",
"signature": "2aLim4hUTxFct4kqpCUBR2HAezCXgih9PqbVve9RaSnYb18T1sTCpc9hA5PjWNe3aMCNdJUkNDvC6XQBmhdoH2Q5",
"active": true
},
{
"root": "18423194802802147121294641945063302532319431080857859605204660473644265519999",
"members": 1,
"slot": "100",
"time": "2026-11-23T00:00:00.000Z",
"signature": "WdmbN9jeAZvraso8H6GFw8MCNKx9B42R1YPoNuhQHCKVMoPYu9mxYBuuSkXGGCat3B25sRNPn8ZaNS8yMAqs3zA",
"active": true
}
]
}GET /sets/{asp}/roots/{root}/leaves
Every label under one root, in tree order. The client builds its membership path from this list, so it never tells the API which label it holds.
For a set other than the Open Set, the first request for a root makes the API fetch the manifest at the set's registered URI. It keeps the leaves only if the document's SHA-256 equals the manifest_hash published with the root, the leaf count equals members, and the leaves hash to the root. The set's policy text is stored in the same step. Until a manifest passes, the route answers NOT_READY.
Path
aspAddressrequired- The ASP account address.
rootFieldrequired- A root of that set.
Returns Leaves
aspAddress- The ASP account.
rootField- The root these leaves hash to.
leavesField[]- Every label under the root, in tree order. Build a membership path locally from this list.
{
"asp": "7xGeZY1kZwFg38bq6cZ29fdtgGoa2wyrBhtXCYBJq1ZM",
"root": "7853200120776062878684798364095072458815029376092732009249414926327459813530",
"leaves": [
"1",
"2"
]
}GET /manifests/open-set
The Open Set's manifest.
Returns Manifest
namestring- The set's name.
policystring- What the set approves.
authorityAddress- The ASP authority that publishes under this manifest.
{
"authority": "7T7dkQ2cQdHtFhFjXTonckPHwKYCjCuh75DLRrLtPazU",
"name": "Open Set",
"policy": "Approves deposits after a screening delay and a local blocklist check."
}POST /labels/status
Each label's status in every set, for up to 512 labels at once. The app calls this after a scan.
Body
labelsField[]required- Labels to look up, up to 512.
Returns an array of Labels
labelField- The label asked about.
setsobject[]- One entry per registered set.
sets[].aspAddress- The ASP account.
sets[].statusstringapproved,pendingorrejectedin that set.
Venues
GET /venues
Every registered venue.
Returns an array of Venue
authorityAddress- The wallet that registered the venue and may change its accepted sets.
depositAddressAddress- Where withdrawals to this venue arrive. A withdrawal to this address must prove membership in one of
acceptedAsps. namestring- Display name, 1 to 96 characters.
acceptedAspsAddress[]- ASP accounts whose roots this venue accepts.
[
{
"authority": "9hxm57QorSpiZSWN7rxXaBGxa2wi3BN74NwuaBWkN3VZ",
"name": "Plaza Desk",
"depositAddress": "6oMn6T9QyxRRiWCai8b1zD7KrmJgHqRkxsZ3qYQMQTbL",
"acceptedAsps": [
"7xGeZY1kZwFg38bq6cZ29fdtgGoa2wyrBhtXCYBJq1ZM"
]
}
]GET /venues/{address}
Whether an address is a venue's deposit address, and which sets that venue accepts. The app asks this when a withdrawal destination is typed.
Path
addressAddressrequired- Any address.
Returns Destination
venueobject | null- The venue registered at this address, or
nullwhen the address is not a venue. venue.authorityAddress- The wallet that registered the venue and may change its accepted sets.
venue.depositAddressAddress- Where withdrawals to this venue arrive. A withdrawal to this address must prove membership in one of
acceptedAsps. venue.namestring- Display name, 1 to 96 characters.
venue.acceptedAspsAddress[]- ASP accounts whose roots this venue accepts.
{
"venue": {
"authority": "9hxm57QorSpiZSWN7rxXaBGxa2wi3BN74NwuaBWkN3VZ",
"name": "Plaza Desk",
"depositAddress": "6oMn6T9QyxRRiWCai8b1zD7KrmJgHqRkxsZ3qYQMQTbL",
"acceptedAsps": [
"7xGeZY1kZwFg38bq6cZ29fdtgGoa2wyrBhtXCYBJq1ZM"
]
}
}Building transactions
POST /transactions/deposit/build
Builds a deposit for the depositor to sign: the label leaf and the deposit into SPP.
Body
depositorAddressrequired- The wallet that signs and pays. The label commits to it, and a ragequit returns funds here.
mintAddressrequired- The mint to deposit. Use the wrapped SOL mint for SOL.
amountu64 > 0required- Base units, greater than zero.
recipientstringrequired- The shielded address that receives the note.
nonceu64- Ignored by the program, which uses its own deposit counter. Optional.
Returns Build
transactionBase64base64- The unsigned transaction for the wallet to sign.
lastValidBlockHeightu64- The transaction expires after this block height.
versionstringv1for Rings money transactions (deposit, ragequit),0for ASP and venue management.fixturebooleantruewhen the fixture server built marker bytes instead of a real transaction.
POST /transactions/ragequit/build
Builds a public exit of a note to its original depositor, at full value.
Body
depositorAddressrequired- The original depositor. Funds return to this address.
labelFieldrequired- The note's label.
publicExitBase64base64required- The public exit data the client builds for the note. The SDK relays ragequits through
POST /relayinstead.
Returns Build
transactionBase64base64- The unsigned transaction for the wallet to sign.
lastValidBlockHeightu64- The transaction expires after this block height.
versionstringv1for Rings money transactions (deposit, ragequit),0for ASP and venue management.fixturebooleantruewhen the fixture server built marker bytes instead of a real transaction.
POST /transactions/register_asp/build
Builds the transaction that registers an ASP account.
Body
authorityAddressrequired- The wallet that will publish the set's roots. It signs.
namestringrequired- Display name, 1 to 96 characters.
manifestUriURLrequired- An http or https URL, up to 512 bytes, serving the set's manifest.
Returns Build
transactionBase64base64- The unsigned transaction for the wallet to sign.
lastValidBlockHeightu64- The transaction expires after this block height.
versionstringv1for Rings money transactions (deposit, ragequit),0for ASP and venue management.fixturebooleantruewhen the fixture server built marker bytes instead of a real transaction.
POST /transactions/publish_root/build
Builds the transaction that publishes a new root for an ASP. The API checks that the leaves hash to the root and, unless manifestHash is given, that the manifest at the registered URI lists the same leaves.
Body
authorityAddressrequired- The ASP authority. It signs.
aspAddressrequired- The ASP account.
rootFieldrequired- The new root.
leavesField[]required- The ordered labels the root hashes to. The leaves route serves them from the set's manifest.
manifestUriURLrequired- The manifest document this root is published under, up to 512 bytes.
manifestHashstring- SHA-256 of the manifest document published with this root, as 64 lowercase hex characters. It goes on chain as
manifest_hash.
Returns Build
transactionBase64base64- The unsigned transaction for the wallet to sign.
lastValidBlockHeightu64- The transaction expires after this block height.
versionstringv1for Rings money transactions (deposit, ragequit),0for ASP and venue management.fixturebooleantruewhen the fixture server built marker bytes instead of a real transaction.
POST /transactions/register_venue/build
Builds the transaction that registers a venue with its deposit address and accepted sets.
Body
authorityAddressrequired- The wallet that registered the venue and may change its accepted sets.
depositAddressAddressrequired- Where withdrawals to this venue arrive. A withdrawal to this address must prove membership in one of
acceptedAsps. namestringrequired- Display name, 1 to 96 characters.
acceptedAspsAddress[]required- ASP accounts whose roots this venue accepts.
Returns Build
transactionBase64base64- The unsigned transaction for the wallet to sign.
lastValidBlockHeightu64- The transaction expires after this block height.
versionstringv1for Rings money transactions (deposit, ragequit),0for ASP and venue management.fixturebooleantruewhen the fixture server built marker bytes instead of a real transaction.
POST /transactions/set_accepted/build
Builds the transaction that replaces a venue's accepted sets.
Body
authorityAddressrequired- The venue's wallet. It signs.
depositAddressAddressrequired- The venue's deposit address.
acceptedAspsAddress[]required- The full new list. It replaces the old one.
Returns Build
transactionBase64base64- The unsigned transaction for the wallet to sign.
lastValidBlockHeightu64- The transaction expires after this block height.
versionstringv1for Rings money transactions (deposit, ragequit),0for ASP and venue management.fixturebooleantruewhen the fixture server built marker bytes instead of a real transaction.
Sending and following
POST /transactions/submit
Sends a wallet-signed transaction and returns its signature to follow.
Body
signedTransactionBase64base64required- The wallet-signed transaction from a build.
Returns Follow
signatureSignature- The transaction signature.
statusstring- Where the transaction is:
pending,confirmedorfailed. failureobject | null- The error body when the transaction failed, else
null. failure.codestring- The stable error code.
failure.messagestring- A sentence a UI can show.
failure.retryableboolean- Whether the same request can succeed later.
failure.stagestring- The flow stage that failed.
failure.programErrorobject- The program that refused, on simulation and chain failures.
failure.programError.programIdAddress- The refusing program.
failure.programError.namestring- Its error name.
failure.programError.numberinteger- Its error number.
failure.fieldErrorsobject- Messages per request field, on validation failures.
POST /relay
Sends a proven transfer, withdrawal or ragequit with the relayer as fee payer and signer, so the holder's wallet appears nowhere in the transaction.
A token withdrawal is relayed only into a token account the destination already holds. When the destination has no token account for the mint, the route answers VALIDATION_ERROR with "The destination has no token account for this mint. Create it first, then withdraw." A SOL payout that would leave an account under the rent-exempt minimum fails with SIMULATION_FAILED and a message that says so.
The body takes one of two shapes.
Proof and SPP transaction, encoded separately
kind'transfer' | 'withdraw'required- What the spend does.
aspAddressrequired- The association set the proof is for.
rootFieldrequired- A root in that set's window.
policyProofBase64base64required- The Groth16 membership proof and its public signals.
sppTransactBase64base64required- The proven SPP transaction the program passes on to SPP.
A whole Plaza instruction, as the SDK sends it
kind'transfer' | 'withdraw' | 'ragequit'requiredtransferorwithdrawfortransact,ragequitforragequit.instructionobjectrequired- The Plaza instruction the client built and proved. The relayer adds itself as fee payer and signs.
instruction.programAddressAddressrequired- The Plaza program.
instruction.accountsobject[]required- The instruction's accounts in order, 1 to 128.
instruction.accounts[].addressAddressrequired- The account.
instruction.accounts[].roleintegerrequired- 0 read-only, 1 writable, 2 read-only signer, 3 writable signer.
instruction.dataBase64base64required- The instruction data.
Returns Follow
signatureSignature- The transaction signature.
statusstring- Where the transaction is:
pending,confirmedorfailed. failureobject | null- The error body when the transaction failed, else
null. failure.codestring- The stable error code.
failure.messagestring- A sentence a UI can show.
failure.retryableboolean- Whether the same request can succeed later.
failure.stagestring- The flow stage that failed.
failure.programErrorobject- The program that refused, on simulation and chain failures.
failure.programError.programIdAddress- The refusing program.
failure.programError.namestring- Its error name.
failure.programError.numberinteger- Its error number.
failure.fieldErrorsobject- Messages per request field, on validation failures.
GET /transactions/{signature}
The status of a submitted or relayed transaction.
Path
signatureSignaturerequired- A transaction signature.
Returns Follow
signatureSignature- The transaction signature.
statusstring- Where the transaction is:
pending,confirmedorfailed. failureobject | null- The error body when the transaction failed, else
null. failure.codestring- The stable error code.
failure.messagestring- A sentence a UI can show.
failure.retryableboolean- Whether the same request can succeed later.
failure.stagestring- The flow stage that failed.
failure.programErrorobject- The program that refused, on simulation and chain failures.
failure.programError.programIdAddress- The refusing program.
failure.programError.namestring- Its error name.
failure.programError.numberinteger- Its error number.
failure.fieldErrorsobject- Messages per request field, on validation failures.
{
"signature": "2XYmj88ycnSthV9ALZujQLFN3SHRr1j7WmdVzeYwefTDUEnjQDvMpTSt2bBnwLXAgQ9hdP6ExhEurSiAZd9kB16v",
"status": "confirmed",
"failure": null
}GET /proof/{signature}
A spend's public facts, as /proof/[sig] shows them.
Path
signatureSignaturerequired- A transaction signature.
Returns Receipt
signatureSignature- The spend's signature.
statusstring- The transaction status.
spendobject | null- The spend's public facts, or
nullwhile pending. spend.kindstringtransfer,withdraworragequit.spend.aspAddress | null- The set the spend proved against.
nullfor a ragequit. spend.rootField | null- The root proven.
nullfor a ragequit. spend.setNamestring | null- The set's name.
nullfor a ragequit. spend.nullifiersField[]- Nullifiers of the spent notes.
spend.mintAddress | null- The mint paid out.
nullfor a private transfer. spend.amountu64 | null- Gross amount in base units. The destination receives
amount - fee.nullfor a private transfer. spend.destinationAddress | null- Where the funds went.
nullfor a private transfer. spend.feeu64 | null- The protocol fee in base units.
0for a ragequit,nullfor a private transfer. spend.networkFeeu64- Lamports the fee payer paid the network.
spend.slotu64- The slot it landed in.
spend.timeTimestamp- Block time, UTC.
{
"signature": "2XYmj88ycnSthV9ALZujQLFN3SHRr1j7WmdVzeYwefTDUEnjQDvMpTSt2bBnwLXAgQ9hdP6ExhEurSiAZd9kB16v",
"status": "confirmed",
"spend": {
"kind": "withdraw",
"asp": "7xGeZY1kZwFg38bq6cZ29fdtgGoa2wyrBhtXCYBJq1ZM",
"root": "7853200120776062878684798364095072458815029376092732009249414926327459813530",
"setName": "Open Set",
"nullifiers": [
"102"
],
"mint": "So11111111111111111111111111111111111111112",
"amount": "1000000000",
"destination": "6oMn6T9QyxRRiWCai8b1zD7KrmJgHqRkxsZ3qYQMQTbL",
"fee": "1000000",
"networkFee": "5000",
"slot": "128",
"time": "2026-11-23T00:11:00.000Z"
}
}Fixture server and local development
GET /fixture/app
Fixture server only. The browser state for the chosen scenario, for building the app without a wallet.
Returns Preview
statestring- The app state this scenario shows.
notesobject[]- Sample notes with their labels.
notes[].labelField- The note's label.
notes[].mintAddress- The note's mint.
notes[].amountu64- Base units.
signatureSignature | null- A sample signature, or
null. failureobject | null- A sample failure body, or
null. failure.codestring- The stable error code.
failure.messagestring- A sentence a UI can show.
failure.retryableboolean- Whether the same request can succeed later.
failure.stagestring- The flow stage that failed.
failure.programErrorobject- The program that refused, on simulation and chain failures.
failure.programError.programIdAddress- The refusing program.
failure.programError.namestring- Its error name.
failure.programError.numberinteger- Its error number.
failure.fieldErrorsobject- Messages per request field, on validation failures.
{
"state": "confirmed",
"notes": [
{
"label": "1",
"mint": "So11111111111111111111111111111111111111112",
"amount": "1000000000"
},
{
"label": "2",
"mint": "D9kWAuJFHUQWQerdcyr9dZ2tAPjtbbin6aatJHiMoX3R",
"amount": "5000000"
},
{
"label": "3",
"mint": "So11111111111111111111111111111111111111112",
"amount": "1000000000"
},
{
"label": "4",
"mint": "So11111111111111111111111111111111111111112",
"amount": "1000000000"
}
],
"signature": "2XYmj88ycnSthV9ALZujQLFN3SHRr1j7WmdVzeYwefTDUEnjQDvMpTSt2bBnwLXAgQ9hdP6ExhEurSiAZd9kB16v",
"failure": null
}GET /dev/wallet
Localnet and loopback only. A funded development wallet the app registers as a test wallet.
Returns DevWallet
clusterstring- Always
localnet. addressAddress- The development wallet's address.
secretKeyinteger[]- Its 64-byte keypair, for a local test wallet in the browser.
Circuit files and Rings proxies
The membership circuit's files are served for the browser prover:
| Route | File |
|---|---|
GET /artifacts/membership.wasm | The witness generator |
GET /artifacts/membership.zkey | The Groth16 proving key |
GET /artifacts/verification_key.json | The verifying key |
/rings/indexer/* and /rings/prover/* forward GET and POST, with the nested path kept, to the Rings indexer (Photon) and the SPP prover. The browser's Rings client points at these two so it needs no other origin.
POST /rings/rpc relays Solana JSON-RPC reads to the cluster for the same client. It takes one request per call, with no batches, and each client gets 120 reads a minute. Past that it answers HTTP 429 with a Retry-After header and JSON-RPC error -32005. It doesn't relay sendTransaction or simulateTransaction: transactions go through POST /transactions/submit and POST /relay.
Fixture scenarios
On the fixture server, pick a scenario with the X-Fixture header or ?fixture=; the header wins. Any error code also works as a scenario and forces that envelope and status. Send the same X-Fixture-Session header across build, submit and follow calls so one tab keeps one submission history.
| Scenario | What comes back |
|---|---|
default | A confirmed withdrawal and a populated directory |
confirmed | Same as default |
empty | Zero counts, no sets, no venues, an empty wallet |
loading | A delayed response |
locked | The app before unlock |
scanning | The app while the scanner runs |
proving | The app while the proof is made |
relaying | The app while the relayer sends; transactions stay pending |
pending | Pending label statuses, a pending signature and receipt |
rejected | Rejected label statuses |
not-found | The NOT_FOUND envelope |
transfer | A transfer receipt |
withdraw | A withdrawal receipt |
ragequit | A ragequit receipt |
build-failed | BUILD_FAILED at the build stage |
wallet-rejected | WALLET_REJECTED at the wallet stage |
simulation-failed | SIMULATION_FAILED at the simulation stage |
send-failed | SEND_FAILED at the send stage |
chain-refused | CHAIN_REFUSED with a sample program error name |
In fixture data, labels 1 and 2 are approved in the Open Set, 3 is pending and 4 rejected. A fixture build returns marker bytes: pass transactionBase64 straight to submit as signedTransactionBase64.