getDefaultLightAccountFactoryAddress

1function getDefaultLightAccountFactoryAddress(chain, version): `0x${string}`;

Defined in: account-kit/smart-contracts/src/light-account/utils.ts:91

Utility method returning the default light account factory address given a Chain object

Parameters

ParameterTypeDescription

chain

Chain

a Chain object

version

LightAccountVersion<"LightAccount">

the version of the light account to get the factory address for

Returns

`0x${string}`

an for the given chain

Throws

if the chain doesn’t have an address currently deployed