Expand description
XRPL binary objects as JSON, the same way getJson does it in xrpld.
Clio builds the JSON in its responses by calling getJson from libxrpl, so
compatibility with Clio means character-for-character compatibility with xrpld: field names,
amounts as text, UInt64 as lowercase hex (five MPT fields
as decimal), currency codes, and the names of transaction types, objects and
results. Field and type names come from server_definitions of xrpld 3.4.1
(definitions.json next to the crate), not from memory.
Structs§
- Definitions
- Name tables from
server_definitions.
Functions§
- account
- amount
- Amount: XRP is a string in drops; issued currencies and MPT are objects.
- currency
- Currency code as text: XRP, a three-letter ISO code, or 40 hex chars.
- definitions
- iou_
text - Text form of an issued currency amount, following
STAmount::getText. - ledger_
entry - State object: fields and
index, as inSTLedgerEntry::getJson, which also addsmpt_issuance_id(sequence and issuer) to an MPTokenIssuance. - metadata
- number
- Number: an i64 mantissa and i32 exponent, normalized to the range [10^15, 10^16), as Number in xrpld with the small mantissa range.
- object
- A whole STObject as JSON.
- transaction
- Transaction: fields and
hash, as inSTTx::getJson.