Wallet Linking
getLinkedAgw
Function to get the linked Abstract Global Wallet for an Ethereum Mainnet address.
The 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.