MuxedContract

constructor(contractId: String, id: ULong)

Creates a muxed contract from a contract id and a multiplexing id.

Parameters

contractId

The contract id. It must be a valid contract id starting with "C"

id

The multiplexing id

Throws

if contractId is not a valid contract id


constructor(address: String)

Creates a muxed contract from a contract address (C...), which leaves id null, or a muxed contract address (W...).

Parameters

address

The contract or muxed contract address

Throws

if address is neither