Import
Usage
Parameters
`0x${string}`
required
Address to wrap
Returns
Account
A viem account that can be read from but not signed with
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Create a view-only viem Account for an address. Any signing operation throws.
import { toViewOnlyAccount } from '@rhinestone/sdk/utils'
import { toViewOnlyAccount } from '@rhinestone/sdk/utils'
const account = await sdk.createAccount({
owners: { type: 'ecdsa', accounts: [toViewOnlyAccount(userAddress)] },
})
Was this page helpful?