encodeMuxedContract

Encodes raw bytes to strkey muxed contract address (W...)

A muxed contract address pairs a contract with a 64-bit multiplexing id (CAP-0084), the way a muxed account address pairs an account with one. SEP-0023 defines its strkey.

Return

The encoded strkey, 69 characters long

Parameters

data

The 40-byte payload: the 32-byte contract id followed by the 8-byte multiplexing id, most significant byte first

Throws

if data is not 40 bytes