add destination_account field to PathOption(path_find method) (#2160)

* add destination_account field to PathOption(path_find method)

* fix field name

* Fix grammar in comment

* Fix sentence with missing end

* Add HISTORY.md

---------

Co-authored-by: Jackson Mills <jmills@ripple.com>
This commit is contained in:
tequ
2023-03-23 06:42:46 +09:00
committed by GitHub
parent 0c6ea2afe2
commit bbbdf06e91
2 changed files with 9 additions and 1 deletions

View File

@@ -6,6 +6,9 @@ Subscribe to [the **xrpl-announce** mailing list](https://groups.google.com/g/xr
### Added
* Null and undefined values in transactions are now treated as though the field was not passed in.
### Fixed
* Added `destination_amount` to `PathOption` which is returned as part of a `path_find` request
## 2.7.0 (2023-03-08)
### Fixed

View File

@@ -63,6 +63,11 @@ interface PathOption {
* Destination to receive the desired amount.
*/
source_amount: Amount
/**
* Destination Amount that the destination would receive along this path.
* If the `send_max` field is set, this field will be set.
*/
destination_amount?: Amount
}
/**
@@ -80,7 +85,7 @@ export interface PathFindResponse extends BaseResponse {
alternatives: PathOption[]
/** Unique address of the account that would receive a transaction. */
destination_account: string
/** Currency amount that the destination would receive in a transaction. */
/** Currency amount provided in the WebSocket request. */
destination_amount: Amount
/** Unique address that would send a transaction. */
source_account: string