LatestJSON
Ask AI
LatestJSON lists all rooms, newest first.
Command
gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/nym-tradewindow001/rooms.LatestJSON(,)"
Result
Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.
Package rooms is the on-chain trade window.
Two parties share a room. Each one puts assets on their own side: native coins (GNOT and any other bank denom), GRC20 tokens from the registry at gno.land/r/nt/grc20reg/v0, and GRC721 NFTs from collections registered with this realm (see RegisterCollection). The realm holds the deposits.
Every change to the room raises its version. A party locks the room by naming the exact version they reviewed, so a lock can never apply to contents the party has not seen. When both sides hold a lock on the current version, the second lock swaps everything in the same transaction: the maker's side goes to the taker and the taker's side goes to the maker.
Until that moment each party can withdraw their own deposits, and either party can cancel the room, which returns every deposit to its owner. An expired room can no longer settle; its deposits stay withdrawable, and anyone may cancel it to send them home.
A maker can also turn a room into an offer (see Offer): their side plus an exact list of what they want in return. The first account allowed to take the other seat that puts in exactly that list completes the trade in one transaction (see Fill).
On settlement the realm keeps a service fee on coins and tokens (see fee.gno); NFTs, withdrawals and cancellations pay nothing.
LatestJSON lists all rooms, newest first.
gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/nym-tradewindow001/rooms.LatestJSON(,)"
Evaluate any read-only Gno expression against gno.land/r/nym-tradewindow001/rooms, for example a function call with arguments.
// Enter an expression above