Constants§
Functions§
- cl_
value_ to_ json - Converts a CLValue to a JSON Value.
- get_
base64_ key_ from_ account_ hash - Convert a formatted account hash to a base64-encoded Key as string (cep-18 key encoding).
- get_
base64_ key_ from_ key_ hash - Converts a formatted key hash to a base64-encoded string (CEP-18 key encoding).
- get_
blake2b_ hash - Computes the Blake2b hash of the provided metadata.
- get_
current_ timestamp - Gets the current timestamp.
- get_
gas_ price_ or_ default - Gets the gas price or returns the default value if not provided.
- get_
ttl_ or_ default - Gets the time to live (TTL) value or returns the default value if not provided.
- hex_
to_ string - Converts a hexadecimal string to a regular string.
- hex_
to_ uint8_ vec - Converts a hexadecimal string to a vector of unsigned 8-bit integers (Uint8Array).
- json_
pretty_ print - Pretty prints a serializable value as a JSON string.
- make_
dictionary_ item_ key - Creates a dictionary item key by concatenating the serialized bytes of the key and value.
- motes_
to_ cspr - Converts motes to CSPR (Casper tokens).
- parse_
timestamp - Parses a timestamp string into a
Timestamp
object. - parse_
ttl - Parses a TTL (time to live) string into a
TimeDiff
object. - public_
key_ from_ secret_ key - Converts a secret key in PEM format to its corresponding public key as a string.
- secret_
key_ from_ pem - Parses a secret key in PEM format into a
SecretKey
object. - secret_
key_ generate - Generates a secret key using the Ed25519 algorithm.
- secret_
key_ secp256k1_ generate - Generates a secret key using the secp256k1 algorithm.