getLinkedAgw function is available when extending a Viem Client with linkableWalletActions. It can be used to check if an Ethereum Mainnet address has linked an Abstract Global Wallet.
Usage
Parameters
The Ethereum Mainnet address to check for a linked AGW. If not provided, defaults to the connected account’s address.
Returns
The address of the linked Abstract Global Wallet, or
undefined if no AGW is linked.