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.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
data | readonly [readonly object[], bigint, bigint] | Raw contract output getRailsForPayeeAndToken.ContractOutputType |
Returns
Section titled “Returns”A normalized rail page getRailsForPayeeAndToken.OutputType