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