Skip to content
Alchemy Logo

getDefaultLightAccountFactoryAddress

function 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

ParameterTypeDescription

chain

Chain

a Chain object

version

LightAccountVersion<"LightAccount">

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

`0x${string}`

an for the given chain

if the chain doesn't have an address currently deployed

Was this page helpful?