useSigner

Hook for getting the ethers signer of the connected wallet.

Example

import { useSigner, Web3Button } from "@thirdweb-dev/react";
function App() {
const signer = useSigner();
}
function useSigner(): Signer | undefined;

Returns

let returnType: Signer | undefined;

Signer if wallet is connected, otherwise undefined .