decodeMuxedContract

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

WA7QYNF7SOWQ3GLR2BGMZEHXAVIRZA4KVWLTJJFC7MGXUA74P7UJUAAAAAAAAAAAAAWWC, for example, decodes to the contract id of CA7QYNF7SOWQ3GLR2BGMZEHXAVIRZA4KVWLTJJFC7MGXUA74P7UJUWDA followed by the multiplexing id 0.

Return

The 40 raw bytes: the 32-byte contract id followed by the 8-byte big-endian multiplexing id

Parameters

data

The strkey to decode. A muxed contract address strkey is 69 characters long.

See also

Throws

if data fails a check of the StrKey decode contract, which this type holds to 69 characters and the muxed contract version byte