API
Every endpoint of the Ayo API, with its inputs and what it returns.
The API serves the public registry, the ciphertext each owner decrypts, and unsigned transactions for every action. It holds no viewing keys and no spend keys: everything private is decrypted in the browser or in the agent or service process.
Requests and responses are JSON. Amounts are u64 integers written as decimal strings in the mint's base units. Addresses and signatures are base58. A failed request answers with the error envelope. The machine-readable description is at GET /openapi.json.
Service
The API describes itself and reports which cluster and Ring backend it runs against.
GET /openapi.json
Read the published API description.
Returns ApiDescription.
GET /health
Read API mode, cluster and readiness.
Returns Health.
Registry
Public records from Ayo's program, joined with the ciphertext each owner needs. Amounts appear only inside ciphertext, which the API can't read.
GET /v1/config
Read the public fee configuration.
Returns Config.
GET /v1/counts
Read registry counts.
Returns Counts.
GET /v1/example
Compare public and owner views of a sample tab. The sample tab on the landing page: the same tab as the chain sees it and as its owner sees it.
Returns Example.
GET /v1/wallets/{owner}
Read wallet registration and encrypted outputs.
| Field | Type | What it is |
|---|---|---|
owner | path, address | The owner's Solana wallet address |
Returns Wallet.
GET /v1/agents
List agents with encrypted owner snapshots. Every agent of one owner. Each item carries the agent's record, its tabs, its Ring outputs and nullifiers, its encrypted activity and its chain events.
| Field | Type | What it is |
|---|---|---|
owner | query, address | The owner's Solana wallet address |
Returns AgentList.
GET /v1/agents/{id}
Read an agent snapshot.
| Field | Type | What it is |
|---|---|---|
id | path, address | The account address, or the record ID |
Returns AgentDetail.
GET /v1/agents/{id}/events
Stream agent activity and chain events. Server-sent events: ready once connected, then activity for each new encrypted activity record and chain for each program event on this agent. resync means reload the agent with GET /v1/agents/{id}.
| Field | Type | What it is |
|---|---|---|
id | path, address | The account address, or the record ID |
Returns text/event-stream.
GET /v1/tabs/{id}
Read a tab and encrypted calls.
| Field | Type | What it is |
|---|---|---|
id | path, address | The account address, or the record ID |
Returns TabDetail.
GET /v1/services
Search the service directory.
| Field | Type | What it is |
|---|---|---|
q | query, string, optional | Search text, up to 160 characters |
Returns ServiceList.
GET /v1/services/{id}
Read terms, tabs and encrypted service settlements.
| Field | Type | What it is |
|---|---|---|
id | path, address | The account address, or the record ID |
Returns ServiceDetail.
GET /v1/receipts/{id}
Read one tab and its encrypted settlement. The tab and its shielded settlement transaction. A receipt link carries the per-transaction viewing key in its fragment, which never reaches the API; the browser decrypts transaction.ciphertext with it.
| Field | Type | What it is |
|---|---|---|
id | path, address | The account address, or the record ID |
Returns Receipt.
Activity
The agent and service SDKs post one encrypted record per call. The API stores the ciphertext and serves it back in agent, tab and service reads.
POST /v1/activity
Store one encrypted call record. The id is <tab>:<side>:<sequence>, for example <tab>:agent:1; repeating an id with the same contents returns the stored record, and with different contents fails IDEMPOTENCY_CONFLICT. The record is signed by the signing key of its side (the agent's for agent, the service's for service) over the UTF-8 JSON array ["Ayo/activity/v1", id, tab, agent, service, side, timestamp, ciphertext]; an unsigned request fails UNAUTHORIZED.
Body:
| Field | Type | What it is |
|---|---|---|
id | string | Record ID, chosen by the SDK |
tab | address | The tab account |
agent | address | The agent account |
service | address | The service account |
timestamp | timestamp | Time (ISO 8601, UTC) |
ciphertext | base64 | Ciphertext, base64; decrypts with the recipient's viewing key |
side | "agent" | "service" | agent or service: whose viewing key encrypts the record |
signature | signature, optional | Base58 Ed25519 signature by the agent's or service's signing key over the record (see below) |
Returns ActivityRecord.
Ring reads
Read Ring outputs and shielded transactions under the same method names as Helius's /v1/spr/* RPC, so the browser code is the same on every cluster.
POST /v1/spr/getEncryptedUtxosByTags
Read Ring outputs by tag.
Body:
| Field | Type | What it is |
|---|---|---|
tags | string[] | 1 to 100 tags |
Returns Outputs.
POST /v1/spr/getShieldedTransactionsBySignature
Read a shielded transaction by signature.
Body:
| Field | Type | What it is |
|---|---|---|
signature | signature | Transaction signature |
Returns Transactions.
Build transactions
Each build endpoint returns one or more unsigned v0 transactions for the named action. Sign each with the key in signer, then send it through submit. Where an action moves private funds, your client builds and proves the Ring transaction with its own keys and passes it in ringTransactionBase64; the API never sees a spend key.
POST /v1/build/init-config
Initialize the fee configuration.
Body:
| Field | Type | What it is |
|---|---|---|
admin | address | The key allowed to change the configuration |
feeRecipient | address | The wallet that receives tab fees |
tabFeeLamports | u64 string | The flat fee charged by open_tab, in lamports |
Returns Build.
POST /v1/build/set-config
Update the fee configuration.
Body:
| Field | Type | What it is |
|---|---|---|
admin | address | The key allowed to change the configuration |
feeRecipient | address | The wallet that receives tab fees |
tabFeeLamports | u64 string | The flat fee charged by open_tab, in lamports |
Returns Build.
POST /v1/build/register-wallet
Register a Ring wallet.
Body:
| Field | Type | What it is |
|---|---|---|
owner | address | The owner's Solana wallet address |
ringAddress | string | Ring receiving address, as the Ring adapter serializes it |
ringTransactionBase64 | base64 | The Ring transaction your client built and proved with its own keys, base64 |
Returns Build.
POST /v1/build/deposit
Deposit public funds.
Body:
| Field | Type | What it is |
|---|---|---|
owner | address | The owner's Solana wallet address |
mint | address | The SPL mint the service is paid in |
amount | u64 string | Amount in the mint's base units |
ringTransactionBase64 | base64 | The Ring transaction your client built and proved with its own keys, base64 |
Returns Build.
POST /v1/build/withdraw
Withdraw to a public address.
Body:
| Field | Type | What it is |
|---|---|---|
owner | address | The owner's Solana wallet address |
destination | address | Public address to withdraw to |
mint | address | The SPL mint the service is paid in |
amount | u64 string | Amount in the mint's base units |
ringTransactionBase64 | base64 | The Ring transaction your client built and proved with its own keys, base64 |
Returns Build.
POST /v1/build/create-agent
Register and fund an agent. Returns two transactions: the first registers the agent and sends SOL to its signing key, the second is the confidential transfer of the first allowance. resourceId is the new agent.
Body:
| Field | Type | What it is |
|---|---|---|
owner | address | The owner's Solana wallet address |
index | integer | The agent's derivation index under its owner |
name | string | Display name, 1 to 80 characters |
signingKey | address | The agent's or service's Solana public key, derived from the owner's seed |
ringAddress | string | Ring receiving address, as the Ring adapter serializes it |
topUpLamports | u64 string | SOL sent to the new signing key for its transaction fees (and, for an agent, tab fees), in lamports |
ringTransactionBase64 | base64 | The Ring transaction your client built and proved with its own keys, base64 |
Returns Build.
POST /v1/build/top-up
Transfer a private allowance.
Body:
| Field | Type | What it is |
|---|---|---|
owner | address | The owner's Solana wallet address |
agent | address | The agent account |
ringTransactionBase64 | base64 | The Ring transaction your client built and proved with its own keys, base64 |
Returns Build.
POST /v1/build/set-agent-status
Pause or resume an agent.
Body:
| Field | Type | What it is |
|---|---|---|
owner | address | The owner's Solana wallet address |
agent | address | The agent account |
status | "active" | "paused" | active or paused |
Returns Build.
POST /v1/build/drain
Return agent funds to its owner.
Body:
| Field | Type | What it is |
|---|---|---|
owner | address | The owner's Solana wallet address |
agent | address | The agent account |
ringTransactionBase64 | base64 | The Ring transaction your client built and proved with its own keys, base64 |
Returns Build.
POST /v1/build/register-service
Register service terms.
Body:
| Field | Type | What it is |
|---|---|---|
owner | address | The owner's Solana wallet address |
name | string | Display name, 1 to 80 characters |
endpoint | url | The paid HTTP endpoint, http or https |
pricePerUnit | u64 string | Price of one unit in the mint's base units |
unit | string | What one unit is, such as call or query (1 to 48 characters) |
mint | address | The SPL mint the service is paid in |
ringAddress | string | Ring receiving address, as the Ring adapter serializes it |
settlementWindowSeconds | integer | Seconds after a tab opens before the service may flag it unpaid |
maxUnpaidPerTab | u64 string | Largest cumulative amount the service serves before settlement, in base units |
signingKey | address, optional | The agent's or service's Solana public key, derived from the owner's seed |
index | integer, optional | The agent's derivation index under its owner |
topUpLamports | u64 string, optional | SOL sent to the new signing key for its transaction fees (and, for an agent, tab fees), in lamports |
Returns Build.
POST /v1/build/update-service
Update service terms.
Body:
| Field | Type | What it is |
|---|---|---|
owner | address | The owner's Solana wallet address |
service | address | The service account |
name | string | Display name, 1 to 80 characters |
endpoint | url | The paid HTTP endpoint, http or https |
pricePerUnit | u64 string | Price of one unit in the mint's base units |
unit | string | What one unit is, such as call or query (1 to 48 characters) |
mint | address | The SPL mint the service is paid in |
ringAddress | string | Ring receiving address, as the Ring adapter serializes it |
settlementWindowSeconds | integer | Seconds after a tab opens before the service may flag it unpaid |
maxUnpaidPerTab | u64 string | Largest cumulative amount the service serves before settlement, in base units |
Returns Build.
POST /v1/build/open-tab
Open a tab and pay the configured fee. Built for the agent's signing key, which signs and pays the transaction fee and the tab fee.
Body:
| Field | Type | What it is |
|---|---|---|
agent | address | The agent account |
service | address | The service account |
signingKey | address | The agent's signing key, which signs and pays |
Returns Build.
POST /v1/build/settlement-transfer
Build the confidential settlement transfer.
Body:
| Field | Type | What it is |
|---|---|---|
tab | address | The tab account |
signingKey | address | The agent's signing key |
ringTransactionBase64 | base64 | The Ring transaction your client built and proved with its own keys, base64 |
Returns Build.
POST /v1/build/close-tab
Record a confidential settlement.
Body:
| Field | Type | What it is |
|---|---|---|
tab | address | The tab account |
signingKey | address | The agent's signing key |
settlementSignature | signature | Signature of the settlement transfer |
Returns Build.
POST /v1/build/confirm-tab
Confirm receipt of settlement. Built for the service's signing key, after the service has decrypted the settlement.
Body:
| Field | Type | What it is |
|---|---|---|
owner | address | The owner's Solana wallet address |
tab | address | The tab account |
signingKey | address, optional | The agent's or service's Solana public key, derived from the owner's seed |
Returns Build.
POST /v1/build/flag-unpaid
Publish a signed overdue voucher. Returns a transaction with the Ed25519 precompile instruction for the voucher followed by flag_unpaid, built for the service's signing key.
Body:
| Field | Type | What it is |
|---|---|---|
owner | address | The owner's Solana wallet address |
tab | address | The tab account |
signingKey | address, optional | The agent's or service's Solana public key, derived from the owner's seed |
voucher | object | The last voucher the agent signed on this tab, decoded |
Returns Build.
Submit and follow
Send a signed transaction through the API, or tell it the signature of one your wallet sent, then follow it to finality.
POST /v1/transactions/submit
Submit a signed transaction or its signature. mode: "relay" sends signedTransactionBase64; mode: "wallet-sent" records the signature of a transaction your wallet sent itself.
Body, mode: "relay":
| Field | Type | What it is |
|---|---|---|
buildId | string | The ID of the built transaction |
idempotencyKey | string | Any unique string; repeating it returns the first result |
mode | "relay" | fixture or live |
signedTransactionBase64 | base64 | The transaction after your wallet signed it, base64 |
Body, mode: "wallet-sent":
| Field | Type | What it is |
|---|---|---|
buildId | string | The ID of the built transaction |
idempotencyKey | string | Any unique string; repeating it returns the first result |
mode | "wallet-sent" | fixture or live |
signature | signature | Transaction signature |
Returns TxStatus.
GET /v1/transactions/{id}
Follow a transaction by build ID.
| Field | Type | What it is |
|---|---|---|
id | path, string | The account address, or the record ID |
Returns TxStatus.
Browser relay
Live mode only. The browser reaches Solana and Privacy Rings through the API, so no RPC key ships to the page. Each request is one JSON-RPC 2.0 call of up to 64 KiB, and the relay endpoints together allow each client 600 reads and 30 proof submissions a minute. /rpc accepts getGenesisHash, getAccountInfo, getMultipleAccounts, getProgramAccounts, getLatestBlockhash, getSignaturesForAddress, getSignatureStatuses, getTransaction, getSlot, getBalance. /spr/indexer/{method} accepts the indexer methods getEncryptedUtxosByTags, getShieldedTransactionsByTags, getShieldedTransactionsByNullifiers, getShieldedTransactionsBySignature, getMerkleProofs, getNonInclusionProofs, getUserRecords, with the JSON-RPC method matching the path. /spr/prover/* forwards to the attested Privacy Rings prover. With the local Ring, /rpc reads the local validator and the /spr/ routes answer 404.
POST /rpc
Relay one allowed Solana RPC read.
Returns the upstream JSON-RPC response unchanged.
POST /spr/indexer/getEncryptedUtxosByTags
Read getEncryptedUtxosByTags from the SPR indexer.
Returns the upstream JSON-RPC response unchanged.
POST /spr/indexer/getShieldedTransactionsByTags
Read getShieldedTransactionsByTags from the SPR indexer.
Returns the upstream JSON-RPC response unchanged.
POST /spr/indexer/getShieldedTransactionsByNullifiers
Read getShieldedTransactionsByNullifiers from the SPR indexer.
Returns the upstream JSON-RPC response unchanged.
POST /spr/indexer/getShieldedTransactionsBySignature
Read getShieldedTransactionsBySignature from the SPR indexer.
Returns the upstream JSON-RPC response unchanged.
POST /spr/indexer/getMerkleProofs
Read getMerkleProofs from the SPR indexer.
Returns the upstream JSON-RPC response unchanged.
POST /spr/indexer/getNonInclusionProofs
Read getNonInclusionProofs from the SPR indexer.
Returns the upstream JSON-RPC response unchanged.
POST /spr/indexer/getUserRecords
Read getUserRecords from the SPR indexer.
Returns the upstream JSON-RPC response unchanged.
GET /spr/prover/attestation
Read the prover attestation for a fresh nonce.
| Field | Type | What it is |
|---|---|---|
nonce | query, string | A fresh random nonce the attestation must include |
Returns the prover's response unchanged.
GET /spr/prover/health
Read attested prover health.
Returns the prover's response unchanged.
GET /spr/prover/proving-keys
Read the attested proving key catalog.
Returns the prover's response unchanged.
GET /spr/prover/prove/{circuit}/status
Read the status of a proof job.
| Field | Type | What it is |
|---|---|---|
circuit | path, "transfer_confidential_1_2" | "transfer_confidential_1_4" | "transfer_confidential_1_8" | "transfer_confidential_1_16" | "transfer_confidential_2_2" | "transfer_confidential_2_4" | "transfer_confidential_2_8" | "transfer_confidential_2_16" | "transfer_confidential_3_2" | "transfer_confidential_3_4" | "transfer_confidential_3_8" | "transfer_confidential_4_2" | "transfer_confidential_4_4" | "transfer_confidential_4_8" | "transfer_confidential_4_16" | "transfer_confidential_5_2" | "transfer_confidential_5_4" | "transfer_confidential_5_8" | "transfer_confidential_5_16" | "transfer_confidential_6_2" | "transfer_confidential_6_4" | "transfer_confidential_6_8" | "transfer_confidential_8_2" | "transfer_confidential_8_4" | "transfer_confidential_8_8" | "transfer_confidential_8_16" | "transfer_confidential_12_2" | "transfer_confidential_12_4" | "transfer_confidential_12_8" | "transfer_confidential_16_2" | "transfer_confidential_16_4" | "transfer_confidential_16_8" | "transfer_confidential_24_2" | "transfer_confidential_24_4" | "transfer_confidential_32_2" | "transfer_confidential_40_2" | "transfer_confidential_48_2" | "transfer_confidential_49_2" | |
jobId | query, string | The proof job ID the prove request returned |
Returns the prover's response unchanged.
POST /spr/prover/prove/{circuit}
Request a confidential transfer proof.
| Field | Type | What it is |
|---|---|---|
circuit | path, "transfer_confidential_1_2" | "transfer_confidential_1_4" | "transfer_confidential_1_8" | "transfer_confidential_1_16" | "transfer_confidential_2_2" | "transfer_confidential_2_4" | "transfer_confidential_2_8" | "transfer_confidential_2_16" | "transfer_confidential_3_2" | "transfer_confidential_3_4" | "transfer_confidential_3_8" | "transfer_confidential_4_2" | "transfer_confidential_4_4" | "transfer_confidential_4_8" | "transfer_confidential_4_16" | "transfer_confidential_5_2" | "transfer_confidential_5_4" | "transfer_confidential_5_8" | "transfer_confidential_5_16" | "transfer_confidential_6_2" | "transfer_confidential_6_4" | "transfer_confidential_6_8" | "transfer_confidential_8_2" | "transfer_confidential_8_4" | "transfer_confidential_8_8" | "transfer_confidential_8_16" | "transfer_confidential_12_2" | "transfer_confidential_12_4" | "transfer_confidential_12_8" | "transfer_confidential_16_2" | "transfer_confidential_16_4" | "transfer_confidential_16_8" | "transfer_confidential_24_2" | "transfer_confidential_24_4" | "transfer_confidential_32_2" | "transfer_confidential_40_2" | "transfer_confidential_48_2" | "transfer_confidential_49_2" |
Returns the prover's response unchanged.
POST /spr/prover/prove/{circuit}/indexed
Request an indexed confidential transfer proof.
| Field | Type | What it is |
|---|---|---|
circuit | path, "transfer_confidential_1_2" | "transfer_confidential_1_4" | "transfer_confidential_1_8" | "transfer_confidential_1_16" | "transfer_confidential_2_2" | "transfer_confidential_2_4" | "transfer_confidential_2_8" | "transfer_confidential_2_16" | "transfer_confidential_3_2" | "transfer_confidential_3_4" | "transfer_confidential_3_8" | "transfer_confidential_4_2" | "transfer_confidential_4_4" | "transfer_confidential_4_8" | "transfer_confidential_4_16" | "transfer_confidential_5_2" | "transfer_confidential_5_4" | "transfer_confidential_5_8" | "transfer_confidential_5_16" | "transfer_confidential_6_2" | "transfer_confidential_6_4" | "transfer_confidential_6_8" | "transfer_confidential_8_2" | "transfer_confidential_8_4" | "transfer_confidential_8_8" | "transfer_confidential_8_16" | "transfer_confidential_12_2" | "transfer_confidential_12_4" | "transfer_confidential_12_8" | "transfer_confidential_16_2" | "transfer_confidential_16_4" | "transfer_confidential_16_8" | "transfer_confidential_24_2" | "transfer_confidential_24_4" | "transfer_confidential_32_2" | "transfer_confidential_40_2" | "transfer_confidential_48_2" | "transfer_confidential_49_2" |
Returns the prover's response unchanged.
Local validator
Served only when the API runs against a local validator, to fund test wallets.
POST /dev/fund
Fund a localnet wallet with SOL and USDC.
Body:
| Field | Type | What it is |
|---|---|---|
address | address | The wallet to fund |
Returns FundResponse.
Objects
ActivityRecord
| Field | Type | What it is |
|---|---|---|
id | string | Record ID, chosen by the SDK |
tab | address | The tab account |
agent | address | The agent account |
service | address | The service account |
timestamp | timestamp | Time (ISO 8601, UTC) |
ciphertext | base64 | Ciphertext, base64; decrypts with the recipient's viewing key |
side | string | agent or service: whose viewing key encrypts the record |
Agent
| Field | Type | What it is |
|---|---|---|
id | address | The agent account address |
owner | address | The owner's Solana wallet address |
index | integer | The agent's derivation index under its owner |
name | string | Display name, 1 to 80 characters |
signingKey | address | The agent's Solana public key: pays its fees and signs its vouchers |
ringAddress | string | Ring receiving address, as the Ring adapter serializes it |
status | string | active or paused |
openTabs | integer | Tabs currently open |
tabsOpened | integer | Tabs opened, all time |
tabsSettled | integer | Tabs settled, all time |
tabsUnpaid | integer | Tabs flagged unpaid, all time |
AgentDetail
| Field | Type | What it is |
|---|---|---|
agent | object | The agent account |
tabs | object[] | Tabs |
outputs | object[] | Encrypted Ring outputs addressed to this key |
nullifiers | string[] | Nullifiers already spent, to tell spent outputs from unspent |
activity | object[] | Encrypted activity records |
events | object[] | Public chain events |
AgentList
| Field | Type | What it is |
|---|---|---|
items | object[] | Results |
ApiDescription
| Field | Type | What it is |
|---|---|---|
openapi | string | The OpenAPI version, 3.1.0 |
info | object | Title and version of the API |
paths | object | Every route |
components | object | The schemas the routes use |
ApiError
| Field | Type | What it is |
|---|---|---|
error | object | Why it failed, when it failed |
Build
| Field | Type | What it is |
|---|---|---|
transactions | object[] | Transactions to sign, in order |
resourceId | address | null | The account this build creates or acts on, or null |
ChainEvent
| Field | Type | What it is |
|---|---|---|
id | string | The account address, or the record ID |
tab | address | null | The tab account |
agent | address | null | The agent account |
service | address | null | The service account |
type | string | The program event: tab opened, closed, confirmed or flagged, agent or service changes |
timestamp | timestamp | Time (ISO 8601, UTC) |
signature | signature | The transaction that emitted it |
slot | integer | Slot |
Config
| Field | Type | What it is |
|---|---|---|
admin | address | The key allowed to change the configuration |
feeRecipient | address | The wallet that receives tab fees |
tabFeeLamports | u64 string | The flat fee charged by open_tab, in lamports |
Counts
| Field | Type | What it is |
|---|---|---|
agents | integer | Agents registered |
services | integer | Services registered |
tabsSettled | integer | Tabs settled, all time |
Example
| Field | Type | What it is |
|---|---|---|
chain | object | The chain view of a sample tab |
owner | object | The owner's Solana wallet address |
FundResponse
| Field | Type | What it is |
|---|---|---|
signature | signature | Transaction signature |
Health
| Field | Type | What it is |
|---|---|---|
mode | string | fixture or live |
cluster | string | localnet, devnet or mainnet |
ringBackend | string | local or spr |
genesisHash | address | null | Genesis hash of the cluster, bound into every voucher |
programIds | object | The Ayo and Ring program IDs |
readiness | string | ready or waiting |
Outputs
| Field | Type | What it is |
|---|---|---|
items | object[] | Results |
nullifiers | string[] | Nullifiers already spent, to tell spent outputs from unspent |
Receipt
| Field | Type | What it is |
|---|---|---|
tab | object | The tab account |
transaction | object | null | The shielded settlement transaction, or null before settlement |
RingOutput
| Field | Type | What it is |
|---|---|---|
commitment | string | The output's commitment in the state tree |
tag | string | The tag the recipient finds its outputs by |
signature | signature | Transaction signature |
slot | integer | Slot |
ciphertext | base64 | Ciphertext, base64; decrypts with the recipient's viewing key |
Service
| Field | Type | What it is |
|---|---|---|
id | address | The service account address |
owner | address | The owner's Solana wallet address |
index | integer, optional | The agent's derivation index under its owner |
signingKey | address, optional | The agent's or service's Solana public key, derived from the owner's seed |
name | string | Display name, 1 to 80 characters |
endpoint | url | The paid HTTP endpoint, http or https |
pricePerUnit | u64 string | Price of one unit in the mint's base units |
unit | string | What one unit is, such as call or query (1 to 48 characters) |
mint | address | The SPL mint the service is paid in |
ringAddress | string | Ring receiving address, as the Ring adapter serializes it |
settlementWindowSeconds | integer | Seconds after a tab opens before the service may flag it unpaid |
maxUnpaidPerTab | u64 string | Largest cumulative amount the service serves before settlement, in base units |
tabsOpened | integer | Tabs opened, all time |
tabsSettled | integer | Tabs settled, all time |
tabsUnpaid | integer | Tabs flagged unpaid, all time |
ServiceDetail
| Field | Type | What it is |
|---|---|---|
service | object | The service account |
tabs | object[] | Tabs |
outputs | object[] | Encrypted Ring outputs addressed to this key |
nullifiers | string[] | Nullifiers already spent, to tell spent outputs from unspent |
activity | object[] | Encrypted activity records |
ServiceList
| Field | Type | What it is |
|---|---|---|
items | object[] | Results |
ShieldedTransaction
| Field | Type | What it is |
|---|---|---|
signature | signature | Transaction signature |
slot | integer | Slot |
sender | string | Sender's Ring address |
recipient | string | Recipient's Ring address |
ciphertext | base64 | Ciphertext, base64; decrypts with the recipient's viewing key |
Tab
| Field | Type | What it is |
|---|---|---|
id | address | The tab account address |
agent | address | The agent account |
service | address | The service account |
openedAt | timestamp | When the tab opened (ISO 8601, UTC) |
closedAt | timestamp | null | When the tab closed, or null |
overdue | boolean, optional | True when the settlement window has passed and the tab can be flagged |
status | string | open, settling, settled, unpaid or void |
settlementSignature | signature | null | Signature of the confidential settlement transfer, or null |
flaggedAmount | u64 string | null | The cumulative amount made public by flag_unpaid, or null |
TabDetail
| Field | Type | What it is |
|---|---|---|
tab | object | The tab account |
events | object[] | Public chain events |
activity | object[] | Encrypted activity records |
Transactions
| Field | Type | What it is |
|---|---|---|
items | object[] | Results |
TxStatus
| Field | Type | What it is |
|---|---|---|
id | string | The build ID |
status | string | built, submitted, unconfirmed, confirmed, finalized, failed or expired |
signature | signature, optional | Signature once sent |
error | object, optional | Why it failed, when it failed |
Wallet
| Field | Type | What it is |
|---|---|---|
owner | address | The owner's Solana wallet address |
registered | boolean | Whether the owner is registered in the Ring User Registry |
ringAddress | string | null | Ring receiving address, as the Ring adapter serializes it |
outputs | object[] | Encrypted Ring outputs addressed to this key |
nullifiers | string[] | Nullifiers already spent, to tell spent outputs from unspent |