ZC market info
/sigmafi/zc/infoThe snapshot every ZC read is answered from, the USD oracle, both markets with each contract's tree hash, template hash and address and each expression's hash, and the zcs1 defaults. Poll it with ifRevision: a 304 means nothing a read returns has changed.
Query parameters
ifRevisioninteger · int64Answer 304 when the snapshot revision still equals this.
Responses
200Market infoZcInfo▶
▶
atZcAtThe snapshot a read or quote was taken from.
heightintegerblockIdstringindexedHeightintegerrevisioninteger · int64Changes whenever anything a read returns changes, the mempool included.
cutbooleanTrue when the book is at its size cap and left boxes out.
mempoolbooleanWhether unconfirmed boxes are laid over the confirmed book.
networkstringone ofmainnettestnetprofilestringThe off-chain profile the client follows,
zcs1.pinnedCommitstringThe Sigma-Finance-V2 commit the contract trees are pinned at.
deployedbooleanWhether any ZC box exists.
▶
oracleobjectnullableboxIdstringnanoErgPerUsdstringusdPerErgstringupdatedHeightintegerageintegerpendingbooleanThe oracle is the box one pending refresh creates; trades price and read it while it confirms.
refreshPendingbooleanCompeting pending refreshes spend the confirmed oracle box; trades reading it wait a block.
marketsobject[]defaultsobject
304Nothing changed since `ifRevision`.▶
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