Calculate uncommitted Filecoin storage-market escrow

Depositing FIL in the storage market and locking it for existing deals are distinct events. A client preparing another proposal needs the uncommitted portion of its market balance.

Inspect the participant's market account

Use the exact client or provider address funding the market obligation. Both returned values, Escrow and Locked, are amounts in attoFIL and should be parsed as integers.

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

Subtract locked funds once

If escrow is 6 FIL and locked funds are 4 FIL, the uncommitted portion is 2 FIL. The locked amount is already included in escrow. A wallet balance lookup targets a different account of funds, and a recently submitted market deposit can still be waiting for inclusion.

docs.filecoin.io StateMarketBalance