Skip to content

parseGetRailsForPayerAndToken

parseGetRailsForPayerAndToken(data): OutputType

Defined in: packages/synapse-core/src/pay/get-rails-for-payer-and-token.ts:168

Parse raw payer-rail contract output into a normalized page with a total.

The contract’s results tuple is mapped to items, including finalized and skipped rail slots. nextOffset becomes nextCursor only when it is less than total; total is the underlying rail-slot count.

ParameterTypeDescription
datareadonly [readonly object[], bigint, bigint]Raw contract output getRailsForPayerAndToken.ContractOutputType

OutputType

A normalized rail page getRailsForPayerAndToken.OutputType