pub struct Offer {Show 16 fields
pub account: String,
pub book_directory: String,
pub book_node: Option<String>,
pub expiration: Option<LedgerTimestamp>,
pub flags: BitFlags<OfferFlags>,
pub owner_node: String,
pub sequence: u32,
pub taker_gets: Amount,
pub taker_pays: Amount,
pub previous_txn_id: Option<String>,
pub previous_txn_lgr_seq: Option<u32>,
pub index: Option<String>,
pub owner_funds: Option<String>,
pub taker_gets_funded: Option<Amount>,
pub taker_pays_funded: Option<Amount>,
pub quality: Option<String>,
}
Expand description
An offer in the ledger.
{ “Account”: “rBqb89MRQJnMPq8wTwEbtz4kvxrEDfcYvt”, “BookDirectory”: “ACC27DE91DBA86FC509069EAF4BC511D73128B780F2E54BF5E07A369E2446000”, “BookNode”: “0000000000000000”, “Flags”: 131072, “LedgerEntryType”: “Offer”, “OwnerNode”: “0000000000000000”, “PreviousTxnID”: “F0AB71E777B2DA54B86231E19B82554EF1F8211F92ECA473121C655BFC5329BF”, “PreviousTxnLgrSeq”: 14524914, “Sequence”: 866, “TakerGets”: { “currency”: “XAG”, “issuer”: “r9Dr5xwkeLegBeXq6ujinjSBLQzQ1zQGjH”, “value”: “37” }, “TakerPays”: “79550000000”, “index”: “96F76F27D8A327FC48753167EC04A46AA0E382E6F57F32FD12274144D00F1797” }
Fields§
§account: String
§book_directory: String
§book_node: Option<String>
§expiration: Option<LedgerTimestamp>
§flags: BitFlags<OfferFlags>
§owner_node: String
§sequence: u32
§taker_gets: Amount
§taker_pays: Amount
§previous_txn_id: Option<String>
Declared optional since it is not part of transaction metadata fields https://xrpl.org/transaction-metadata.html#modifiednode-fields
previous_txn_lgr_seq: Option<u32>
Declared optional since it is not part of transaction metadata fields https://xrpl.org/transaction-metadata.html#modifiednode-fields
index: Option<String>
§owner_funds: Option<String>
owner_funds
is present in offers returned by book_offers
method, see
https://xrpl.org/book_offers.html#response-format.
taker_gets_funded: Option<Amount>
taker_gets_funded
may be present in offers returned by book_offers
method, see
https://xrpl.org/book_offers.html#response-format.
taker_pays_funded: Option<Amount>
taker_pays_funded may be present in offers returned by book_offers
method, see
https://xrpl.org/book_offers.html#response-format.
quality: Option<String>
quality
is present in offers returned by book_offers
method, see
https://xrpl.org/book_offers.html#response-format.