Parameters
Returns
- resultobject
An object with the following fields:
- alternativesarray
An array of objects with suggested paths to take
- paths_computedarray
The defined payment paths
- source_amountstring
The currency amount that the source would have to send along this path for the destination to receive the desired amount
- destination_amountstring
The destination amount received
- destination_accountstring
Unique address of the account that would receive a transaction
- destination_amountstring
The currency amount that the destination would receive in a transaction
- source_accountstring
The unique address that would send a transaction
- full_replyboolean
If false, incomplete search; later reply may have a better path. If true, best path found; updates sent on new ledger closures until pathfinding request is closed
- warningsarray
A list of warnings
- idinteger
The ID of the warning
- messagestring
The warning message
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"result": {6"alternatives": [7{8"paths_computed": [],9"source_amount": "example_value",10"destination_amount": "example_value"11}12],13"destination_account": "example_value",14"destination_amount": "example_value",15"source_account": "example_value",16"full_reply": false17},18"warnings": [19{20"id": 1,21"message": "example_value"22}23]24}25}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"result": {6"alternatives": [7{8"paths_computed": [],9"source_amount": "example_value",10"destination_amount": "example_value"11}12],13"destination_account": "example_value",14"destination_amount": "example_value",15"source_account": "example_value",16"full_reply": false17},18"warnings": [19{20"id": 1,21"message": "example_value"22}23]24}25}