XRPLF / xrpl-dev-portal

Source code for xrpl.org including developer documentation
https://xrpl.org
Other
533 stars 1.02k forks source link

book_offers with taker account global freeze #1889

Closed mounikakun closed 1 year ago

mounikakun commented 1 year ago

owner_funds is not zero for global freeze taker account after creating an offer.

sample request: { "method": "book_offers", "params": [ { "taker": "r45HPDkHcnj7xVyYNHJHTSq5jP5p8yrWid", "taker_gets": { "currency": "XRP" }, "taker_pays": { "currency": "GKO", "issuer": "rL5QLJWnE9Y2VcDRUm3cwvgB8Xu3a88fTv" }, "limit": 10 } ] }

clio response: { "result": { "ledger_hash": "EE7779771751A0F1CB82D570F243B259EF5BDA70ACD63352F6B670CB65C530F7", "ledger_index": 27452695, "offers": [ { "Account": "r45HPDkHcnj7xVyYNHJHTSq5jP5p8yrWid", "BookDirectory": "6FDE5386ADC061E348183BA239FCFD7A8E7373FDC3F43320540BD7A625405555", "BookNode": "0", "Flags": 0, "LedgerEntryType": "Offer", "OwnerNode": "0", "PreviousTxnID": "CD89F8E6E816B527DEDD4D548B26AF1270B95F90E79CF0D547163E03CFF92881", "PreviousTxnLgrSeq": 27452675, "Sequence": 27452663, "TakerGets": "6", "TakerPays": { "currency": "GKO", "issuer": "rL5QLJWnE9Y2VcDRUm3cwvgB8Xu3a88fTv", "value": "2" }, "index": "2505719090E9B900CE8BD3F511B0DCB62CDCC207DC627792D7AFA3C16B2FB0EF", "owner_funds": "987999990", "quality": "0.3333333333333333" } ], "validated": true, "status": "success" }, "warnings": [ { "id": 2001, "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" } ] }

Rippled response: { "result": { "ledger_current_index": 27452699, "offers": [ { "Account": "r45HPDkHcnj7xVyYNHJHTSq5jP5p8yrWid", "BookDirectory": "6FDE5386ADC061E348183BA239FCFD7A8E7373FDC3F43320540BD7A625405555", "BookNode": "0", "Flags": 0, "LedgerEntryType": "Offer", "OwnerNode": "0", "PreviousTxnID": "CD89F8E6E816B527DEDD4D548B26AF1270B95F90E79CF0D547163E03CFF92881", "PreviousTxnLgrSeq": 27452675, "Sequence": 27452663, "TakerGets": "6", "TakerPays": { "currency": "GKO", "issuer": "rL5QLJWnE9Y2VcDRUm3cwvgB8Xu3a88fTv", "value": "2" }, "index": "2505719090E9B900CE8BD3F511B0DCB62CDCC207DC627792D7AFA3C16B2FB0EF", "owner_funds": "0", "quality": "0.3333333333333333", "taker_gets_funded": "0", "taker_pays_funded": { "currency": "GKO", "issuer": "rL5QLJWnE9Y2VcDRUm3cwvgB8Xu3a88fTv", "value": "0" } } ], "status": "success", "validated": false } }

mounikakun commented 1 year ago

By mistake created issued in xrpl-dev-portal.