Tooling
Module SDK
Accounts API
getAccount

⚠️ Deprecation Notice

ModuleSDK was developed by Rhinestone and is no longer actively supported. For new projects, we recommend using the Rhinestone SDK instead.

Rhinestone SDK Documentation (opens in a new tab)

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.