useSafe
Provides a set of utilities to access different information about the Safe connected to the SafeProvider
.
Usage
_22import { useSafe } from '@safe-global/safe-react-hooks'_22_22function App() {_22 const {_22 isInitialized,_22 connect,_22 disconnect,_22 isOwnerConnected,_22 isSignerConnected,_22 getBalance,_22 getChain,_22 getTransaction,_22 getTransactions,_22 getPendingTransactions,_22 getSafeInfo,_22 getSignerAddress_22 } = useSafe()_22_22 // ..._22}_22_22export default App
Returns
UseSafeReturnType
_10import { UseSafeReturnType } from '@safe-global/safe-react-hooks'