Wallet Linking
Reading Wallet Links in Solidity
How to read links between Ethereum wallets and Abstract Global Wallets in Solidity.
The ExclusiveDelegateResolver contract provides functions to read wallet links in your Solidity smart contracts. This allows you to build features like:
- Checking if a user has linked their AGW before allowing them to mint an NFT
- Allowing users to claim tokens based on NFTs they own in their Ethereum Mainnet wallet
Reading Links
First, define the rights identifier used for AGW links:
Then use one of the following functions to read link information:
Check if an EOA has linked an AGW
Use exclusiveWalletByRights
to check if an EOA has an AGW linked:
Check NFT owner’s linked AGW
Use exclusiveOwnerByRights
to check if an NFT owner has linked an AGW:
Was this page helpful?