Blockchain / Somnia Accounts
Somnia Accounts
LiveAccounts at an address that is yours before it exists: derived from the owner key alone, the same on every chain, and unchanged when every key around it is replaced.
Whose account is this?
An account's address can't be worked back to its owner; only the index that watched it being created can say. Paste an account, or a key to see what it owns and controls.
Accounts
Reading the index…
Activity
Reading the index…
Factory
At the same address on every chain. Its admin can upgrade it and change the Safe that new accounts get; accounts already made are untouched.
- Factory (proxy)
- —
- Implementation
- —
- Admin
- —
- Safe singleton
- —
- Fallback handler
- —
- Last changed
- —
Find an account
import {accountAddress, getActivityPage, listAccountsAt} from "@somnia-chain/accounts-sdk"
// The address is known before anything is deployed, and is the same on every chain
const account = accountAddress(50312, owner, 0n)
// Whose account an address is, on each chain that has one: only the index can say
const whose = await listAccountsAt(account)
const history = await getActivityPage({account, limit: 25})Two keys, one address
An account is a Safe at an address derived from its owner key. The owner key decides who may act and is used rarely; a second key in the browser does the acting, and can be replaced.
The second key is a full co-owner, not a restricted one: at a threshold of 1 it can do anything the owner key can. Limiting what a key may do needs a module, which isn't built yet.