Skip to content

resolveAccountState

resolveAccountState(params): OutputType

Defined in: packages/synapse-core/src/pay/resolve-account-state.ts:27

Project account state forward to currentEpoch by simulating settlement locally.

Pure function — no RPC call. Takes raw account fields from accounts() + currentEpoch and computes what the account state would be if settlement happened now.

ParameterTypeDescription
paramsParamsTypeRaw account fields + current epoch

OutputType

fundedUntilEpoch and availableFunds after simulated settlement