findPaymentPath: Find a payment path between a source and a destination.

Description Usage Arguments Value Note

Description

Calculate a path for a payment based on the assets the source/target owns.

Usage

1
2
3
findPaymentPath(destination_account, destination_asset_type,
  destination_asset_code, destination_asset_issuer, destination_amount,
  source_account, domain = "public")

Arguments

destination_account

character - The destination account that any returned path should use.

destination_asset_type

character - The type of the destination asset credit_alphanum4

destination_asset_code

character - The code for the destination, if destination_asset_type is not “native”.

destination_asset_issuer

character - The issuer for the destination, if destination_asset_type is not “native”.

destination_amount

character - The amount, denominated in the destination asset, that any returned path should be able to satisfy.

source_account

character - The sender’s account id. Any returned path must use a source that the sender can hold.

domain

- character - signalling to query the testnet or public network. Can be either "testnet" or "public".

Value

list

Note

https://www.stellar.org/developers/horizon/reference/endpoints/path-finding.html


froocpu/xlm documentation built on May 13, 2019, 4:02 a.m.