Recover a pending Filecoin deal's allocation from its deal ID
A legacy market onboarding pipeline may persist the published deal ID while losing the separate allocation record. Lotus can look up the allocation associated with a pending deal directly.
Use the published market ID
Pass the chain-assigned numeric deal ID, not a proposal CID or application order number. A returned allocation identifies client, provider, piece and permitted size and term. Reconcile these values before linking the records.
{"jsonrpc":"2.0","id":1,"method":"Filecoin.StateGetAllocationForPendingDeal","params":[5432,[]]}
Handle a null result as a lifecycle question
Lotus returns null when it cannot find a pending allocation for that deal. Check verified status and activation state, then inspect a provider claim if onboarding has completed. A null at the current head alone cannot prove the original order was never funded.
docs.filecoin.io StateGetAllocationForPendingDeal · docs.filecoin.io StateMarketStorageDeal