Prerequisites
Before you begin, ensure that you’ve:- Completed the
Borrow USDC against cirBTC collateral
quickstart and hold at least one loan in
activestatus. - Held sufficient cirBTC in your Mint balance to cover the additional collateral you plan to post.
Steps
1
Submit the collateral request
Call
The endpoint returns an Save the job
POST /v1/borrow/loans/{id}/collateral
with the amount of cirBTC you want to add in raw uint256 base units.onchainJob with jobType: add_collateral:id. You poll it in the next step.2
Poll the job to completion
Circle builds, signs, and submits the onchain UserOperation for the added
collateral. The job progresses through
submitted and confirmed to
completed. Poll
GET /v1/borrow/jobs/{id}
until you see the terminal state.3
Confirm the updated position
Fetch the loan to confirm the added collateral is reflected and the health
factor has improved:
collateralAmount on the loan should now include the added amount, and
healthFactor should be higher than it was before.