getAccount
Creates a new account object.
Usage
const account = await getAccount({
address: '0x1234...',
type: 'safe',
})
Parameters
address
The address of the account.
type
- Type:
AccountType
The type of the account.
initCode (optional)
- Type:
Hex
(opens in a new tab)
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
- Type:
Account
The account object.