Fractionalize a bond unit
/sigmafi/zc/bonds/{assetId}/fractionalizeapi_keyPut this wallet's bond unit into a share mint request. Its box id becomes the share token's id once a batcher mints it (POST /sigmafi/zc/mints/{boxId}). offersBuying counts the offers whose share bounds accept the auction terms.
Path parameters
assetIdstringrequiredA bond asset id: the id of the order box its fill spent.
Request body
ZcFractionalizeRequest · application/jsonvaultstringDefault selective. Lend offers buy only selective and dutch shares. A dutch vault on a SigUSD bond always auctions the 0.001 ERG its box keeps after a liquidation, so partial claims wait for that auction. A bond holding more than 30 collateral tokens can only be split into a plain vault.
one ofselectivedutchplainopeningBpsinteger · int64Required for selective and dutch.
floorBpsinteger · int64Required for selective and dutch.
lengthinteger · int64Default 720.
expiryinteger · int64Default the greater of 2160 and
length.mintFeeNanoErgstringDefault 5000000.
pullFeeNanoErgstringDefault 5000000.
shareCountstringDefault 100000000.
▶
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