Prepare a Bopster claim
prepare_claimCalculates what a wallet can claim from a Bopster market on Base and builds the unsigned transactions in order: finalize or emergency refund first if needed, then claim or claimRefund.
Instructions
Work out what a wallet can take out of a Bopster market on Base and build the unsigned transactions to do it, in order: settling the market first when it's ready but nobody has (finalize, or the emergency refund path), then claim() or claimRefund(). Says why when there's nothing to claim. Non-custodial: this server never holds keys or sends anything.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| market | Yes | The Bopster market contract address (0x...). | |
| wallet | Yes | The wallet that will sign and send the transactions (0x...). Balances and positions are read for this address. |