Skip to content

getAddress

getAddress returns the EOA address of the Signer.

This method must be called after authenticate. Otherwise, this method will throw an error with the message Not Authenticated.

Usage

example.ts
import { createLitSignerWithAuthMethod } from "./lit";

 
const litSigner = new createLitSignerWithAuthMethod();
 
const address = await litSigner.getAddress();

Returns

Promise<Address>

A Promise containing the address of the Signer.