RhinestoneSDK instance.
Usage
Parameters
RhinestoneAccountConfig
required
Per-account configuration (owners, account type, modules, sessions)
Returns
RhinestoneAccount
The account instance
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Create an account using this instance’s shared configuration.
RhinestoneSDK instance.
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] },
})
Was this page helpful?