connect
Connects a given signer to the SafeProvider
.
Usage
_15import { useSafe } from '@safe-global/safe-react-hooks'_15_15function 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_15export default Connect
Parameters
signer
- Type:
string
The address of the signer.
_10connect(_10 '0x...'_10)