• Experimental

    useResolveAddress is a hook that resolves n EVM address from a Lens Handle.

    This hook will not execute until the returned function is called.

    Returns UseDeferredTask<EvmAddress | null, UnspecifiedError, HandleToAddressRequest>

    Example

    const { called,  error, loading, execute } = useResolveAddress();
    

    Simple example:

    const { called, error, loading, execute } = useResolveAddress();

    const callback = async () => {
    const address = await execute({ handle: 'lens/wagmi' });

    console.log(address);
    }

    This hook is experimental and may change in the future.