Open hyeongcheolkim opened 3 months ago
i think balance type should be SignedLong. not UnsignedLong.
Hi @hyeongcheolkim, this is a known issue. There are a few historical (very very old) ledgers that seem to contain negative XRP balances, but the bug that caused that issue in rippled has since been fixed.
The documentation you posted is related to Trustline balances, which can be negative -- these balances are represented as String
s in xrpl4j. I'm not sure of an easy fix to handle historical ledgers with negative XRP balances, as ideally the balance
field should remain an UnsignedLong
to provide the best developer experience for those querying more recent history. How important is it for you to be able to query these ledgers?
xrpl4j fail to get '-2298000050' because type is unsignedlong. but i think it should be signedlong.
when i run this code. exception occured.