This API is experimental and may change in a future release.
Use this to reconstruct the initData for an account originally created with
the Rhinestone SDK v0, then pass it back into createAccount.
Import
import { experimental_getV0InitData } from '@rhinestone/sdk/utils'
Usage
import { experimental_getV0InitData } from '@rhinestone/sdk/utils'
const initData = experimental_getV0InitData({
owners: { type: 'ecdsa', accounts: [owner] },
})
const account = await sdk.createAccount({
owners: { type: 'ecdsa', accounts: [owner] },
initData,
})
Parameters
config
RhinestoneAccountConfig
required
Account configuration
Returns
The account address, factory, factory data, and whether the intent executor is installed