Wallet Linking
Link wallets from Ethereum Mainnet to the Abstract Global Wallet.
You may want to allow users to perform actions with their Abstract Global Wallet (AGW) based on information from their Ethereum Mainnet wallet, for example to:
- Check if a user is whitelisted for an NFT mint based on their Ethereum Mainnet wallet.
- Read what NFTs or tokens the user holds in their Ethereum Mainnet wallet.
For these use cases, Abstract provides the DelegateRegistry contract that allows users to create a link between their Ethereum Mainnet wallet and their AGW.
This link is created by having users sign a transaction on Ethereum Mainnet that includes their Abstract Global Wallet address; creating a way for applications to read what wallets are linked to an AGW.
The linking process is available in the SDK to enable you to perform the link in your application, however users can also perform the link directly on Abstract’s Global Linking page.
Abstract Global Linking Site
Link an Ethereum Mainnet wallet to your Abstract Global Wallet.
Abstract Global Linking Site Testnet
Link a Sepolia Testnet wallet to your testnet Abstract Global Wallet.
How It Works
Link wallets
On Ethereum Mainnet, users submit a transaction that calls the delegateAll function on the DelegateRegistry contract to initialize a link between their Ethereum Mainnet wallet and their Abstract Global Wallet:
Once submitted, the delegation information is bridged from Ethereum to Abstract via the BridgeHub contract to become available on Abstract.
You can trigger this flow in your application by using the linkToAgw function.
Check linked wallets
To view the linked EOAs for an AGW and vice versa, the ExclusiveDelegateResolver contract can be used, which contains the following functions to read delegation information:
This information can be read using the SDK methods; getLinkedAgw and getLinkedAccounts.
Was this page helpful?