React Hooks Reference
connect

connect

Connects a given signer to the SafeProvider.

Usage


_15
import { useSafe } from '@safe-global/safe-react-hooks'
_15
_15
function Connect() {
_15
const { connect } = useSafe()
_15
_15
const signerAddress = '0x...'
_15
_15
return (
_15
<button onClick={() => connect(signerAddress)}>
_15
Connect
_15
</button>
_15
)
_15
}
_15
_15
export default Connect

Parameters

signer

  • Type: string

The address of the signer.


_10
connect(
_10
'0x...'
_10
)

Was this page helpful?