Skip to content

AccountState

AccountState = object

Defined in: packages/synapse-core/src/pay/types.ts:19

Raw account fields (from accounts()) + the current epoch.

Shared input shape for pure account-state helpers like resolveAccountState and calculateAccountDebt.

currentEpoch: bigint

Defined in: packages/synapse-core/src/pay/types.ts:29

Current epoch (block number on Filecoin).


funds: bigint

Defined in: packages/synapse-core/src/pay/types.ts:21

Total funds deposited by the account (from accounts()).


lockupCurrent: bigint

Defined in: packages/synapse-core/src/pay/types.ts:23

Lockup amount at lockupLastSettledAt (fixed lockup + rate lockup accrued so far).


lockupLastSettledAt: bigint

Defined in: packages/synapse-core/src/pay/types.ts:27

Epoch when lockup was last settled.


lockupRate: bigint

Defined in: packages/synapse-core/src/pay/types.ts:25

Aggregate per-epoch lockup rate across all active rails.