PathCallBuilder

PathCallBuilder

The DigitalBits Network allows payments to be made across assets through path payments. A path payment specifies a series of assets to route a payment through, from source asset (the asset debited from the payer) to destination asset (the asset credited to the payee).

A path search is specified using:

  • The destination address
  • The source address
  • The asset and amount that the destination account should receive

As part of the search, frontier will load a list of assets available to the source address and will find any payment paths from those source assets to the desired destination asset. The search's amount parameter will be used to determine if there a given path can satisfy a payment of the desired amount.

Do not create this object directly, use Server#paths.

Constructor

new PathCallBuilder(serverUrl, source, destination, destinationAsset, destinationAmount)

Source:
See:
Parameters:
Name Type Description
serverUrl string

Frontier server URL.

source string

The sender's account ID. Any returned path must use a source that the sender can hold.

destination string

The destination account ID that any returned path should use.

destinationAsset Asset

The destination asset.

destinationAmount string

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