Skip to content

parseGetRailsForPayeeAndToken

parseGetRailsForPayeeAndToken(data): OutputType

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

Parse raw payee-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 getRailsForPayeeAndToken.ContractOutputType

OutputType

A normalized rail page getRailsForPayeeAndToken.OutputType