@nevermined-io/sdk - v3.0.44 / NvmAccount
Account information.
• new NvmAccount(id
, accountType?
): NvmAccount
Name | Type |
---|---|
id |
string |
accountType |
NvmAccountType |
• Private
Optional
accountSigner: Account
| PrivateKeyAccount
• accountType: NvmAccountType
• Optional
babySecret: string
• Optional
babyX: string
• Optional
babyY: string
• Private
id: string
• Private
Optional
kernelClient: KernelAccountClient
<"0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789"
, Transport
, Chain
, any
>
• Private
Optional
password: string
• Private
Optional
zeroDevSigner: any
▸ getAccountSigner(): any
any
▸ getAddress(): `0x${string}`
`0x${string}`
▸ getId(): `0x${string}`
`0x${string}`
▸ getKernelClient(): undefined
| KernelAccountClient
<"0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789"
, Transport
, Chain
, any
>
undefined
| KernelAccountClient
<"0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789"
, Transport
, Chain
, any
>
▸ getPassword(): undefined
| string
Returns account password.
undefined
| string
The account password.
▸ getPublic(): string
string
▸ getType(): "local"
| "json-rpc"
| "zerodev"
| "sessionKey"
"local"
| "json-rpc"
| "zerodev"
| "sessionKey"
▸ getZeroDevSigner(): any
any
▸ isZeroDev(): boolean
boolean
▸ setId(id
): void
Name | Type |
---|---|
id |
string |
void
▸ setPassword(password
): void
Set account password.
Name | Type | Description |
---|---|---|
password |
string |
Password for account. |
void
▸ signTextLocally(text
): Promise
<`0x${string}`>
Name | Type |
---|---|
text |
string | Uint8Array |
Promise
<`0x${string}`>
▸ fromAccount(account
): NvmAccount
Returns a nevermined Account from a viem account
Name | Type | Description |
---|---|---|
account |
Account | PrivateKeyAccount |
A viem local account |
The nevermined account
▸ fromAddress(address
): NvmAccount
Returns a nevermined Account from an address. This method is used for browser integration (i.e Metamask)
Name | Type | Description |
---|---|---|
address |
`0x${string}` | A wallet address |
The nevermined account
▸ fromZeroDevSessionKey(kernelClient
): NvmAccount
Name | Type |
---|---|
kernelClient |
KernelAccountClient <"0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789" , Transport , Chain , any > |
▸ fromZeroDevSigner(kernelClient
): Promise
<NvmAccount
>
Returns a nevermined Account from a zerodev signer
Name | Type |
---|---|
kernelClient |
KernelAccountClient <"0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789" , Transport , Chain , any > |
Promise
<NvmAccount
>
The nevermined account