Token-gating with ERC-20

Hey everyone! Does anyone know of a solution for token-gating an area of your LAND with an ER-C20 token? I’m looking to create a ‘club house’ for token holders. Bonus points if you can set a token quantity for access. Thanks in advance!

this should work Change the const wearablesToCheck to the tokens of your choice, Then in the checkWearables() function check for the token using

Thank you @dogman! That makes perfect sense. I’ll invite you to the first meta-rager we throw at the ol estate :call_me_hand:t3:

1 Like