Admin Guide
EVM access rules
Create self-service ERC-20, ERC-721 and ERC-1155 Discord access rules on Ethereum Mainnet and Robinhood Mainnet.
Supported EVM networks
- Ethereum Mainnet: Chain ID 1.
- Robinhood Mainnet: Chain ID 4663 (0x1237).
- Robinhood Testnet is not offered for new customer rule configuration.
Supported asset standards
- ERC-20: fungible-token balance gating.
- ERC-721: NFT ownership gating, optionally targeting a specific Token ID.
- ERC-1155: multi-token gating with a required Token ID.
Create an EVM rule
- 1Open your server → Access Control → Rules.
- 2Click Add a rule.
- 3Choose EVM.
- 4Select Ethereum Mainnet or Robinhood Mainnet.
- 5Enter a Rule Name.
- 6Choose ERC-20, ERC-721 or ERC-1155.
- 7Enter the EVM Contract Address.
- 8For ERC-721, optionally enter a Token ID to target one NFT; leave it empty to accept any NFT from the contract.
- 9For ERC-1155, enter the required Token ID.
- 10Enter Minimum Balance.
- 11Select the Discord Role controlled by the rule.
- 12Leave the rule enabled unless you intentionally want to save it inactive.
- 13Create the rule.
EVM rule setup is self-service
Server administrators can create and edit supported EVM rules directly from Access Control without asking the Medusa team to configure the contract manually.
Network identity matters
An EVM rule always evaluates the contract on the network selected for that rule, using the member’s wallets linked on that same network. The same contract address can exist on more than one EVM network, so Ethereum Mainnet and Robinhood Mainnet are treated as distinct rule contexts.
Balance and Token ID behavior
For ERC-20, Minimum Balance is evaluated against the configured token balance. For ERC-721, a blank Token ID means any NFT in the contract can qualify. ERC-1155 requires a Token ID because balances are token-ID specific.
Trait-based EVM rules
ERC-721 rules on Ethereum Mainnet and Robinhood Mainnet can count only the NFTs that have specific traits, for example a class, a rarity or a background.
- 1Create or edit an ERC-721 rule and leave Token ID empty.
- 2Enter the contract address, then under Access condition choose Specific traits.
- 3Pick a Trait and a Value from the collection list, then click Add. Repeat for more traits.
- 4Set Minimum Balance: it counts only the NFTs that have at least one of the selected traits.
Where trait data comes from
Traits and ownership for trait rules are read from OpenSea, so the collection must be indexed there. If OpenSea cannot be reached, Medusa keeps current roles and checks again later. Trait rules are not available for ERC-20 or ERC-1155.
Automatic re-checks
- Members who hold a role granted by an EVM rule are re-checked every 2 hours: a member who sold or transferred the asset loses the role.
- ERC-721 and ERC-1155 assets listed for sale on OpenSea, on Ethereum and Robinhood Mainnet, do not count towards the rule. Listings are checked every 10 minutes and the role is restored when the asset is delisted.
- Removing a wallet, linking a wallet or using Refresh roles re-checks the member immediately.
Members verified elsewhere are not touched
The automatic re-check only acts on members who linked a wallet on the rule network in Medusa. A member who holds the role but never linked such a wallet keeps it until they link a wallet or refresh. If ownership or listings cannot be verified, nothing is removed.
Capacity accounting
EVM rules count toward the server rule allowance shown in Billing. EVM contracts also participate in the server asset-capacity model used by the Access Control interface.