smart-account import
Import a smart account from raw metadata using JSON params.
Imports a smart account into local storage using JSON parameters. This command is params-only and does not support interactive prompts.
Usage
namera smart-account import --params '<json>'Aliases:
- Group alias:
namera sa - Command alias:
import->i
Flags
This command has no command-specific flags.
Global flags:
--params: Raw JSON parameters for agent-driven execution (required)--output,-o:pretty,json, orndjson--quite,-q: Suppress output
If --params is missing, the command fails with an import error.
Params mode (agents)
Get the JSON schema:
namera schema smart-account.importExpected shape:
{
"alias": "my-smart",
"smartAccountAddress": "0x1bC710cbA70f8Ce638dC5c8F50FDb05d87a7D652",
"ownerAlias": "my-owner",
"ownerType": "ecdsa",
"index": "0",
"kernelVersion": "0.3.2",
"entryPointVersion": "0.7"
}Notes:
ownerTypemust be one ofecdsa,passkey, ormultisigkernelVersionmust be one of0.3.0,0.3.1,0.3.2,0.3.3entryPointVersionmust be one of0.7,0.8,0.9indexis a stringified bigint in params mode
Output
On success, the command returns:
alias: Smart account aliasaddress: Smart account addressowner: Owner keystore aliasindex: Account indexkernelVersion: Kernel version used for the account
Examples
Params mode (agents):
namera smart-account import --params '{"alias":"my-smart","smartAccountAddress":"0x1bC710cbA70f8Ce638dC5c8F50FDb05d87a7D652","ownerAlias":"my-owner","ownerType":"ecdsa","index":"0","kernelVersion":"0.3.2","entryPointVersion":"0.7"}'Short aliases:
namera sa i --params '{"alias":"my-smart","smartAccountAddress":"0x1bC710cbA70f8Ce638dC5c8F50FDb05d87a7D652","ownerAlias":"my-owner","ownerType":"ecdsa","index":"0","kernelVersion":"0.3.2","entryPointVersion":"0.7"}'Schema lookup:
namera schema smart-account.import