Prepare a Gavel Bid
prepare_bid_calldataBuilds an unsigned transaction blueprint for placing a bid on a Gavel auction, including the prerequisite ERC-20 approval when the current allowance is short.
You supply the auction and the repayment amount you are willing to accept; this tool validates them against live auction state and encodes the call. It does not choose an auction, a rate or a size for you — use find_auctions_matching_criteria to filter by your own criteria first.
Bidding on Gavel is a reverse auction: a LOWER repayment is a more competitive bid and a lower yield to you as lender. Each bid must undercut the current best by at least the auction's bid step.
Returns an unsigned transaction blueprint for the requested intent. The user is responsible for reviewing, signing, and broadcasting via their own wallet. Aletheia does not hold keys or dispatch transactions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | No | Network. Default 'arbitrum-one' (mainnet, real funds). | arbitrum-one |
| auction_id | Yes | The auction to bid on. | |
| lender_address | Yes | Your address — used to read your balance and current allowance. | |
| repayment_amount | Yes | The total repayment you are bidding, as a decimal string in loan-token units, e.g. '5320.00'. |