Decoding functions

# Name Description Complexity
1 addressFromString(String): Address|Unit Decodes address from Base58 string 124
2 addressFromStringValue(String): Address Decodes address from Base58 string.
Raises an exception if the address cannot be decoded
124
3 fromBase16String(String): ByteVector Decodes Base16 string to an array of bytes 10
4 fromBase58String(String): ByteVector Decodes Base58 string to an array of bytes 10
5 fromBase64String(String): ByteVector Decodes Base64 string to an array of bytes 10

addressFromString(String): Address|Unit

Decodes address from Base58 string.

addressFromString(string: String): Address|Unit

Parameters

string: String

The string to decode.

Examples

let address = addressFromString("3NADPfTVhGvVvvRZuqQjhSU4trVqYHwnqjF")

addressFromStringValue(String): Address

Decodes address from Base58 string.

Raises an exception if the address cannot be decoded.

addressFromStringValue(string: String): Address

Parameters

string: String

The string to decode.

Examples

let address = addressFromStringValue("3NADPfTVhGvVvvRZuqQjhSU4trVqYHwnqjF")

fromBase16String(String): ByteVector

Decodes a Base16 string to an array of bytes.

fromBase16String(str: String): ByteVector

Parameters

str: String

The string to decode.

Examples

let bytes = fromBase16String("52696465")

fromBase58String(String): ByteVector

Decodes a Base58 string to an array of bytes.

fromBase58String(str: String): ByteVector

Parameters

str: String

The string to decode.

Examples

let bytes = fromBase58String("37BPKA")

fromBase64String(String): ByteVector

Decodes a Base64 string to an array of bytes.

fromBase64String(str: String): ByteVector

Parameters

str: String

The string to decode.

Examples

let bytes = fromBase64String("UmlkZQ==")

results matching ""

    No results matching ""