How is withdrawExitMany currently supported in the latest matic.js? how many times does a user have to sign the exit transaction on Ethereum to claim the 5 NFTs?

Created by Sourajyoti Gupta, Modified on Fri, 28 Jul, 2023 at 7:31 PM by Sourajyoti Gupta

According to maticjs withdrawExitMany function is only supported till Matic.js v3.3.0. 

What we can instead use is the withdrawExitOnIndex() method 

GIST TO CODESAMPLE:

  1. burn 5 NFTs in one batch tx on Polygon: withdrawBatch.ts

  2. check if the burn transaction hash has been checkpointed: isCheckpointed.ts

  3. exit the batch on Ethereum & claim the 5 NFTs on Ethereum: withdrawExitOnIndexERC721.ts


with withdrawExitMany() being deprecated. 

how many times does a user have to sign the exit transaction on Ethereum to claim the 5 NFTs? Answer: the number of NFTs you are burning = 5 times

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article