hand-pointerGONKA OTC Market

Gonka is a decentralized AI infrastructure designed to optimize computational power specifically for AI model training and inference. HEX provides OTC Market for native GNK tokens.

HEX provides secure and transparent over-the-counter marketplace for native GNK tokens, enables direct, trustless GNK-for-USDT trades across 20+ supported networks including TON, Stellar, Solana, BTC, NEAR, and more, without intermediaries or counterparty risk. All trades are executed fully on-chain via smart contracts, giving users institutional-grade security, multi-chain liquidity, and guaranteed settlement.

How it works

  1. The seller creates a GNK sell order.

  2. The buyer deposits USDT from any supported chain.

  3. HOT Bridge and Omni Balance handle secure multi-chain transfers.

  4. The hex smart contract settles the trade automatically without manual steps, no trust assumptions.

How to Use the OTC Market

  1. Connect Two Wallets:

    1. Cosmos Wallet: Deposit or withdraw $GNK

    2. Any Other Wallet: Deposit or withdraw $USDT

  2. Ensure your wallets are correctly connected to view your balance.

  3. Now you can buy or sell your GNK with open OTC deals.

    1. Select the order and user you wish to trade with.

    2. Click on the "Buy" option.

    3. Enter the desired amount.

    4. Confirm the transaction using your wallet.

  4. After completing the OTC trade, your GNK and USDT tokens will appear in your HEX Balance. You can either continue trading them without gas fees or withdraw them to the native chain. To withdraw tokens to your wallet, click "Withdraw" and confirm the transaction.

  5. To initiate a trade on your own terms, select "Create Order." Enter the quantity you wish to sell and set your preferred price.

Fees

Item
Maker
Taker

Protocol fee

10-100 bps

0 bps

Gas

Paid by the solver/relayer that submits the intent

Paid by the solver/relayer that submits the intent

API

The frontend assembles the following payload before funding or filling an order (escrow.fi.tg):

Field
Description

price

12-decimal fixed price (quoted in counter-asset terms).

src_token / dst_token

OmniToken identifiers.

decimal_from / decimal_to

Token decimals pulled from omni registry.

receive_src_to / refund_src_to

NEAR receiver, gas budget and memo for settlement and refunds (defaults to intents.near).

protocol_fees

Percentage fee (basis points) and collector (intents.tg).

maker

Omni address of the wallet posting the order.

deadline

Nanosecond timestamp (default now + 30 days).

partial_fills_allowed

Boolean flag (frontend sets true).

taker_whitelist

Optional allowlist (defaults to empty array).

salt

UUID to ensure uniqueness.

Contract Messages with `transfer` intent

Fill messages embed the same params plus a Fill action pointing settlement receipts back to intents.near:

REST API (https://api.hot-labs.org/api/v1/exchange/limit_orders/gonka)

Method
Path
Body
Notes

GET

/

Returns { orders: { bid: OrderType[], ask: OrderType[] } }. Requires Authorization header for privileged data.

POST

/

{ "params": { … } }

Mirrors the payload sent on-chain to keep off-chain indexers in sync.

Each OrderType matches the fields from otc.ts: balances (balance, total_balance), closed, deadline, and the nested params.

aiohttp Example

Use the same params structure that the Fund transaction emits to ensure on-chain and off-chain states stay aligned.

Last updated