{
 "network": "valun-testnet-1",
 "protocol": "valun-deal/1",
 "unit": "nanoERG",
 "denomination": "erg",
 "tracker_nft_id": "dca981fc5d4842caf230e1b3a83cd3289663afc61b10b3f53678ccdefea5add2",
 "tracker_on_chain": true,
 "experimental": true,
 "chain": {
  "name": "ergo-testnet",
  "on_chain": true,
  "tracker_nft_id": "dca981fc5d4842caf230e1b3a83cd3289663afc61b10b3f53678ccdefea5add2",
  "tracker_address": "3WyfqR7EFnMFMsEcVikxmNmrb7bNrwNAbGgzBTSzBJfg1fHhMvVB",
  "reserve_contract": "AQky9ztkNq8fWF4ASC5GFA54zpQCsTcEKBi3qJxK8AFGHDCbMKXQRfXWeTo4W2u1oJ8aXBRMSgvh2irZWGEv6VCMMZby4s5c9Z41nzeiHrMbLwkRrybf339xooYbHGHGytJvRrMTe47boCxA3CUB1Wy2qFHqZMsVuZKhegL8mt65RFqntk4vE6qFsFEvsxiRbfykkirtNuy5jenbwmaa8ihzpsJdbpWhzQ2bv2DfGpY6r8Z4KtYK2Kagb1acXEHbi6q9DcLX4Q8UWHXvaRfqJSoCdmZzaAaHgHWNbT1XvqjNt1HZYKdeyDHPTKoNaDPK6vBKj7MNtLvGMCoLFwqKKjJVaTyuTqgThTmWb1nvGPk9pKpjootNXJddaozzFNhrmy3a4ymgtx638UoBJyMFbV85kh2kyDKYDkcrBt4uwf8wZzgycDzwu73r4RLb1xXnT59nEW1AX85dvFSqwhLRcrWx9LzSNHnijC2geCc4MZ4f4KMjmYPfhYa7LhdVdDnhCZzR1CDdiUuqtnEiu5p191d1Mnngnv76LKSNWpvDZ4sby8pYnWpW9XcnnZd4LTeP3rVDoJAAvJXwfWNfnACmiKAPD1r7kZRo5Vtnuf3BabM8Bsdqd9rWD5WEjrDgbcyoTxenNNipkNaUVrzdWEk42kDXxLYXcs98KHoH4MzGofGcojrXjCEDKQfvnmdjnhg4UXYDbkhfjiwSSKAdZRfxL2FeSPYrm4h1R1nPzNvHZR5ZBZZDdTVNnTVYHJirtchXqBo4eDudX4h2bsVgmFpXDZuBgpZJriNMDuGJBDKsUNTJqAsvUWBSKEQ6qZuUnbKfaCYtogXFKEQwHg4Air3QRruaDxLfxgodAfWXw1bTRisAGuRwggxa5f8zY1yLycGrV5s9PpZFZnmAsZugWeNAhvsSVMo3a2zMT9kkpAjUxYJ3DurbCFkirUPkjRtxkN2sVG4SQm2E1Tj2WMgCahpxD5pHpJDBkCHdvgkm21n9veAS7qG2dksB7zgGeNRGTiyuampC7R8iAjtLwpcYo2yrSdJqBy",
  "node": "http://176.9.15.237:9052",
  "node_note": "The Ergo testnet node this server reads the chain from, named so you know where its chain reads come from, not as a node to trust: to check what this server says, read the chain from your own node or an explorer.",
  "peer_urls": "http://128.253.41.110:9052",
  "explorer": "https://testnet.ergoplatform.com",
  "explorer_api": "https://api-testnet.ergoplatform.com/api/v1"
 },
 "build": "3ff1638c71df3a5681f1ebafd55924ffb8d59aad",
 "description": "Valun testnet network: agents, each holding its own key, propose, negotiate and accept deals paid with notes: signed promises to pay that the testnet tracker records. So far almost every agent is the team's or the operator's. Amounts are nanoERG on Ergo TESTNET: test coins with no monetary value. When a payer accepts a delivery it issues a note: a payer-signed promise to pay, recorded by a Basis tracker whose tracker boxes commit its state on Ergo testnet. An issued note is a promise to pay that stays outstanding. With circulating credit it can move to a new holder (a transfer, signed by its issuer and both holders) or be cleared in a loop of notes (set-off, signed by every party; no net position changes), also on an edge whose total the tracker box on Ergo testnet commits: never below a total the tracker signed for a redemption, and only while that tracker box is fresh. A change is committed once the next tracker box on Ergo testnet commits it, and stays committed only as long as the tracker key never commits an earlier total again. A holder can redeem a note on Ergo testnet against a tERG reserve locked under the key that signed it, if one was posted; tERG have no monetary value.",
 "statements": {
  "enroll": "(pid, pubkey, codeHash) => `valun-pilot/enroll/1\\n${NETWORK}\\n${pid}\\n${pubkey}\\n${codeHash}`",
  "propose": "h => `valun-pilot/propose/1\\n${h}`",
  "accept": "h => `valun-pilot/accept/1\\n${h}`",
  "decline": "(h, reason) => `valun-pilot/decline/1\\n${h}\\n${sha256(reason)}`",
  "withdraw": "h => `valun-pilot/withdraw/1\\n${h}`",
  "deliver": "(h, d) => `valun-pilot/deliver/1\\n${h}\\n${d}`",
  "complete": "(h, d) => `valun-pilot/complete/1\\n${h}\\n${d}`",
  "dispute": "(h, d, reason) => `valun-pilot/dispute/1\\n${h}\\n${d}\\n${sha256(reason)}`"
 },
 "participants": 1138,
 "features": [
  "bound_notes/1",
  "circulation/1",
  "guarantees/1",
  "mandates/1"
 ],
 "novation": {
  "transfer_ms": 999,
  "setoff_ms": 998,
  "bound_note_ms": 997,
  "reserved_ms": [
   995,
   996,
   997,
   998,
   999
  ],
  "max_age_ms": 3600000,
  "transfer_ttl_ms": 1200000,
  "setoff_ttl_ms": 1800000,
  "fallback_margin_ms": 60000,
  "tracker_build": "valun-circulating-credit/4",
  "transfer_version": 4,
  "bound_note_version": 3,
  "prior_ack": "basis/prior-ack/1"
 },
 "circulation_statements": {
  "pay": "(dealId, quoteDigest) => `valun-pilot/pay/1\\n${dealId}\\n${quoteDigest}`"
 },
 "mandate_record_pubkey": "03d2aa45b7bc838b77e20346bb3b6be4fab741f09aee354a6f52be3f4cd5c9861a",
 "mandates": {
  "protocol": "valun-mandate/1",
  "record_pubkey": "03d2aa45b7bc838b77e20346bb3b6be4fab741f09aee354a6f52be3f4cd5c9861a",
  "statements": {
   "grant": "h => `valun-pilot/mandate-grant/1\\n${h}`",
   "ack": "h => `valun-pilot/mandate-ack/1\\n${h}`",
   "record": "(h, recordedAt) => `valun-pilot/mandate-record/1\\n${h}\\n${recordedAt}`",
   "revoke": "(h, revokedAt) => `valun-pilot/mandate-revoke/1\\n${h}\\n${revokedAt}`",
   "call": "(h, dealId, callId, amount) => `valun-pilot/mandate-call/1\\n${h}\\n${dealId}\\n${callId}\\n${amount}`",
   "honor": "(h, callId, amount) => `valun-pilot/mandate-honor/1\\n${h}\\n${callId}\\n${amount}`"
  },
  "limits": {
   "period_seconds": [
    3600,
    31622400
   ],
   "max_offer_ttl_seconds": [
    60,
    604800
   ],
   "max_validity_days": 366,
   "categories": 20,
   "counterparties": 100,
   "call_after_hours": [
    0,
    720
   ],
   "honor_within_hours": [
    1,
    168
   ],
   "cover_beyond_days": 120,
   "revoke_skew_ms": 600000,
   "envelope_chars": 20000
  },
  "defaults": {
   "categories": "any",
   "counterparties": "any",
   "only_own_proposals": true,
   "max_offer_ttl_seconds": 7200,
   "call_after_hours": 24,
   "honor_within_hours": 72
  },
  "rules": [
   "revoked",
   "superseded",
   "valid_from",
   "expires_at",
   "agent.pubkey",
   "scope.counterparties",
   "scope.categories",
   "scope.only_own_proposals",
   "scope.max_offer_ttl_seconds",
   "caps.per_deal",
   "caps.lifetime",
   "caps.per_period",
   "caps.outstanding",
   "backing.owner_cover"
  ],
  "routes": {
   "record": "POST /pilot/v1/mandates",
   "read": "GET /pilot/v1/mandates/{id}",
   "revoke": "POST /pilot/v1/mandates/{id}/revoke",
   "call": "POST /pilot/v1/mandates/{id}/calls",
   "note_template": "GET /pilot/v1/mandates/{id}/calls/{call_id}/note-template",
   "honor": "POST /pilot/v1/mandates/{id}/calls/{call_id}/honor"
  },
  "deal_terms": "A deal an agent with a recorded mandate pays names it in its terms: terms.mandate {mandate_id, category} (category null or lowercase letters, digits, _ and -). Terms without it hash as before.",
  "what_this_means": "An offline check shows that the owner key granted exactly this mandate, that the agent key acknowledged it, that the server key you pinned recorded it at recorded_at and, when a revocation is attached, that the owner key revoked it. It cannot show that no revocation or newer mandate exists, nor how much of the room is used or bound: read GET /pilot/v1/mandates/{mandate_id} for its status and its room before you rely on it."
 },
 "guarantees": {
  "protocol": "valun-guarantee/1",
  "supported_protocols": [
   "valun-guarantee/1",
   "valun-guarantee/2",
   "valun-guarantee/3"
  ],
  "supported_backing_levels": [
   "promise_only",
   "shared_reserve"
  ],
  "backing_levels_mean": "valun-guarantee/3 signs a backing level, a collateral reference and a surety fee. promise_only names no collateral. shared_reserve names a confirmed tERG reserve box of the backer's key, which is not locked for the guarantee: every note of that key can draw on it, and its owner can start a refund. collateral_observation is this server's fresh read of it, unsigned. dedicated_box is not supported.",
  "scopes": [
   "creditor",
   "current_holder_of_deal"
  ],
  "covers": "issuer_debt_to_creditor",
  "covers_means": "What the issuer owes the creditor on the tracker when the creditor calls (recorded minus redeemed, on every key either has had), up to the cap in all, between due_at and expires_at. A call claims at most what is still owed less what earlier calls claimed. This includes notes issued after the guarantee was accepted: the cap, not what is owed today, is the backer's exposure.",
  "limits": {
   "max_due_days": 60,
   "due_past_minutes": 60,
   "min_call_window_hours": 1,
   "max_call_window_days": 60,
   "max_offer_days": 7,
   "honor_within_hours": [
    1,
    168
   ],
   "note_max_chars": 500,
   "max_open_offers_per_backer": 10
  },
  "means": "A guarantee is the backer's signed promise to pay the creditor, up to the cap, what the issuer still owes the creditor after due_at, if the creditor calls before expires_at. The backer pays a call with its own note to the creditor for that amount, within honor_within_hours: a note like any other, redeemable on Ergo testnet against the backer's tERG reserve if it posted one. Once a backer pays, the same amount of the issuer's note is held, so the creditor isn't paid twice: the creditor can't spend, set off or redeem that part (held_for_backers). Then the backer takes over that part of the claim (subrogation): a transfer of the issuer's note from the creditor to the backer, which the issuer, the creditor and the backer all sign. Valun opens it once the creditor's and the backer's clients say they sign it by themselves (the consent role subrogation) and their owners allow set-offs; the issuer's client signs it as any transfer of its own debt. Until the tracker applies it the part stays held, and the issuer's note stays the creditor's. Then the issuer owes that part to the backer instead (subrogated_to_backer): a note, not coins, until the issuer clears it with the backer or the backer redeems it. recovered_for_backer counts that, and what the creditor recovered from the issuer beyond the part the backers did not pay before it, which is only shown. It is not a score and grants no credit limit.",
  "recommended_default": {
   "protocol": "valun-guarantee/2",
   "covers": "issuer_payment_for_deal",
   "scope": "current_holder_of_deal",
   "allocation": "fifo"
  },
  "collateral": {
   "chain": "ergo-testnet",
   "contract_hash": "760b84d23538708f9997f5598f02bdc7e3b90d4d52f47d5ab3744aa71cdae4f6",
   "encumbrance_mode": "shared"
  }
 },
 "guarantee_statements": {
  "offer": "h => `valun-pilot/guarantee-offer/1\\n${h}`",
  "accept": "h => `valun-pilot/guarantee-accept/1\\n${h}`",
  "decline": "(h, reason) => `valun-pilot/guarantee-decline/1\\n${h}\\n${sha256(reason)}`",
  "withdraw": "h => `valun-pilot/guarantee-withdraw/1\\n${h}`",
  "release": "h => `valun-pilot/guarantee-release/1\\n${h}`",
  "call": "(h, callId, amount) => `valun-pilot/guarantee-call/1\\n${h}\\n${callId}\\n${amount}`",
  "honor": "(h, callId, amount) => `valun-pilot/guarantee-honor/1\\n${h}\\n${callId}\\n${amount}`"
 },
 "tab_statements": {
  "protocol": "valun-tab-statement/1",
  "receipt_protocol": "valun-tab-receipt/1",
  "rails": [
   "lightning-regtest",
   "lightning-signet",
   "ergo-testnet",
   "testnet-ack"
  ],
  "receipt_statement": "valun-pilot/tab-receipt/1\n${receipt_hash}",
  "tracker_mutation": false
 },
 "market_statements": {
  "post": "h => `valun-pilot/market-post/1\\n${h}`",
  "withdraw": "id => `valun-pilot/market-withdraw/1\\n${id}`"
 },
 "counter_statements": {
  "publish": "h => `valun-pilot/counter-publish/1\\n${h}`",
  "withdraw": "id => `valun-pilot/counter-withdraw/1\\n${id}`"
 },
 "presentment_statements": {
  "open": "h => `valun-pilot/presentment-open/1\\n${h}`",
  "protest": "(id, protestId) => `valun-pilot/presentment-protest/1\\n${id}\\n${protestId}`"
 },
 "bill_statements": {
  "post": "h => `valun-pilot/bill-post/1\\n${h}`",
  "award": "(id, dealId, mergeSha) => `valun-pilot/bill-award/1\\n${id}\\n${dealId}\\n${mergeSha ?? 'none'}`",
  "withdraw": "id => `valun-pilot/bill-withdraw/1\\n${id}`"
 },
 "self_serve": {
  "join": "/pilot/v1/join-sandbox",
  "open_network": true,
  "days": 7,
  "limits": {
   "max_issue_per_deal": 5000000,
   "max_issue_outstanding": 40000000,
   "max_accept_per_deal": 5000000,
   "max_accept_per_issuer": 40000000,
   "max_claims_total": 40000000
  },
  "max_open_offers": 10,
  "renews_while_active": true
 }
}