OwlGate

v1.3.0
xyz.owlgate/fair-price Checked 4 days ago Published 28 days ago

TapeOut rigs: fair prices and buys on BNB Chain; list, bid, fill, cancel vouchers on X Layer.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

fair_price TapeOut Rig Fair Price

Use when you want to know what a TapeOut rig is worth, or which listed rigs sit below their recent sales. Fair price of TapeOut rigs on BNB Chain: median BNB price of recent sales of the same CPU and mining power (12 h, else 24 h, 48 h, 7 d). With cp + vw/uw returns one quote; with no arguments returns rigs listed now with their fair price and discount vs fair, deepest discount first, each with a buy link on owlgate.xyz. A rig that lost its PoD best seat in the last 7 days carries `seat` (task, power before/now) and is priced at its power now. Estimate, not advice.

ParameterTypeDescription
cpstringCPU contract address (0x…), optional
limitnumberMax listings when no cp is given (default 20, max 100)
uwnumberU mining power, optional
vwnumberV mining power, optional

deals TapeOut Rigs Listed Below Fair Price

Use when you want a shortlist of TapeOut rigs to consider buying, before calling buy. TapeOut mining rigs on BNB Chain listed now below their fair price (median BNB price of recent sales of the same CPU and mining power), only where the fair price rests on at least 3 sales (raise minSales for stricter results; every item shows its sales count). Each item: price, fair, sales, hours, underFairPct and a buy link on owlgate.xyz (the buyer signs in their own wallet; OwlGate adds a 1% fee, 0.8% for subscribers; the exact fee is in the buy tx). Deepest discount first. Estimate, not advice; listings c…

ParameterTypeDescription
limitnumberMax items (default 10, max 50)
minDiscountPctnumberMinimum % below fair (default 5)
minSalesnumberMinimum sales behind the fair price (default 3, lowest allowed 3)

buy Buy a TapeOut Rig (unsigned tx)

Unsigned transaction to buy one TapeOut rig listed on BNB Chain through the OwlGate router (price + OwlGate fee: 1% standard, 0.8% for subscribers, read from the router for `from`), dry-run from `from`. Use cp + tid from a deals or fair_price item. Returns steps for the buyer to sign and send with their own wallet; OwlGate never signs or holds funds.

ParameterTypeDescription
cp *stringCPU contract address of the rig (0x…)
from *stringBuyer wallet address (0x…)
tid *stringRig token id

xl_market TapeOut Rig Voucher Market (X Layer)

TapeOut Rig Bridge vouchers on X Layer (chain 196): each voucher with mining power, BEM/day, holder, open asks and offers (OKB), plus the best voucher by BEM/day. Read-only.

xl_build_order Build an X Layer Voucher Order (unsigned)

Unsigned steps to place an order on the X Layer voucher market (Seaport): kind list (sell one voucher you hold, price in OKB), offer (bid on one voucher, paid in WOKB) or coll (bid on any voucher). The seller pays a 0.75% OwlGate fee on fill. Steps: approve/wrap if needed (send), sign typed data (free), then publish with xl_post_order (pass body.order and the signature). The wallet signs itself; OwlGate never holds funds.

ParameterTypeDescription
from *stringWallet address (0x…)
kind *string
price *stringPrice in OKB, 0.01 to 500
daysnumberOrder lifetime in days (default 1)
vstringVoucher id (not needed for coll)

xl_fill Fill an X Layer Voucher Order (unsigned)

Unsigned steps to take an open order on the X Layer voucher market (Seaport, chain 196). side buy: pay a listing (ask.hash from xl_market) in OKB. side sell: accept an offer on a voucher you hold (v = voucher id; hash optional, default = best open offer or collection offer). The seller pays the 0.75% OwlGate fee out of the price. Dry-run from `from`; the wallet signs and sends itself, OwlGate never holds funds.

ParameterTypeDescription
from *stringWallet address (0x…)
side *string
hashstringOrder hash (ask.hash for buy; offer or collection offer hash for sell, optional)
vstringVoucher id you hold (sell only)

xl_post_order Publish a Signed X Layer Order

Publish an order you built with xl_build_order and signed (EIP-712 typed data, free, no gas) to the OwlGate book on X Layer: pass the order object from the post step and your signature. OwlGate checks the signature, funds and approval before it goes live. Returns the order hash (use it with xl_cancel).

ParameterTypeDescription
order *objectbody.order from the xl_build_order post step
signature *stringSignature from the sign step (0x…)

xl_cancel Cancel X Layer Voucher Orders (unsigned)

Unsigned step to cancel one of your open orders on the X Layer voucher market (hash), or all of them at once (all = true, Seaport incrementCounter). The wallet signs and sends itself.

ParameterTypeDescription
from *stringWallet address (0x…)
allbooleanCancel every open order of this wallet
hashstringOrder hash to cancel