Skip to main content

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

NameSummary
accountIdval accountId: String?
The associated account ID, or null if not associated.
nodeIdval nodeId: String
The node's unique identifier.
uptimeval uptime: Duration
How long the node has been running.
versionval version: String
The mimOE runtime version.