Read the epoch schedule of a Filecoin vesting multisig

Some multisig wallets release an original locked balance over an epoch schedule. A later deposit changes the observed actor balance without rewriting the original vesting schedule.

Read the schedule rather than inferring it from balance

Use the multisig actor address. Read the initial balance as an attoFIL integer, and record StartEpoch and UnlockDuration. Check that the duration is positive before calculating an end epoch.

{"jsonrpc":"2.0","id":1,"method":"Filecoin.MsigGetVestingSchedule","params":["f01234",[]]}

Separate schedule completion from spendable balance

A start at epoch 400000 and duration 100000 gives a schedule boundary at 500000. A wallet may receive deposits or spend unlocked funds during that interval. For an amount available to spend at a specific state, query MsigGetAvailableBalance at the same tipset.

docs.filecoin.io MsigGetVestingSchedule · docs.filecoin.io MsigGetAvailableBalance