ModuleSDK
Accounts
getAccount

getAccount

Creates a new account object.

Usage

const account = await getAccount({
  address: '0x1234...',
  type: 'safe',
})

Parameters

address

The address of the account.

type

The type of the account.

initCode (optional)

The init code of the account, only requires when the account is not yet deployed.

deployedOnChains (optional)

  • Type: Number[]

The array of chains that the account is deployed on already.

Returns

account

The account object.