Prepare a Gavel Auction
prepare_create_auction_calldataBuilds an unsigned transaction blueprint for creating a borrow auction — you post collateral and ask lenders to compete to lend against it — including the prerequisite collateral approval.
Every term is yours to set: which collateral and how much, which loan token and how much, the maximum repayment you will accept, the loan duration, how long the auction runs, and the bid step. This tool encodes what you specify and warns about consequences; it does not propose terms, rates or a loan size.
Lenders bid DOWN from your maximum repayment, so max_repayment is your worst acceptable price — set it too low and the auction may attract no bids.
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 |
| bid_step | No | Minimum improvement between bids, decimal string in loan-token units. | 0 |
| loan_token | Yes | Loan token address (what you want to borrow). | |
| loan_amount | Yes | Amount to borrow, decimal string, e.g. '2500.00'. | |
| max_repayment | Yes | The most you will repay at maturity, decimal string. Lenders bid below this. | |
| borrower_address | Yes | Your address — used to read collateral balance and allowance. | |
| collateral_token | Yes | Collateral token address. See get_protocol_reference for whitelisted tokens. | |
| collateral_amount | Yes | Collateral to post, decimal string in token units, e.g. '0.05'. | |
| loan_duration_days | Yes | Loan term in days. | |
| auction_duration_hours | Yes | How long the auction accepts bids, in hours. |