React Hooks Reference
useSafe

useSafe

Provides a set of utilities to access different information about the Safe connected to the SafeProvider.

Usage


_22
import { useSafe } from '@safe-global/safe-react-hooks'
_22
_22
function 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
_22
export default App

Returns

UseSafeReturnType


_10
import { UseSafeReturnType } from '@safe-global/safe-react-hooks'

isInitialized

connect

disconnect

isOwnerConnected

isSignerConnected

getBalance

getChain

getTransaction

getTransactions

getPendingTransactions

getSafeInfo

getSignerAddress

Was this page helpful?