Got it!
My idea was to drag the item to a market module, and when I did so, I would send an opcode, where I would send the item's position, stackpos, and ID (information I already have), and the server would be able to get the exact item (uid) based on this pos, player, stackpos, ID...