Get Strict Receive Paths
Fetch strict receive payment paths using the Blux core SDK.
The getStrictReceivePaths function returns available payment paths for a strict receive operation.
The return value contains two properties:
response— the records you can use directlybuilder— exposesnext()andprev()to paginate through results
Type
export type CallBuilderOptions = {
cursor?: string;
limit?: number;
network?: string;
order?: "asc" | "desc";
};
type GetPaymentPathResult = {
builder: PathCallBuilder;
response: Horizon.ServerApi.CollectionPage<Horizon.ServerApi.PaymentPathRecord>;
};Usage
import { core } from "@bluxcc/core";
const result = await core.getStrictReceivePaths(
[
source: string | Asset[],
destinationAsset: Asset,
destinationAmount: string,
], options);