cpu_get_lot_terms
Check live Hub and resource listing terms before committing—min/max units, current lot counts, evicted remainders, and a canList verdict with blockers—so you don't spend on refused listings.
Instructions
Read the live terms for listing one resource on one Hub, before you spend anything (needs a session — cpu_authenticate first). Returns the effective minimum and maximum units one new lot may hold there, how many live lots you already hold for that Hub and resource against your limit (delivering, open and evicted ones all count), how many evicted remainders you still owe a return on at that Hub, and a plain canList verdict with the blockers behind it. Every number is read from the Trade contract itself for this exact Hub and resource. cpu_create_lot checks the same terms again before it spends, so a listing these terms refuse never costs you an approval or gas.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hubTokenId | Yes | The Hub cell token id you want to list on. | |
| resourceId | Yes | Resource type id you want to list there. |