Skip to main content
POST
Records a top-up of the market’s insurance fund once its transaction has mined. This is the confirm step for Top Up Insurance Fund, which has no confirm call of its own. The record then appears in recentTopUps on Get Insurance Status and in List Transactions. The API reads the receipt and matches its logs, not the calldata, so a top-up signed outside this API can be recorded too. It accepts either of two shapes, and booked says which one it found. A plain transfer raises the fund’s balance, so the reserve can pay it out, but the fund does not count it in its lifetime deposits. On an earlier fund implementation that cannot book a top-up, a plain transfer is the only way to add capital. A protocol-fee sweep is not a top-up and is refused here. Record it through Sweep Protocol Fees instead.

Path Parameters

string
required
Market ID.

Body Parameters

string
required
Hash of the mined top-up. For a top-up built by this API, that is the topUp step’s hash, not the approval’s.
string
required
The amount the transaction moved, as a positive decimal string in the borrow asset. It must match the receipt to the smallest unit.
string
required
The wallet the top-up came from, as a 0x-prefixed 20-byte address. It must be the source the receipt records.

Response Fields

object
TX_NOT_FOUND is the expected answer when the transaction has not mined yet. Wait for a confirmation and retry. A booked top-up nobody records is still picked up by Get Insurance Status if it falls within the last 50,000 blocks.

Error Codes