Skip to main content
Method on a RhinestoneSDK instance.

Usage

import { RhinestoneSDK } from '@rhinestone/sdk'
import { privateKeyToAccount } from 'viem/accounts'

const owner = privateKeyToAccount('0x...')

const sdk = new RhinestoneSDK({
  auth: { mode: 'apiKey', apiKey: process.env.RHINESTONE_API_KEY! },
})

const account = await sdk.createAccount({
  owners: { type: 'ecdsa', accounts: [owner] },
})

Parameters

config
RhinestoneAccountConfig
required
Per-account configuration (owners, account type, modules, sessions)

Returns

account
RhinestoneAccount
The account instance