Hook to get the approved signer of the connected Abstract Global Wallet.
Use the useGlobalWalletSignerAccount hook to retrieve the account
approved to sign transactions for the connected Abstract Global Wallet. This is helpful if you need to acces the underlying EOA
approved to sign transactions for the Abstract Global Wallet smart contract.
import{ useGlobalWalletSignerAccount }from"@abstract-foundation/agw-react";exportdefaultfunctionApp(){const{ address, status }=useGlobalWalletSignerAccount();if(status ==="disconnected")return<div>Disconnected</div>;if(status ==="connecting"|| status ==="reconnecting"){return<div>Connecting...</div>;}return(<div>Connected to EOA:{address}Status:{status}</div>);}