Account Association
Package: com.mimik.mimoe.account
Node identity and account association via JSON-RPC 2.0.
AccountClient
class AccountClient
Account Association sub-client.
Provides node identity and account association operations via JSON-RPC 2.0. Named to match the developer portal.
Access via client.account.
Functions
associate
suspend fun associate(accessToken: String): Result<Unit>
Associate a developer account with this node.
getEdgeIdToken
suspend fun getEdgeIdToken(): Result<String>
Get a signed Edge ID token JWT.
getMe
suspend fun getMe(): Result<NodeMetadata>
Get node metadata.
NodeMetadata
data class NodeMetadata(
val nodeId: String,
val accountId: String?,
val version: String,
val uptime: Duration
)
Node metadata returned by the Account Association API.
Constructors
constructor(
nodeId: String,
accountId: String?,
version: String,
uptime: Duration
)
Properties
| Name | Summary |
|---|---|
accountId | val accountId: String?The associated account ID, or null if not associated. |
nodeId | val nodeId: StringThe node's unique identifier. |
uptime | val uptime: DurationHow long the node has been running. |
version | val version: StringThe mimOE runtime version. |