# Data schema All files use one record per line. CSV uses standard RFC 4180 quoting; JSONL is one JSON object per line. --- ## `account_classification.csv` — main per-account result | Column | Type | Meaning | |---|---|---| | `Account` | string | XRPL r-address | | `BalanceXRP` | float | `AccountRoot.Balance` in XRP | | `EscrowXRP` | float | Sum of all `Escrow.Amount` where this account is `Destination`, in XRP | | `EffectiveXRP` | float | `BalanceXRP + EscrowXRP + PayChannel-remaining` (the "true" claim total) | | `bucket` | enum | One of: `EXPOSED_MASTER_ACTIVE`, `EXPOSED_QUORUM_REACHED`, `EXPOSED_REGULAR_KEY`, `EXPOSED_OTHER`, `SAFE_NEVER_SIGNED`, `SAFE_ROTATED_AND_DISABLED`, `SAFE_QUORUM_NOT_REACHED`, `SAFE_OTHER` | | `master_signed` | bool | `True` if the account ever broadcast a tx whose `SigningPubKey` derives back to its own AccountID | | `master_disabled` | bool | `True` if `lsfDisableMaster` flag is set on the AccountRoot | | `regular_key` | string \| empty | r-address of the `RegularKey` holder, if any | | `signer_quorum` | int \| empty | `SignerQuorum` from the account's `SignerList`, if any | | `signer_exposed_weight` | int \| empty | Sum of `SignerWeight` of signers whose pubkeys are on-ledger | | `signer_total_weight` | int \| empty | Total `SignerWeight` across all entries in the SignerList | | `last_signed_unix` | int \| empty | Unix timestamp of the most recent tx where `tx.Account == this account`. Empty if never signed. | **Note on `last_signed_unix`**: convert to UTC datetime via `datetime.utcfromtimestamp(value)`. The XRPL `tx.date` field is seconds since the Ripple epoch (2000-01-01 UTC); we add 946,684,800 to convert to Unix epoch. --- ## `account_roots_snapshot.jsonl` — every AccountRoot at snapshot ledger Each line is one AccountRoot object as returned by `ledger_data type=account binary=false`: ```json { "Account": "r…", "Balance": 12345678, // drops (1 XRP = 1,000,000 drops) "Sequence": 42, "PreviousTxnID": "…", "PreviousTxnLgrSeq": 99481539, "RegularKey": "r…" | null, "Flags": 0, // bitfield; 0x00100000 = lsfDisableMaster "OwnerCount": 0 } ``` --- ## `signer_lists.jsonl` — every SignerList ledger object ```json { "OwnerNode": "0", "SignerQuorum": 4, "SignerEntries": [ {"Account": "r…", "SignerWeight": 1}, {"Account": "r…", "SignerWeight": 1}, … ], "_index": "…" // SHA-512Half ledger object index (hex) } ``` To map a SignerList back to its **owner** account (the account whose multi-sig this is), recompute the index for any candidate owner address as: ``` index = SHA512Half(0x0053 || AccountID(addr) || uint32_BE(0)) ``` and look it up in this file by `_index`. The SignerList object itself does *not* store the owner address. --- ## `escrow_objects.jsonl` — every Escrow + PayChannel Two record shapes mixed in this file, distinguished by `type`: ### Escrow ```json { "type": "Escrow", "Account": "r…", // funder "Destination": "r…", // recipient on release "Amount": 5000000000000000, // drops "FinishAfter": 791474400, // Ripple epoch seconds (or null) "CancelAfter": 1135641600, // Ripple epoch seconds (or null) "Condition": false, // true if cryptographic-condition-locked "index": "…" } ``` ### PayChannel ```json { "type": "PayChannel", "Account": "r…", // source "Destination": "r…", "Amount": 100000000, // total deposit (drops) "Balance": 25000000, // already-claimed (drops) "Remaining": 75000000, // = Amount - Balance (drops) "index": "…" } ``` --- ## `exposure_raw.jsonl` — per-account scan output Each line is one account's exposure scan result, equivalent to `AccountRoot fields ⊕ scan output`: ```json { "Account": "r…", "Balance": 58900001, "Sequence": 99481534, "PreviousTxnID": "…", "PreviousTxnLgrSeq": 99481539, "RegularKey": null, "Flags": 0, "OwnerCount": 0, "exposed": true | false, "reason": "signed_tx" | "no_outgoing_tx_found" | "account_not_found", "first_signed_unix": 1734567890 | null, "first_signed_hash": "…", "first_signed_ledger": 92345678, "first_signed_type": "Payment" | "AccountSet" | …, "first_signing_pubkey": "ED…" | "03…" | "", "master_signed": true | false, "latest_signed_unix": 1762345678 | null } ``` `first_signing_pubkey` is the value of `tx.SigningPubKey` from the first signed tx encountered. If empty string (`""`), the tx was multi-sig signed and individual signer pubkeys live in the `Signers` array of the original transaction (not captured here — query the tx hash on a full-history node to get them). `master_signed` is `True` iff `RIPEMD160(SHA256(first_signing_pubkey))` equals the account's AccountID — i.e., the master key signed at least once. --- ## Unit conventions - **Drops vs XRP**: 1 XRP = 1,000,000 drops. JSONL files use drops (raw integers from the ledger). The CSV uses XRP (drops ÷ 1,000,000) for human readability. - **Time**: `last_signed_unix`, `first_signed_unix` are Unix epoch seconds (UTC). The on-ledger `tx.date` field is Ripple-epoch seconds (offset by +946,684,800). - **Flags**: `0x00100000` (1,048,576) is `lsfDisableMaster`. Other flags exist but aren't material to the analysis here.