Gavel Positions for an Address
get_user_positionsReturns every Gavel position an address holds — as borrower, as winning lender, or as a bidder on an auction that has not closed.
Each position carries its lifecycle state (auction_open, bid_placed, bid_lost, active, matured_unclaimed, repaid, defaulted), the maturity date and time remaining, the counterparty, and 'next_action_available' — the one thing this address can do next (nothing, repay, claim_collateral, claim_repayment, claim_refund). 'lifecycle_summary' is a plain-English sentence you can quote to the user directly.
Reads public chain data via the Aletheia indexer; no signed authorisation is needed and anyone can query any address. The chain is authoritative — a transaction in the current block may not be indexed yet.
Returns: { address, network, positions[], count, settled_hidden }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | The address to inspect. Any valid Ethereum address; it need not be the caller. | |
| include_settled | No | Include finished positions (repaid, defaulted, lost bids). Default false — only what is still live. |