Converts a CLValue to a JSON Value.
Convert a formatted account hash to a base64-encoded Key as string (cep-18 key encoding).
Computes the Blake2b hash of the provided metadata.
Gets the current timestamp.
Gets the gas price or returns the default value if not provided.
Gets the time to live (TTL) value or returns the default value if not provided.
Converts a hexadecimal string to a regular string.
Converts a hexadecimal string to a vector of unsigned 8-bit integers (Uint8Array).
Pretty prints a serializable value as a JSON string.
Creates a dictionary item key by concatenating the serialized bytes of the key and value.
Converts motes to CSPR (Casper tokens).
Parses a timestamp string into a Timestamp
object.
Parses a TTL (time to live) string into a TimeDiff
object.
Converts a secret key in PEM format to its corresponding public key as a string.
Parses a secret key in PEM format into a SecretKey
object.
Generates a secret key using the Ed25519 algorithm.
Generates a secret key using the secp256k1 algorithm.