opensea-js icon indicating copy to clipboard operation
opensea-js copied to clipboard

How to bid on multiple tokens at once with API

Open 0R61 opened this issue 4 years ago • 7 comments

I understand this: The identifierOrCriteria represents either the ERC721 or ERC1155 token identifier or, in the case of a criteria-based item type, a merkle root composed of the valid set of token identifiers for the item. This value will be ignored for Ether and ERC20 item types, and can optionally be zero for criteria-based item types to allow for any identifier.

But how can I craft the merkle root from a set of token ids for example 3556,4557 and 3223? I have analyzed the collection offer popups when you do it manually through OpenSea website but and there the value of the identifierOrCriteria parameter is: 115209989443044873291111670937686544922043298494504882064979471203257419400307

How can I create this value?

0R61 avatar Jun 27 '22 18:06 0R61

Did you figure this out?

benharbit avatar Jul 17 '22 16:07 benharbit

#479

kophyo1234 avatar Jul 17 '22 17:07 kophyo1234

#479

huh?

benharbit avatar Jul 17 '22 17:07 benharbit

Did you figure this out?

Yes I created the merkle root value

0R61 avatar Jul 17 '22 18:07 0R61

Did you figure this out?

Yes I created the merkle root value

Were you able to calculate the exact value? I have been trying using the seaport-js utils but it doesn't return the correct root.

jeremicna avatar Jul 17 '22 18:07 jeremicna

I haven't figured it out yet.

benharbit avatar Jul 22 '22 14:07 benharbit

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. If you believe this was a mistake, please comment.

github-actions[bot] avatar May 24 '23 04:05 github-actions[bot]