Add collateral
/sigmafi/zc/bonds/{assetId}/recollateralizeapi_keyAdd ERG, more of a token the bond holds, or a token bond's repayment token. Open 60 blocks after the bond last moved, and only to its borrower.
Path parameters
assetIdstringrequiredA bond asset id: the id of the order box its fill spent.
Request body
ZcRecollateralizeRequest · application/jsonnanoErgstring▶
tokensZcToken[]tokenIdstringrequiredamountstringrequired
▶
limitsZcLimitsBounds on the rebuilt transaction. For fills, buys, repays, recollateralizations and claims, amounts are in the action's market unit (nanoERG for ERG, fee included; raw units for SigUSD; nanoERG for actions with no market). For posts (orders, offers, asks, lots, fractionalize and wraps),
maxPayis always in nanoERG (box value plus miner fee), since any token capital or collateral is fixed directly by the request body. Outside them the send answers 409.maxPaystringminReceivestring
Responses
200The transaction was sent; `outcome` says whether the node accepted it.ZcResult▶
txIdstringnullableNone while the write is held.
outcomestringThe node's answer.
held: the write reads the box a pending oracle refresh creates, and a miner could reach it before that refresh, so nothing was sent yet. The client tries it again every 30 seconds for 10 minutes, rebuilt and checked againstlimitseach time, and sends it once the refresh confirms.one ofacceptedrejecteduncertainheldreasonstringWhy a write is held.
retriesUntilinteger · int64When a held write stops being tried (ms since the epoch).
boxIdstringnullableThe transaction's first output.
assetIdstringnullableThe bond asset a fill minted.
warningsstring[]
400A malformed field, or terms the contracts refuse.ApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description
403Missing or wrong api_key.ApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description
404No such box or token, or not this wallet's.ApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description
409A pending transaction already spends a box this needs, or the rebuilt transaction is outside `limits`. Re-quote and resend.ApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description
422Valid, but not possible now; the message gives the reason the check lists in `refusals`.ApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description
503ZC tracking is off or not seeded, or the node, its index or the wallet did not answer. Nothing was sent.ApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description