In v4.0.0 Connection 'transaction' event emitter does not include 'Amount' property on tx_json - what should I use? #2828
-
In v2.14.0, the Connection 'transaction' event emitted an object which had transaction.Amount. The 'Payment' interface (src/models/transactions/payment.ts) that I'm looking at indicates that 'Amount' should exist on tx_json (which I'm taking to be an object which conforms to the Payment interface). According to that documentation, 'Amount' may be used in partial payment scenarios - so am I better using 'meta.delivered_amount'? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yes, |
Beta Was this translation helpful? Give feedback.
If you specifically want the
Amount
value, it has been renamed toDeliverMax
.The full API changelog is available here: https://github.com/xrplf/rippled/blob/develop/API-CHANGELOG.md#api-version-2
You can also switch back to API v1 with
client.apiVersion = 1
or specifying theapi_version
in the request.