MuxedAccount

constructor(accountId: String, id: ULong? = null)

Creates a new muxed account from the given ed25519 account ID and optional multiplexing ID.

Parameters

accountId

The ed25519 account ID. It must be a valid account ID starting with "G"

id

The optional account multiplexing ID. It can be null if not set

Throws

if the provided account ID is invalid


constructor(address: String)

Creates a new muxed account from the given muxed account address.

The address can be either:

  • A regular account ID (starting with "G")

  • A muxed account address (starting with "M")

Parameters

address

The muxed account address

Throws

if the provided address is invalid