Merkle Tree for NFT Offers on Marketplaces

Naz
reNFTLabs
Published in
4 min readFeb 5

Searching through crypto twitter or Google only yields results about how to use merkle trees for NFT mint whitelists or resources that simply explain the data structure. This article will hopefully fill in the missing piece: how do marketplaces like blur and seaport use merkle trees for trait offers? In fact, this article will answer a more generalised question: how to use a merkle tree data structure to express an arbitrary set of token ids as part of the tree.

Seaport contracts define OfferItem and ConsidertaionItem structs:

Naz
reNFTLabs

I crave knowledge. Mathematical knowledge and then computer science.