Skip to main content

useSigner

Returns the current signer.

Usage

import {useSigner} from '@incirlabs/react-ethooks';

export default function MyComponent() {
const {signer} = useSigner();

// Do something with the signer
}

Returns

An object containing with the following properties:

signer

The current signer. It will be null if the Provider didn't connect yet.

Type
Signer | null