Parameters
- objectobjectREQUIRED
The account_offers request object.
- accountstringREQUIRED
The XRP Ledger account for which the offers are to be retrieved
Returns
- resultobject
The method returns a JSON object with the following properties:
- accountstring
The XRP Ledger account
- limitinteger
(Optional) The maximum number of offers to return
- ledger_hashstring
The hash of the ledger containing the offers
- ledger_indexinteger
The index of the ledger containing the offers
- ledger_current_indexinteger
(Optional) (Omitted if ledger_hash or ledger_index provided) The ledger index of the current in-progress ledger version, which was used when retrieving this data
- offersarray
A list of open offers placed by the account
- flagsinteger
The flags associated with the offer
- qualitystring
The exchange rate i.e the ratio of the original 'taker_pays' divided by the original 'taker_gets'
- seqinteger
The sequence number of the transaction that created the entry
- taker_getsstring | object
The amount the account accepting the offer receives
- taker_paysstring | object
The amount the account accepting the offer provides
- validatedboolean
A boolean flag indicating if the information is from a validated ledger
- statusstring
The status of the request
- markerstring
(Optional) The value from the paginated response
- warningsarray
(Optional) A list of warnings. Returned at the JSON-RPC response root on some servers and omitted from the
resultobject- idinteger
The warning ID
- messagestring
The warning message
1{2"result": {3"ledger_hash": "7735091DF9F32511F41AD963A8BDE4AF24B27D3AA3946903A31E3CFF2B948217",4"ledger_index": 102609804,5"validated": true,6"account": "rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn",7"offers": [8{9"seq": 359,10"flags": 0,11"quality": "0.0000001",12"taker_pays": {13"currency": "FOO",14"issuer": "rUpy3eEg8rqjqfUoLeBnZkscbKbFsKXC3v",15"value": "100"16},17"taker_gets": "1000000000"18}19],20"status": "success"21},22"warnings": [23{24"id": 2001,25"message": "This is a clio server. clio only serves validated data. If you want to talk to rippled, include 'ledger_index':'current' in your request"26}27]28}
1{2"result": {3"ledger_hash": "7735091DF9F32511F41AD963A8BDE4AF24B27D3AA3946903A31E3CFF2B948217",4"ledger_index": 102609804,5"validated": true,6"account": "rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn",7"offers": [8{9"seq": 359,10"flags": 0,11"quality": "0.0000001",12"taker_pays": {13"currency": "FOO",14"issuer": "rUpy3eEg8rqjqfUoLeBnZkscbKbFsKXC3v",15"value": "100"16},17"taker_gets": "1000000000"18}19],20"status": "success"21},22"warnings": [23{24"id": 2001,25"message": "This is a clio server. clio only serves validated data. If you want to talk to rippled, include 'ledger_index':'current' in your request"26}27]28}