Read a Chia offer from the maker's side before displaying a quote
A marketplace can reverse a trade by labeling the maker's offered and requested assets as though they were from the taker's perspective. Decode the offer itself to establish direction.
Inspect both asset maps
Set OFFER to the complete encoded offer string. Read offered and requested with their asset IDs and amounts. For XCH the smallest unit is the mojo, with one trillion mojos per XCH.
req=$(jq -cn --arg offer "$OFFER" '{offer:$offer}')
chia rpc wallet get_offer_summary "$req" | jq '.summary | {offered, requested, fees}'
Translate the trade for its viewer
If the maker offers a CAT and requests 1000000000000 mojos of XCH, the taker would give one XCH and receive the CAT. Keep fees separate and use the token's display units consistently. A decoded summary explains terms but does not establish that the offered coins remain unspent.