Skip to main content
The AbstractClient includes a linkToAgw method that can be used to create a link between an Ethereum Mainnet wallet and an Abstract Global Wallet.

Usage

Parameters

Address
required
The address of the Abstract Global Wallet to link to.
boolean
required
Whether to enable or disable the link between the wallets.
Chain
required
The Abstract chain to create the link on (e.g. abstractTestnet).
Account
The account to use for the transaction.

Returns

Hash
The transaction hash of the L1 transaction that initiated the link.
() => Promise<Hash>
A function that returns a Promise resolving to the L2 transaction hash once the L1 transaction is confirmed.