matchingOrder function for seaport order?
Is there a function which creates a matching order for a seaport protocol order?
It is the function public async fulfillOrder({ order, accountAddress, recipientAddress, }: { order: OrderV2; accountAddress: string; recipientAddress?: string; }
hello @risingsun007!
opensea-js does not have functionality to match orders for seaport -- we built a separate package seaport-js for interacting with the contract. More specifically, you can use this method once you've gotten the order you want to fulfill!
If you call the fullfillorder on the opensea-js library it calls the seaport library version of fullfullorder
(https://github.com/ProjectOpenSea/opensea-js/blob/ff0a7a58d6d8f824ffabd16910afa59f38df155d/src/sdk.ts#L1528)
Sorry, I think i misunderstood your question. Here is how you create a counter order given a seaport order