Skip to main content

Function: getSigner()

getSigner(external?): Promise <Signer>

Request a signer object from the global ethereum object.

Parameters

external?: Eip1193Provider

A valid external provider. Defaults to globalThis.ethereum if not provided.

Returns

Promise <Signer>

A promise that resolves to a valid web3 provider/signer

Throws

If no global ethereum object is available.

Source

@tableland/sdk/src/helpers/ethers.ts:207