"script"
Pass any kind of data as arguments to this script. During runtime, script code will be able to access it using inline macro getter this way {get('args.foo.bar')}
{
"foo": {
"bar": "Hello World!",
"baz": 3
}
}
"Hello World"
5
Inline scripting language function definitions
The function set allows you to set arbitrary data on script context for later reuse.
path
(string) - path of the value to setvalue
(any) - variable to storeNote: Use get to return the value later
The function get allows you to get arbitrary data from script context.
path
(string) - path of the value to retrieveNote: Use set to set this values in first place
Returns an array with each provided argument as an item
values
(any) - items of the array separated by commaDumps to console a message (or object)
type
('log'|'info'|'warn'|'error') - value to pretty print in the logsvalue
(any) - value to pretty print in the logsParses a JSON string and returns an object
value
(string) - string value to parse, must be a valid JSON stringTurns an object into a valid JSON string
value
(any) - object to serialize as a JSON stringEncodes a utf-8 text string into hexadecimal string
value
(string) - utf-8 text stringDecodes an hexadecimal string into the former utf-8 text string
value
(string) - hexadecimal encoded stringEncodes a utf-8 text string into base64 string
value
(string) - utf-8 text stringDecodes a base64 string into a utf-8 text string
value
(string) - base64 encoded stringAutomatically splits a utf-8 text string into a list of 64 bytes long strings if value
length is bigger than 64 bytes
Otherwise, it returns the original string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string) - string to be adapted for metadata usageIf a list of strings ( produced by strToMetadataStr
) is provided, joins it into a single string
If a string is provided, returns the string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string | [string]) - string or list of strings produced by strToMetadataStr
Truncates a string from start to prefixLength
characters, attaches a separator
string, and finally adds the last suffixLength
characters of the string
Usefull for truncating long texts, or hashes and addresses when you want to keep the beginning and the end of them and discard the middle.
addr1qzk45...gkwg (prefixLength
=10 ,suffixLength
=4, separator
="...")
value
(string) - string to be truncatedprefixLength
(number) - initial number of characters to be included in resulting stringsuffixLength
(number) - final number of charactes to be included in resulting stringseparator
(string) - string to be included between prefix and suffix parts of the stringReplaces all match
ocurrencies inside str
by value
str
(string) - string where to search and replacematch
(string) - exact string that will be searched for and replaced by value
value
(string) - value to replaced withPauses the execution for interval
milliseconds
value
(any) - object to serialize as a JSON stringGet address
information as an object with many usefull properties
address
(string) - a valid cardano addressCalculates SHA512 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA256 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA1 hash of data
string
data
(string) - arbitrary string to be hashedCalculates MD5 hash of data
string
data
(string) - arbitrary string to be hashedGenerates a random RFC4122 UUID v4
Adds extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the sum as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - addends separated by comma (BigNum)Substracts extraArgs
subtrahends numbers from an initial value
minuend. Fails on underflow.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the substraction as a BigNum string.
value
(string | number) - minuend, initial value (BigNum)extraArgs
([string | number]) - subtrahends separated by comma (BigNum)Multiplies extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the multiplication as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - Multipliers separated by comma (BigNum)List or Key-Value Map of Script Argument List. Each child script will have read access to it's corresponding arguments referenced by with same key. Use inline macro on args
parameter like this inside each imported script "args":"{get('args')}"
. Script args
parameter will act as default arguments if key is not present on the list
Inline scripting language function definitions
The function set allows you to set arbitrary data on script context for later reuse.
path
(string) - path of the value to setvalue
(any) - variable to storeNote: Use get to return the value later
The function get allows you to get arbitrary data from script context.
path
(string) - path of the value to retrieveNote: Use set to set this values in first place
Returns an array with each provided argument as an item
values
(any) - items of the array separated by commaDumps to console a message (or object)
type
('log'|'info'|'warn'|'error') - value to pretty print in the logsvalue
(any) - value to pretty print in the logsParses a JSON string and returns an object
value
(string) - string value to parse, must be a valid JSON stringTurns an object into a valid JSON string
value
(any) - object to serialize as a JSON stringEncodes a utf-8 text string into hexadecimal string
value
(string) - utf-8 text stringDecodes an hexadecimal string into the former utf-8 text string
value
(string) - hexadecimal encoded stringEncodes a utf-8 text string into base64 string
value
(string) - utf-8 text stringDecodes a base64 string into a utf-8 text string
value
(string) - base64 encoded stringAutomatically splits a utf-8 text string into a list of 64 bytes long strings if value
length is bigger than 64 bytes
Otherwise, it returns the original string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string) - string to be adapted for metadata usageIf a list of strings ( produced by strToMetadataStr
) is provided, joins it into a single string
If a string is provided, returns the string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string | [string]) - string or list of strings produced by strToMetadataStr
Truncates a string from start to prefixLength
characters, attaches a separator
string, and finally adds the last suffixLength
characters of the string
Usefull for truncating long texts, or hashes and addresses when you want to keep the beginning and the end of them and discard the middle.
addr1qzk45...gkwg (prefixLength
=10 ,suffixLength
=4, separator
="...")
value
(string) - string to be truncatedprefixLength
(number) - initial number of characters to be included in resulting stringsuffixLength
(number) - final number of charactes to be included in resulting stringseparator
(string) - string to be included between prefix and suffix parts of the stringReplaces all match
ocurrencies inside str
by value
str
(string) - string where to search and replacematch
(string) - exact string that will be searched for and replaced by value
value
(string) - value to replaced withPauses the execution for interval
milliseconds
value
(any) - object to serialize as a JSON stringGet address
information as an object with many usefull properties
address
(string) - a valid cardano addressCalculates SHA512 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA256 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA1 hash of data
string
data
(string) - arbitrary string to be hashedCalculates MD5 hash of data
string
data
(string) - arbitrary string to be hashedGenerates a random RFC4122 UUID v4
Adds extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the sum as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - addends separated by comma (BigNum)Substracts extraArgs
subtrahends numbers from an initial value
minuend. Fails on underflow.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the substraction as a BigNum string.
value
(string | number) - minuend, initial value (BigNum)extraArgs
([string | number]) - subtrahends separated by comma (BigNum)Multiplies extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the multiplication as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - Multipliers separated by comma (BigNum)Must contain a minimum of 1
items
Pass any kind of data as arguments to this script. During runtime, script code will be able to access it using inline macro getter this way {get('args.foo.bar')}
Inline scripting language function definitions
The function set allows you to set arbitrary data on script context for later reuse.
path
(string) - path of the value to setvalue
(any) - variable to storeNote: Use get to return the value later
The function get allows you to get arbitrary data from script context.
path
(string) - path of the value to retrieveNote: Use set to set this values in first place
Returns an array with each provided argument as an item
values
(any) - items of the array separated by commaDumps to console a message (or object)
type
('log'|'info'|'warn'|'error') - value to pretty print in the logsvalue
(any) - value to pretty print in the logsParses a JSON string and returns an object
value
(string) - string value to parse, must be a valid JSON stringTurns an object into a valid JSON string
value
(any) - object to serialize as a JSON stringEncodes a utf-8 text string into hexadecimal string
value
(string) - utf-8 text stringDecodes an hexadecimal string into the former utf-8 text string
value
(string) - hexadecimal encoded stringEncodes a utf-8 text string into base64 string
value
(string) - utf-8 text stringDecodes a base64 string into a utf-8 text string
value
(string) - base64 encoded stringAutomatically splits a utf-8 text string into a list of 64 bytes long strings if value
length is bigger than 64 bytes
Otherwise, it returns the original string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string) - string to be adapted for metadata usageIf a list of strings ( produced by strToMetadataStr
) is provided, joins it into a single string
If a string is provided, returns the string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string | [string]) - string or list of strings produced by strToMetadataStr
Truncates a string from start to prefixLength
characters, attaches a separator
string, and finally adds the last suffixLength
characters of the string
Usefull for truncating long texts, or hashes and addresses when you want to keep the beginning and the end of them and discard the middle.
addr1qzk45...gkwg (prefixLength
=10 ,suffixLength
=4, separator
="...")
value
(string) - string to be truncatedprefixLength
(number) - initial number of characters to be included in resulting stringsuffixLength
(number) - final number of charactes to be included in resulting stringseparator
(string) - string to be included between prefix and suffix parts of the stringReplaces all match
ocurrencies inside str
by value
str
(string) - string where to search and replacematch
(string) - exact string that will be searched for and replaced by value
value
(string) - value to replaced withPauses the execution for interval
milliseconds
value
(any) - object to serialize as a JSON stringGet address
information as an object with many usefull properties
address
(string) - a valid cardano addressCalculates SHA512 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA256 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA1 hash of data
string
data
(string) - arbitrary string to be hashedCalculates MD5 hash of data
string
data
(string) - arbitrary string to be hashedGenerates a random RFC4122 UUID v4
Adds extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the sum as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - addends separated by comma (BigNum)Substracts extraArgs
subtrahends numbers from an initial value
minuend. Fails on underflow.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the substraction as a BigNum string.
value
(string | number) - minuend, initial value (BigNum)extraArgs
([string | number]) - subtrahends separated by comma (BigNum)Multiplies extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the multiplication as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - Multipliers separated by comma (BigNum)All properties whose name matches the following regular expression must respect the following conditions
Property name regular expression:
Pass any kind of data as arguments to this script. During runtime, script code will be able to access it using inline macro getter this way {get('args.foo.bar')}
Inline scripting language function definitions
The function set allows you to set arbitrary data on script context for later reuse.
path
(string) - path of the value to setvalue
(any) - variable to storeNote: Use get to return the value later
The function get allows you to get arbitrary data from script context.
path
(string) - path of the value to retrieveNote: Use set to set this values in first place
Returns an array with each provided argument as an item
values
(any) - items of the array separated by commaDumps to console a message (or object)
type
('log'|'info'|'warn'|'error') - value to pretty print in the logsvalue
(any) - value to pretty print in the logsParses a JSON string and returns an object
value
(string) - string value to parse, must be a valid JSON stringTurns an object into a valid JSON string
value
(any) - object to serialize as a JSON stringEncodes a utf-8 text string into hexadecimal string
value
(string) - utf-8 text stringDecodes an hexadecimal string into the former utf-8 text string
value
(string) - hexadecimal encoded stringEncodes a utf-8 text string into base64 string
value
(string) - utf-8 text stringDecodes a base64 string into a utf-8 text string
value
(string) - base64 encoded stringAutomatically splits a utf-8 text string into a list of 64 bytes long strings if value
length is bigger than 64 bytes
Otherwise, it returns the original string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string) - string to be adapted for metadata usageIf a list of strings ( produced by strToMetadataStr
) is provided, joins it into a single string
If a string is provided, returns the string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string | [string]) - string or list of strings produced by strToMetadataStr
Truncates a string from start to prefixLength
characters, attaches a separator
string, and finally adds the last suffixLength
characters of the string
Usefull for truncating long texts, or hashes and addresses when you want to keep the beginning and the end of them and discard the middle.
addr1qzk45...gkwg (prefixLength
=10 ,suffixLength
=4, separator
="...")
value
(string) - string to be truncatedprefixLength
(number) - initial number of characters to be included in resulting stringsuffixLength
(number) - final number of charactes to be included in resulting stringseparator
(string) - string to be included between prefix and suffix parts of the stringReplaces all match
ocurrencies inside str
by value
str
(string) - string where to search and replacematch
(string) - exact string that will be searched for and replaced by value
value
(string) - value to replaced withPauses the execution for interval
milliseconds
value
(any) - object to serialize as a JSON stringGet address
information as an object with many usefull properties
address
(string) - a valid cardano addressCalculates SHA512 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA256 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA1 hash of data
string
data
(string) - arbitrary string to be hashedCalculates MD5 hash of data
string
data
(string) - arbitrary string to be hashedGenerates a random RFC4122 UUID v4
Adds extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the sum as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - addends separated by comma (BigNum)Substracts extraArgs
subtrahends numbers from an initial value
minuend. Fails on underflow.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the substraction as a BigNum string.
value
(string | number) - minuend, initial value (BigNum)extraArgs
([string | number]) - subtrahends separated by comma (BigNum)Multiplies extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the multiplication as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - Multipliers separated by comma (BigNum)All properties whose name matches the following regular expression must respect the following conditions
Property name regular expression:
Pass any kind of data as arguments to this script. During runtime, script code will be able to access it using inline macro getter this way {get('args.foo.bar')}
Inline scripting language function definitions
The function set allows you to set arbitrary data on script context for later reuse.
path
(string) - path of the value to setvalue
(any) - variable to storeNote: Use get to return the value later
The function get allows you to get arbitrary data from script context.
path
(string) - path of the value to retrieveNote: Use set to set this values in first place
Returns an array with each provided argument as an item
values
(any) - items of the array separated by commaDumps to console a message (or object)
type
('log'|'info'|'warn'|'error') - value to pretty print in the logsvalue
(any) - value to pretty print in the logsParses a JSON string and returns an object
value
(string) - string value to parse, must be a valid JSON stringTurns an object into a valid JSON string
value
(any) - object to serialize as a JSON stringEncodes a utf-8 text string into hexadecimal string
value
(string) - utf-8 text stringDecodes an hexadecimal string into the former utf-8 text string
value
(string) - hexadecimal encoded stringEncodes a utf-8 text string into base64 string
value
(string) - utf-8 text stringDecodes a base64 string into a utf-8 text string
value
(string) - base64 encoded stringAutomatically splits a utf-8 text string into a list of 64 bytes long strings if value
length is bigger than 64 bytes
Otherwise, it returns the original string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string) - string to be adapted for metadata usageIf a list of strings ( produced by strToMetadataStr
) is provided, joins it into a single string
If a string is provided, returns the string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string | [string]) - string or list of strings produced by strToMetadataStr
Truncates a string from start to prefixLength
characters, attaches a separator
string, and finally adds the last suffixLength
characters of the string
Usefull for truncating long texts, or hashes and addresses when you want to keep the beginning and the end of them and discard the middle.
addr1qzk45...gkwg (prefixLength
=10 ,suffixLength
=4, separator
="...")
value
(string) - string to be truncatedprefixLength
(number) - initial number of characters to be included in resulting stringsuffixLength
(number) - final number of charactes to be included in resulting stringseparator
(string) - string to be included between prefix and suffix parts of the stringReplaces all match
ocurrencies inside str
by value
str
(string) - string where to search and replacematch
(string) - exact string that will be searched for and replaced by value
value
(string) - value to replaced withPauses the execution for interval
milliseconds
value
(any) - object to serialize as a JSON stringGet address
information as an object with many usefull properties
address
(string) - a valid cardano addressCalculates SHA512 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA256 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA1 hash of data
string
data
(string) - arbitrary string to be hashedCalculates MD5 hash of data
string
data
(string) - arbitrary string to be hashedGenerates a random RFC4122 UUID v4
Adds extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the sum as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - addends separated by comma (BigNum)Substracts extraArgs
subtrahends numbers from an initial value
minuend. Fails on underflow.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the substraction as a BigNum string.
value
(string | number) - minuend, initial value (BigNum)extraArgs
([string | number]) - subtrahends separated by comma (BigNum)Multiplies extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the multiplication as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - Multipliers separated by comma (BigNum)Will return null. Is like a void function in most programming languages
No Additional Properties"none"
Will return all it children code block results. This is the default behaviour
No Additional Properties"all"
Will return the result of it's first child code block.
No Additional Properties"first"
Will return the result of it's last child code block.
No Additional Properties"last"
Will return the result of one child code block, the one in the key
name or position argument.
"one"
Inline scripting language function definitions
The function set allows you to set arbitrary data on script context for later reuse.
path
(string) - path of the value to setvalue
(any) - variable to storeNote: Use get to return the value later
The function get allows you to get arbitrary data from script context.
path
(string) - path of the value to retrieveNote: Use set to set this values in first place
Returns an array with each provided argument as an item
values
(any) - items of the array separated by commaDumps to console a message (or object)
type
('log'|'info'|'warn'|'error') - value to pretty print in the logsvalue
(any) - value to pretty print in the logsParses a JSON string and returns an object
value
(string) - string value to parse, must be a valid JSON stringTurns an object into a valid JSON string
value
(any) - object to serialize as a JSON stringEncodes a utf-8 text string into hexadecimal string
value
(string) - utf-8 text stringDecodes an hexadecimal string into the former utf-8 text string
value
(string) - hexadecimal encoded stringEncodes a utf-8 text string into base64 string
value
(string) - utf-8 text stringDecodes a base64 string into a utf-8 text string
value
(string) - base64 encoded stringAutomatically splits a utf-8 text string into a list of 64 bytes long strings if value
length is bigger than 64 bytes
Otherwise, it returns the original string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string) - string to be adapted for metadata usageIf a list of strings ( produced by strToMetadataStr
) is provided, joins it into a single string
If a string is provided, returns the string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string | [string]) - string or list of strings produced by strToMetadataStr
Truncates a string from start to prefixLength
characters, attaches a separator
string, and finally adds the last suffixLength
characters of the string
Usefull for truncating long texts, or hashes and addresses when you want to keep the beginning and the end of them and discard the middle.
addr1qzk45...gkwg (prefixLength
=10 ,suffixLength
=4, separator
="...")
value
(string) - string to be truncatedprefixLength
(number) - initial number of characters to be included in resulting stringsuffixLength
(number) - final number of charactes to be included in resulting stringseparator
(string) - string to be included between prefix and suffix parts of the stringReplaces all match
ocurrencies inside str
by value
str
(string) - string where to search and replacematch
(string) - exact string that will be searched for and replaced by value
value
(string) - value to replaced withPauses the execution for interval
milliseconds
value
(any) - object to serialize as a JSON stringGet address
information as an object with many usefull properties
address
(string) - a valid cardano addressCalculates SHA512 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA256 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA1 hash of data
string
data
(string) - arbitrary string to be hashedCalculates MD5 hash of data
string
data
(string) - arbitrary string to be hashedGenerates a random RFC4122 UUID v4
Adds extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the sum as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - addends separated by comma (BigNum)Substracts extraArgs
subtrahends numbers from an initial value
minuend. Fails on underflow.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the substraction as a BigNum string.
value
(string | number) - minuend, initial value (BigNum)extraArgs
([string | number]) - subtrahends separated by comma (BigNum)Multiplies extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the multiplication as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - Multipliers separated by comma (BigNum)Will return the result of some children code blocks, the ones in the keys
name or position list argument.
"some"
Inline scripting language function definitions
The function set allows you to set arbitrary data on script context for later reuse.
path
(string) - path of the value to setvalue
(any) - variable to storeNote: Use get to return the value later
The function get allows you to get arbitrary data from script context.
path
(string) - path of the value to retrieveNote: Use set to set this values in first place
Returns an array with each provided argument as an item
values
(any) - items of the array separated by commaDumps to console a message (or object)
type
('log'|'info'|'warn'|'error') - value to pretty print in the logsvalue
(any) - value to pretty print in the logsParses a JSON string and returns an object
value
(string) - string value to parse, must be a valid JSON stringTurns an object into a valid JSON string
value
(any) - object to serialize as a JSON stringEncodes a utf-8 text string into hexadecimal string
value
(string) - utf-8 text stringDecodes an hexadecimal string into the former utf-8 text string
value
(string) - hexadecimal encoded stringEncodes a utf-8 text string into base64 string
value
(string) - utf-8 text stringDecodes a base64 string into a utf-8 text string
value
(string) - base64 encoded stringAutomatically splits a utf-8 text string into a list of 64 bytes long strings if value
length is bigger than 64 bytes
Otherwise, it returns the original string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string) - string to be adapted for metadata usageIf a list of strings ( produced by strToMetadataStr
) is provided, joins it into a single string
If a string is provided, returns the string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string | [string]) - string or list of strings produced by strToMetadataStr
Truncates a string from start to prefixLength
characters, attaches a separator
string, and finally adds the last suffixLength
characters of the string
Usefull for truncating long texts, or hashes and addresses when you want to keep the beginning and the end of them and discard the middle.
addr1qzk45...gkwg (prefixLength
=10 ,suffixLength
=4, separator
="...")
value
(string) - string to be truncatedprefixLength
(number) - initial number of characters to be included in resulting stringsuffixLength
(number) - final number of charactes to be included in resulting stringseparator
(string) - string to be included between prefix and suffix parts of the stringReplaces all match
ocurrencies inside str
by value
str
(string) - string where to search and replacematch
(string) - exact string that will be searched for and replaced by value
value
(string) - value to replaced withPauses the execution for interval
milliseconds
value
(any) - object to serialize as a JSON stringGet address
information as an object with many usefull properties
address
(string) - a valid cardano addressCalculates SHA512 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA256 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA1 hash of data
string
data
(string) - arbitrary string to be hashedCalculates MD5 hash of data
string
data
(string) - arbitrary string to be hashedGenerates a random RFC4122 UUID v4
Adds extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the sum as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - addends separated by comma (BigNum)Substracts extraArgs
subtrahends numbers from an initial value
minuend. Fails on underflow.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the substraction as a BigNum string.
value
(string | number) - minuend, initial value (BigNum)extraArgs
([string | number]) - subtrahends separated by comma (BigNum)Multiplies extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the multiplication as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - Multipliers separated by comma (BigNum)Will return the result of the execution of an inline macro. Usefull for formatting, debugging results and for using data without leaking it.
No Additional Properties"macro"
Inline scripting language function definitions
The function set allows you to set arbitrary data on script context for later reuse.
path
(string) - path of the value to setvalue
(any) - variable to storeNote: Use get to return the value later
The function get allows you to get arbitrary data from script context.
path
(string) - path of the value to retrieveNote: Use set to set this values in first place
Returns an array with each provided argument as an item
values
(any) - items of the array separated by commaDumps to console a message (or object)
type
('log'|'info'|'warn'|'error') - value to pretty print in the logsvalue
(any) - value to pretty print in the logsParses a JSON string and returns an object
value
(string) - string value to parse, must be a valid JSON stringTurns an object into a valid JSON string
value
(any) - object to serialize as a JSON stringEncodes a utf-8 text string into hexadecimal string
value
(string) - utf-8 text stringDecodes an hexadecimal string into the former utf-8 text string
value
(string) - hexadecimal encoded stringEncodes a utf-8 text string into base64 string
value
(string) - utf-8 text stringDecodes a base64 string into a utf-8 text string
value
(string) - base64 encoded stringAutomatically splits a utf-8 text string into a list of 64 bytes long strings if value
length is bigger than 64 bytes
Otherwise, it returns the original string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string) - string to be adapted for metadata usageIf a list of strings ( produced by strToMetadataStr
) is provided, joins it into a single string
If a string is provided, returns the string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string | [string]) - string or list of strings produced by strToMetadataStr
Truncates a string from start to prefixLength
characters, attaches a separator
string, and finally adds the last suffixLength
characters of the string
Usefull for truncating long texts, or hashes and addresses when you want to keep the beginning and the end of them and discard the middle.
addr1qzk45...gkwg (prefixLength
=10 ,suffixLength
=4, separator
="...")
value
(string) - string to be truncatedprefixLength
(number) - initial number of characters to be included in resulting stringsuffixLength
(number) - final number of charactes to be included in resulting stringseparator
(string) - string to be included between prefix and suffix parts of the stringReplaces all match
ocurrencies inside str
by value
str
(string) - string where to search and replacematch
(string) - exact string that will be searched for and replaced by value
value
(string) - value to replaced withPauses the execution for interval
milliseconds
value
(any) - object to serialize as a JSON stringGet address
information as an object with many usefull properties
address
(string) - a valid cardano addressCalculates SHA512 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA256 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA1 hash of data
string
data
(string) - arbitrary string to be hashedCalculates MD5 hash of data
string
data
(string) - arbitrary string to be hashedGenerates a random RFC4122 UUID v4
Adds extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the sum as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - addends separated by comma (BigNum)Substracts extraArgs
subtrahends numbers from an initial value
minuend. Fails on underflow.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the substraction as a BigNum string.
value
(string | number) - minuend, initial value (BigNum)extraArgs
([string | number]) - subtrahends separated by comma (BigNum)Multiplies extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the multiplication as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - Multipliers separated by comma (BigNum)When set, it allows you return all the results of this script back to the DAPP under a property with this string as name
If true, this block of code isolates it's cache scope as if it where the only one existing on context, making the rest of the code outside of it unreacheable from within. Usefull to keep variable paths absolute (for get()
macro function for ex.), no matter if the block is the root block of an entire script of it is nested inside others.
Title of the script
"NFT Minting Request"
"Pay 5 ADA to Charles"
Description of the script
List of API functions or nested Blocks of Code to execute
Must contain a minimum of 1
items
Stops the execution of the script until a condition is met
No Additional Properties"await"
List or Key-Value Map of Conditions
Inline scripting language function definitions
The function set allows you to set arbitrary data on script context for later reuse.
path
(string) - path of the value to setvalue
(any) - variable to storeNote: Use get to return the value later
The function get allows you to get arbitrary data from script context.
path
(string) - path of the value to retrieveNote: Use set to set this values in first place
Returns an array with each provided argument as an item
values
(any) - items of the array separated by commaDumps to console a message (or object)
type
('log'|'info'|'warn'|'error') - value to pretty print in the logsvalue
(any) - value to pretty print in the logsParses a JSON string and returns an object
value
(string) - string value to parse, must be a valid JSON stringTurns an object into a valid JSON string
value
(any) - object to serialize as a JSON stringEncodes a utf-8 text string into hexadecimal string
value
(string) - utf-8 text stringDecodes an hexadecimal string into the former utf-8 text string
value
(string) - hexadecimal encoded stringEncodes a utf-8 text string into base64 string
value
(string) - utf-8 text stringDecodes a base64 string into a utf-8 text string
value
(string) - base64 encoded stringAutomatically splits a utf-8 text string into a list of 64 bytes long strings if value
length is bigger than 64 bytes
Otherwise, it returns the original string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string) - string to be adapted for metadata usageIf a list of strings ( produced by strToMetadataStr
) is provided, joins it into a single string
If a string is provided, returns the string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string | [string]) - string or list of strings produced by strToMetadataStr
Truncates a string from start to prefixLength
characters, attaches a separator
string, and finally adds the last suffixLength
characters of the string
Usefull for truncating long texts, or hashes and addresses when you want to keep the beginning and the end of them and discard the middle.
addr1qzk45...gkwg (prefixLength
=10 ,suffixLength
=4, separator
="...")
value
(string) - string to be truncatedprefixLength
(number) - initial number of characters to be included in resulting stringsuffixLength
(number) - final number of charactes to be included in resulting stringseparator
(string) - string to be included between prefix and suffix parts of the stringReplaces all match
ocurrencies inside str
by value
str
(string) - string where to search and replacematch
(string) - exact string that will be searched for and replaced by value
value
(string) - value to replaced withPauses the execution for interval
milliseconds
value
(any) - object to serialize as a JSON stringGet address
information as an object with many usefull properties
address
(string) - a valid cardano addressCalculates SHA512 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA256 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA1 hash of data
string
data
(string) - arbitrary string to be hashedCalculates MD5 hash of data
string
data
(string) - arbitrary string to be hashedGenerates a random RFC4122 UUID v4
Adds extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the sum as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - addends separated by comma (BigNum)Substracts extraArgs
subtrahends numbers from an initial value
minuend. Fails on underflow.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the substraction as a BigNum string.
value
(string | number) - minuend, initial value (BigNum)extraArgs
([string | number]) - subtrahends separated by comma (BigNum)Multiplies extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the multiplication as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - Multipliers separated by comma (BigNum)Must contain a minimum of 1
items
Returns true
on timeout
"timer"
Inline scripting language function definitions
The function set allows you to set arbitrary data on script context for later reuse.
path
(string) - path of the value to setvalue
(any) - variable to storeNote: Use get to return the value later
The function get allows you to get arbitrary data from script context.
path
(string) - path of the value to retrieveNote: Use set to set this values in first place
Returns an array with each provided argument as an item
values
(any) - items of the array separated by commaDumps to console a message (or object)
type
('log'|'info'|'warn'|'error') - value to pretty print in the logsvalue
(any) - value to pretty print in the logsParses a JSON string and returns an object
value
(string) - string value to parse, must be a valid JSON stringTurns an object into a valid JSON string
value
(any) - object to serialize as a JSON stringEncodes a utf-8 text string into hexadecimal string
value
(string) - utf-8 text stringDecodes an hexadecimal string into the former utf-8 text string
value
(string) - hexadecimal encoded stringEncodes a utf-8 text string into base64 string
value
(string) - utf-8 text stringDecodes a base64 string into a utf-8 text string
value
(string) - base64 encoded stringAutomatically splits a utf-8 text string into a list of 64 bytes long strings if value
length is bigger than 64 bytes
Otherwise, it returns the original string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string) - string to be adapted for metadata usageIf a list of strings ( produced by strToMetadataStr
) is provided, joins it into a single string
If a string is provided, returns the string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string | [string]) - string or list of strings produced by strToMetadataStr
Truncates a string from start to prefixLength
characters, attaches a separator
string, and finally adds the last suffixLength
characters of the string
Usefull for truncating long texts, or hashes and addresses when you want to keep the beginning and the end of them and discard the middle.
addr1qzk45...gkwg (prefixLength
=10 ,suffixLength
=4, separator
="...")
value
(string) - string to be truncatedprefixLength
(number) - initial number of characters to be included in resulting stringsuffixLength
(number) - final number of charactes to be included in resulting stringseparator
(string) - string to be included between prefix and suffix parts of the stringReplaces all match
ocurrencies inside str
by value
str
(string) - string where to search and replacematch
(string) - exact string that will be searched for and replaced by value
value
(string) - value to replaced withPauses the execution for interval
milliseconds
value
(any) - object to serialize as a JSON stringGet address
information as an object with many usefull properties
address
(string) - a valid cardano addressCalculates SHA512 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA256 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA1 hash of data
string
data
(string) - arbitrary string to be hashedCalculates MD5 hash of data
string
data
(string) - arbitrary string to be hashedGenerates a random RFC4122 UUID v4
Adds extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the sum as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - addends separated by comma (BigNum)Substracts extraArgs
subtrahends numbers from an initial value
minuend. Fails on underflow.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the substraction as a BigNum string.
value
(string | number) - minuend, initial value (BigNum)extraArgs
([string | number]) - subtrahends separated by comma (BigNum)Multiplies extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the multiplication as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - Multipliers separated by comma (BigNum)Inline scripting language function definitions
The function set allows you to set arbitrary data on script context for later reuse.
path
(string) - path of the value to setvalue
(any) - variable to storeNote: Use get to return the value later
The function get allows you to get arbitrary data from script context.
path
(string) - path of the value to retrieveNote: Use set to set this values in first place
Returns an array with each provided argument as an item
values
(any) - items of the array separated by commaDumps to console a message (or object)
type
('log'|'info'|'warn'|'error') - value to pretty print in the logsvalue
(any) - value to pretty print in the logsParses a JSON string and returns an object
value
(string) - string value to parse, must be a valid JSON stringTurns an object into a valid JSON string
value
(any) - object to serialize as a JSON stringEncodes a utf-8 text string into hexadecimal string
value
(string) - utf-8 text stringDecodes an hexadecimal string into the former utf-8 text string
value
(string) - hexadecimal encoded stringEncodes a utf-8 text string into base64 string
value
(string) - utf-8 text stringDecodes a base64 string into a utf-8 text string
value
(string) - base64 encoded stringAutomatically splits a utf-8 text string into a list of 64 bytes long strings if value
length is bigger than 64 bytes
Otherwise, it returns the original string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string) - string to be adapted for metadata usageIf a list of strings ( produced by strToMetadataStr
) is provided, joins it into a single string
If a string is provided, returns the string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string | [string]) - string or list of strings produced by strToMetadataStr
Truncates a string from start to prefixLength
characters, attaches a separator
string, and finally adds the last suffixLength
characters of the string
Usefull for truncating long texts, or hashes and addresses when you want to keep the beginning and the end of them and discard the middle.
addr1qzk45...gkwg (prefixLength
=10 ,suffixLength
=4, separator
="...")
value
(string) - string to be truncatedprefixLength
(number) - initial number of characters to be included in resulting stringsuffixLength
(number) - final number of charactes to be included in resulting stringseparator
(string) - string to be included between prefix and suffix parts of the stringReplaces all match
ocurrencies inside str
by value
str
(string) - string where to search and replacematch
(string) - exact string that will be searched for and replaced by value
value
(string) - value to replaced withPauses the execution for interval
milliseconds
value
(any) - object to serialize as a JSON stringGet address
information as an object with many usefull properties
address
(string) - a valid cardano addressCalculates SHA512 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA256 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA1 hash of data
string
data
(string) - arbitrary string to be hashedCalculates MD5 hash of data
string
data
(string) - arbitrary string to be hashedGenerates a random RFC4122 UUID v4
Adds extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the sum as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - addends separated by comma (BigNum)Substracts extraArgs
subtrahends numbers from an initial value
minuend. Fails on underflow.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the substraction as a BigNum string.
value
(string | number) - minuend, initial value (BigNum)extraArgs
([string | number]) - subtrahends separated by comma (BigNum)Multiplies extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the multiplication as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - Multipliers separated by comma (BigNum)Value must be greater or equal to 0
Inline scripting language function definitions
The function set allows you to set arbitrary data on script context for later reuse.
path
(string) - path of the value to setvalue
(any) - variable to storeNote: Use get to return the value later
The function get allows you to get arbitrary data from script context.
path
(string) - path of the value to retrieveNote: Use set to set this values in first place
Returns an array with each provided argument as an item
values
(any) - items of the array separated by commaDumps to console a message (or object)
type
('log'|'info'|'warn'|'error') - value to pretty print in the logsvalue
(any) - value to pretty print in the logsParses a JSON string and returns an object
value
(string) - string value to parse, must be a valid JSON stringTurns an object into a valid JSON string
value
(any) - object to serialize as a JSON stringEncodes a utf-8 text string into hexadecimal string
value
(string) - utf-8 text stringDecodes an hexadecimal string into the former utf-8 text string
value
(string) - hexadecimal encoded stringEncodes a utf-8 text string into base64 string
value
(string) - utf-8 text stringDecodes a base64 string into a utf-8 text string
value
(string) - base64 encoded stringAutomatically splits a utf-8 text string into a list of 64 bytes long strings if value
length is bigger than 64 bytes
Otherwise, it returns the original string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string) - string to be adapted for metadata usageIf a list of strings ( produced by strToMetadataStr
) is provided, joins it into a single string
If a string is provided, returns the string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string | [string]) - string or list of strings produced by strToMetadataStr
Truncates a string from start to prefixLength
characters, attaches a separator
string, and finally adds the last suffixLength
characters of the string
Usefull for truncating long texts, or hashes and addresses when you want to keep the beginning and the end of them and discard the middle.
addr1qzk45...gkwg (prefixLength
=10 ,suffixLength
=4, separator
="...")
value
(string) - string to be truncatedprefixLength
(number) - initial number of characters to be included in resulting stringsuffixLength
(number) - final number of charactes to be included in resulting stringseparator
(string) - string to be included between prefix and suffix parts of the stringReplaces all match
ocurrencies inside str
by value
str
(string) - string where to search and replacematch
(string) - exact string that will be searched for and replaced by value
value
(string) - value to replaced withPauses the execution for interval
milliseconds
value
(any) - object to serialize as a JSON stringGet address
information as an object with many usefull properties
address
(string) - a valid cardano addressCalculates SHA512 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA256 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA1 hash of data
string
data
(string) - arbitrary string to be hashedCalculates MD5 hash of data
string
data
(string) - arbitrary string to be hashedGenerates a random RFC4122 UUID v4
Adds extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the sum as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - addends separated by comma (BigNum)Substracts extraArgs
subtrahends numbers from an initial value
minuend. Fails on underflow.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the substraction as a BigNum string.
value
(string | number) - minuend, initial value (BigNum)extraArgs
([string | number]) - subtrahends separated by comma (BigNum)Multiplies extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the multiplication as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - Multipliers separated by comma (BigNum)Returns true
once wallet asset balance mets a condition. If address
is not specify, will use current address. If ìs
is not specified, will default to greater-or-equal
"balance"
Inline scripting language function definitions
The function set allows you to set arbitrary data on script context for later reuse.
path
(string) - path of the value to setvalue
(any) - variable to storeNote: Use get to return the value later
The function get allows you to get arbitrary data from script context.
path
(string) - path of the value to retrieveNote: Use set to set this values in first place
Returns an array with each provided argument as an item
values
(any) - items of the array separated by commaDumps to console a message (or object)
type
('log'|'info'|'warn'|'error') - value to pretty print in the logsvalue
(any) - value to pretty print in the logsParses a JSON string and returns an object
value
(string) - string value to parse, must be a valid JSON stringTurns an object into a valid JSON string
value
(any) - object to serialize as a JSON stringEncodes a utf-8 text string into hexadecimal string
value
(string) - utf-8 text stringDecodes an hexadecimal string into the former utf-8 text string
value
(string) - hexadecimal encoded stringEncodes a utf-8 text string into base64 string
value
(string) - utf-8 text stringDecodes a base64 string into a utf-8 text string
value
(string) - base64 encoded stringAutomatically splits a utf-8 text string into a list of 64 bytes long strings if value
length is bigger than 64 bytes
Otherwise, it returns the original string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string) - string to be adapted for metadata usageIf a list of strings ( produced by strToMetadataStr
) is provided, joins it into a single string
If a string is provided, returns the string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string | [string]) - string or list of strings produced by strToMetadataStr
Truncates a string from start to prefixLength
characters, attaches a separator
string, and finally adds the last suffixLength
characters of the string
Usefull for truncating long texts, or hashes and addresses when you want to keep the beginning and the end of them and discard the middle.
addr1qzk45...gkwg (prefixLength
=10 ,suffixLength
=4, separator
="...")
value
(string) - string to be truncatedprefixLength
(number) - initial number of characters to be included in resulting stringsuffixLength
(number) - final number of charactes to be included in resulting stringseparator
(string) - string to be included between prefix and suffix parts of the stringReplaces all match
ocurrencies inside str
by value
str
(string) - string where to search and replacematch
(string) - exact string that will be searched for and replaced by value
value
(string) - value to replaced withPauses the execution for interval
milliseconds
value
(any) - object to serialize as a JSON stringGet address
information as an object with many usefull properties
address
(string) - a valid cardano addressCalculates SHA512 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA256 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA1 hash of data
string
data
(string) - arbitrary string to be hashedCalculates MD5 hash of data
string
data
(string) - arbitrary string to be hashedGenerates a random RFC4122 UUID v4
Adds extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the sum as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - addends separated by comma (BigNum)Substracts extraArgs
subtrahends numbers from an initial value
minuend. Fails on underflow.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the substraction as a BigNum string.
value
(string | number) - minuend, initial value (BigNum)extraArgs
([string | number]) - subtrahends separated by comma (BigNum)Multiplies extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the multiplication as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - Multipliers separated by comma (BigNum)Wallet Address (bech32)
Inline scripting language function definitions
The function set allows you to set arbitrary data on script context for later reuse.
path
(string) - path of the value to setvalue
(any) - variable to storeNote: Use get to return the value later
The function get allows you to get arbitrary data from script context.
path
(string) - path of the value to retrieveNote: Use set to set this values in first place
Returns an array with each provided argument as an item
values
(any) - items of the array separated by commaDumps to console a message (or object)
type
('log'|'info'|'warn'|'error') - value to pretty print in the logsvalue
(any) - value to pretty print in the logsParses a JSON string and returns an object
value
(string) - string value to parse, must be a valid JSON stringTurns an object into a valid JSON string
value
(any) - object to serialize as a JSON stringEncodes a utf-8 text string into hexadecimal string
value
(string) - utf-8 text stringDecodes an hexadecimal string into the former utf-8 text string
value
(string) - hexadecimal encoded stringEncodes a utf-8 text string into base64 string
value
(string) - utf-8 text stringDecodes a base64 string into a utf-8 text string
value
(string) - base64 encoded stringAutomatically splits a utf-8 text string into a list of 64 bytes long strings if value
length is bigger than 64 bytes
Otherwise, it returns the original string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string) - string to be adapted for metadata usageIf a list of strings ( produced by strToMetadataStr
) is provided, joins it into a single string
If a string is provided, returns the string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string | [string]) - string or list of strings produced by strToMetadataStr
Truncates a string from start to prefixLength
characters, attaches a separator
string, and finally adds the last suffixLength
characters of the string
Usefull for truncating long texts, or hashes and addresses when you want to keep the beginning and the end of them and discard the middle.
addr1qzk45...gkwg (prefixLength
=10 ,suffixLength
=4, separator
="...")
value
(string) - string to be truncatedprefixLength
(number) - initial number of characters to be included in resulting stringsuffixLength
(number) - final number of charactes to be included in resulting stringseparator
(string) - string to be included between prefix and suffix parts of the stringReplaces all match
ocurrencies inside str
by value
str
(string) - string where to search and replacematch
(string) - exact string that will be searched for and replaced by value
value
(string) - value to replaced withPauses the execution for interval
milliseconds
value
(any) - object to serialize as a JSON stringGet address
information as an object with many usefull properties
address
(string) - a valid cardano addressCalculates SHA512 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA256 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA1 hash of data
string
data
(string) - arbitrary string to be hashedCalculates MD5 hash of data
string
data
(string) - arbitrary string to be hashedGenerates a random RFC4122 UUID v4
Adds extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the sum as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - addends separated by comma (BigNum)Substracts extraArgs
subtrahends numbers from an initial value
minuend. Fails on underflow.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the substraction as a BigNum string.
value
(string | number) - minuend, initial value (BigNum)extraArgs
([string | number]) - subtrahends separated by comma (BigNum)Multiplies extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the multiplication as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - Multipliers separated by comma (BigNum)Inline scripting language function definitions
The function set allows you to set arbitrary data on script context for later reuse.
path
(string) - path of the value to setvalue
(any) - variable to storeNote: Use get to return the value later
The function get allows you to get arbitrary data from script context.
path
(string) - path of the value to retrieveNote: Use set to set this values in first place
Returns an array with each provided argument as an item
values
(any) - items of the array separated by commaDumps to console a message (or object)
type
('log'|'info'|'warn'|'error') - value to pretty print in the logsvalue
(any) - value to pretty print in the logsParses a JSON string and returns an object
value
(string) - string value to parse, must be a valid JSON stringTurns an object into a valid JSON string
value
(any) - object to serialize as a JSON stringEncodes a utf-8 text string into hexadecimal string
value
(string) - utf-8 text stringDecodes an hexadecimal string into the former utf-8 text string
value
(string) - hexadecimal encoded stringEncodes a utf-8 text string into base64 string
value
(string) - utf-8 text stringDecodes a base64 string into a utf-8 text string
value
(string) - base64 encoded stringAutomatically splits a utf-8 text string into a list of 64 bytes long strings if value
length is bigger than 64 bytes
Otherwise, it returns the original string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string) - string to be adapted for metadata usageIf a list of strings ( produced by strToMetadataStr
) is provided, joins it into a single string
If a string is provided, returns the string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string | [string]) - string or list of strings produced by strToMetadataStr
Truncates a string from start to prefixLength
characters, attaches a separator
string, and finally adds the last suffixLength
characters of the string
Usefull for truncating long texts, or hashes and addresses when you want to keep the beginning and the end of them and discard the middle.
addr1qzk45...gkwg (prefixLength
=10 ,suffixLength
=4, separator
="...")
value
(string) - string to be truncatedprefixLength
(number) - initial number of characters to be included in resulting stringsuffixLength
(number) - final number of charactes to be included in resulting stringseparator
(string) - string to be included between prefix and suffix parts of the stringReplaces all match
ocurrencies inside str
by value
str
(string) - string where to search and replacematch
(string) - exact string that will be searched for and replaced by value
value
(string) - value to replaced withPauses the execution for interval
milliseconds
value
(any) - object to serialize as a JSON stringGet address
information as an object with many usefull properties
address
(string) - a valid cardano addressCalculates SHA512 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA256 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA1 hash of data
string
data
(string) - arbitrary string to be hashedCalculates MD5 hash of data
string
data
(string) - arbitrary string to be hashedGenerates a random RFC4122 UUID v4
Adds extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the sum as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - addends separated by comma (BigNum)Substracts extraArgs
subtrahends numbers from an initial value
minuend. Fails on underflow.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the substraction as a BigNum string.
value
(string | number) - minuend, initial value (BigNum)extraArgs
([string | number]) - subtrahends separated by comma (BigNum)Multiplies extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the multiplication as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - Multipliers separated by comma (BigNum)Definition of a Cardano asset. Using an ASCII asset name encoding as argument
No Additional PropertiesNative Script or Plutus Script (hexadecimal)
Inline scripting language function definitions
The function set allows you to set arbitrary data on script context for later reuse.
path
(string) - path of the value to setvalue
(any) - variable to storeNote: Use get to return the value later
The function get allows you to get arbitrary data from script context.
path
(string) - path of the value to retrieveNote: Use set to set this values in first place
Returns an array with each provided argument as an item
values
(any) - items of the array separated by commaDumps to console a message (or object)
type
('log'|'info'|'warn'|'error') - value to pretty print in the logsvalue
(any) - value to pretty print in the logsParses a JSON string and returns an object
value
(string) - string value to parse, must be a valid JSON stringTurns an object into a valid JSON string
value
(any) - object to serialize as a JSON stringEncodes a utf-8 text string into hexadecimal string
value
(string) - utf-8 text stringDecodes an hexadecimal string into the former utf-8 text string
value
(string) - hexadecimal encoded stringEncodes a utf-8 text string into base64 string
value
(string) - utf-8 text stringDecodes a base64 string into a utf-8 text string
value
(string) - base64 encoded stringAutomatically splits a utf-8 text string into a list of 64 bytes long strings if value
length is bigger than 64 bytes
Otherwise, it returns the original string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string) - string to be adapted for metadata usageIf a list of strings ( produced by strToMetadataStr
) is provided, joins it into a single string
If a string is provided, returns the string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string | [string]) - string or list of strings produced by strToMetadataStr
Truncates a string from start to prefixLength
characters, attaches a separator
string, and finally adds the last suffixLength
characters of the string
Usefull for truncating long texts, or hashes and addresses when you want to keep the beginning and the end of them and discard the middle.
addr1qzk45...gkwg (prefixLength
=10 ,suffixLength
=4, separator
="...")
value
(string) - string to be truncatedprefixLength
(number) - initial number of characters to be included in resulting stringsuffixLength
(number) - final number of charactes to be included in resulting stringseparator
(string) - string to be included between prefix and suffix parts of the stringReplaces all match
ocurrencies inside str
by value
str
(string) - string where to search and replacematch
(string) - exact string that will be searched for and replaced by value
value
(string) - value to replaced withPauses the execution for interval
milliseconds
value
(any) - object to serialize as a JSON stringGet address
information as an object with many usefull properties
address
(string) - a valid cardano addressCalculates SHA512 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA256 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA1 hash of data
string
data
(string) - arbitrary string to be hashedCalculates MD5 hash of data
string
data
(string) - arbitrary string to be hashedGenerates a random RFC4122 UUID v4
Adds extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the sum as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - addends separated by comma (BigNum)Substracts extraArgs
subtrahends numbers from an initial value
minuend. Fails on underflow.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the substraction as a BigNum string.
value
(string | number) - minuend, initial value (BigNum)extraArgs
([string | number]) - subtrahends separated by comma (BigNum)Multiplies extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the multiplication as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - Multipliers separated by comma (BigNum)Quantity (Positive BigNum)
Inline scripting language function definitions
The function set allows you to set arbitrary data on script context for later reuse.
path
(string) - path of the value to setvalue
(any) - variable to storeNote: Use get to return the value later
The function get allows you to get arbitrary data from script context.
path
(string) - path of the value to retrieveNote: Use set to set this values in first place
Returns an array with each provided argument as an item
values
(any) - items of the array separated by commaDumps to console a message (or object)
type
('log'|'info'|'warn'|'error') - value to pretty print in the logsvalue
(any) - value to pretty print in the logsParses a JSON string and returns an object
value
(string) - string value to parse, must be a valid JSON stringTurns an object into a valid JSON string
value
(any) - object to serialize as a JSON stringEncodes a utf-8 text string into hexadecimal string
value
(string) - utf-8 text stringDecodes an hexadecimal string into the former utf-8 text string
value
(string) - hexadecimal encoded stringEncodes a utf-8 text string into base64 string
value
(string) - utf-8 text stringDecodes a base64 string into a utf-8 text string
value
(string) - base64 encoded stringAutomatically splits a utf-8 text string into a list of 64 bytes long strings if value
length is bigger than 64 bytes
Otherwise, it returns the original string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string) - string to be adapted for metadata usageIf a list of strings ( produced by strToMetadataStr
) is provided, joins it into a single string
If a string is provided, returns the string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string | [string]) - string or list of strings produced by strToMetadataStr
Truncates a string from start to prefixLength
characters, attaches a separator
string, and finally adds the last suffixLength
characters of the string
Usefull for truncating long texts, or hashes and addresses when you want to keep the beginning and the end of them and discard the middle.
addr1qzk45...gkwg (prefixLength
=10 ,suffixLength
=4, separator
="...")
value
(string) - string to be truncatedprefixLength
(number) - initial number of characters to be included in resulting stringsuffixLength
(number) - final number of charactes to be included in resulting stringseparator
(string) - string to be included between prefix and suffix parts of the stringReplaces all match
ocurrencies inside str
by value
str
(string) - string where to search and replacematch
(string) - exact string that will be searched for and replaced by value
value
(string) - value to replaced withPauses the execution for interval
milliseconds
value
(any) - object to serialize as a JSON stringGet address
information as an object with many usefull properties
address
(string) - a valid cardano addressCalculates SHA512 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA256 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA1 hash of data
string
data
(string) - arbitrary string to be hashedCalculates MD5 hash of data
string
data
(string) - arbitrary string to be hashedGenerates a random RFC4122 UUID v4
Adds extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the sum as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - addends separated by comma (BigNum)Substracts extraArgs
subtrahends numbers from an initial value
minuend. Fails on underflow.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the substraction as a BigNum string.
value
(string | number) - minuend, initial value (BigNum)extraArgs
([string | number]) - subtrahends separated by comma (BigNum)Multiplies extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the multiplication as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - Multipliers separated by comma (BigNum)Definition of a Cardano asset. Using an hexadecimal asset name encoding as argument
No Additional PropertiesNative Script or Plutus Script (hexadecimal)
Same definition as Native Script or Plutus Script HashInline scripting language function definitions
The function set allows you to set arbitrary data on script context for later reuse.
path
(string) - path of the value to setvalue
(any) - variable to storeNote: Use get to return the value later
The function get allows you to get arbitrary data from script context.
path
(string) - path of the value to retrieveNote: Use set to set this values in first place
Returns an array with each provided argument as an item
values
(any) - items of the array separated by commaDumps to console a message (or object)
type
('log'|'info'|'warn'|'error') - value to pretty print in the logsvalue
(any) - value to pretty print in the logsParses a JSON string and returns an object
value
(string) - string value to parse, must be a valid JSON stringTurns an object into a valid JSON string
value
(any) - object to serialize as a JSON stringEncodes a utf-8 text string into hexadecimal string
value
(string) - utf-8 text stringDecodes an hexadecimal string into the former utf-8 text string
value
(string) - hexadecimal encoded stringEncodes a utf-8 text string into base64 string
value
(string) - utf-8 text stringDecodes a base64 string into a utf-8 text string
value
(string) - base64 encoded stringAutomatically splits a utf-8 text string into a list of 64 bytes long strings if value
length is bigger than 64 bytes
Otherwise, it returns the original string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string) - string to be adapted for metadata usageIf a list of strings ( produced by strToMetadataStr
) is provided, joins it into a single string
If a string is provided, returns the string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string | [string]) - string or list of strings produced by strToMetadataStr
Truncates a string from start to prefixLength
characters, attaches a separator
string, and finally adds the last suffixLength
characters of the string
Usefull for truncating long texts, or hashes and addresses when you want to keep the beginning and the end of them and discard the middle.
addr1qzk45...gkwg (prefixLength
=10 ,suffixLength
=4, separator
="...")
value
(string) - string to be truncatedprefixLength
(number) - initial number of characters to be included in resulting stringsuffixLength
(number) - final number of charactes to be included in resulting stringseparator
(string) - string to be included between prefix and suffix parts of the stringReplaces all match
ocurrencies inside str
by value
str
(string) - string where to search and replacematch
(string) - exact string that will be searched for and replaced by value
value
(string) - value to replaced withPauses the execution for interval
milliseconds
value
(any) - object to serialize as a JSON stringGet address
information as an object with many usefull properties
address
(string) - a valid cardano addressCalculates SHA512 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA256 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA1 hash of data
string
data
(string) - arbitrary string to be hashedCalculates MD5 hash of data
string
data
(string) - arbitrary string to be hashedGenerates a random RFC4122 UUID v4
Adds extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the sum as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - addends separated by comma (BigNum)Substracts extraArgs
subtrahends numbers from an initial value
minuend. Fails on underflow.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the substraction as a BigNum string.
value
(string | number) - minuend, initial value (BigNum)extraArgs
([string | number]) - subtrahends separated by comma (BigNum)Multiplies extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the multiplication as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - Multipliers separated by comma (BigNum)Inline scripting language function definitions
The function set allows you to set arbitrary data on script context for later reuse.
path
(string) - path of the value to setvalue
(any) - variable to storeNote: Use get to return the value later
The function get allows you to get arbitrary data from script context.
path
(string) - path of the value to retrieveNote: Use set to set this values in first place
Returns an array with each provided argument as an item
values
(any) - items of the array separated by commaDumps to console a message (or object)
type
('log'|'info'|'warn'|'error') - value to pretty print in the logsvalue
(any) - value to pretty print in the logsParses a JSON string and returns an object
value
(string) - string value to parse, must be a valid JSON stringTurns an object into a valid JSON string
value
(any) - object to serialize as a JSON stringEncodes a utf-8 text string into hexadecimal string
value
(string) - utf-8 text stringDecodes an hexadecimal string into the former utf-8 text string
value
(string) - hexadecimal encoded stringEncodes a utf-8 text string into base64 string
value
(string) - utf-8 text stringDecodes a base64 string into a utf-8 text string
value
(string) - base64 encoded stringAutomatically splits a utf-8 text string into a list of 64 bytes long strings if value
length is bigger than 64 bytes
Otherwise, it returns the original string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string) - string to be adapted for metadata usageIf a list of strings ( produced by strToMetadataStr
) is provided, joins it into a single string
If a string is provided, returns the string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string | [string]) - string or list of strings produced by strToMetadataStr
Truncates a string from start to prefixLength
characters, attaches a separator
string, and finally adds the last suffixLength
characters of the string
Usefull for truncating long texts, or hashes and addresses when you want to keep the beginning and the end of them and discard the middle.
addr1qzk45...gkwg (prefixLength
=10 ,suffixLength
=4, separator
="...")
value
(string) - string to be truncatedprefixLength
(number) - initial number of characters to be included in resulting stringsuffixLength
(number) - final number of charactes to be included in resulting stringseparator
(string) - string to be included between prefix and suffix parts of the stringReplaces all match
ocurrencies inside str
by value
str
(string) - string where to search and replacematch
(string) - exact string that will be searched for and replaced by value
value
(string) - value to replaced withPauses the execution for interval
milliseconds
value
(any) - object to serialize as a JSON stringGet address
information as an object with many usefull properties
address
(string) - a valid cardano addressCalculates SHA512 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA256 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA1 hash of data
string
data
(string) - arbitrary string to be hashedCalculates MD5 hash of data
string
data
(string) - arbitrary string to be hashedGenerates a random RFC4122 UUID v4
Adds extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the sum as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - addends separated by comma (BigNum)Substracts extraArgs
subtrahends numbers from an initial value
minuend. Fails on underflow.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the substraction as a BigNum string.
value
(string | number) - minuend, initial value (BigNum)extraArgs
([string | number]) - subtrahends separated by comma (BigNum)Multiplies extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the multiplication as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - Multipliers separated by comma (BigNum)Inline scripting language function definitions
The function set allows you to set arbitrary data on script context for later reuse.
path
(string) - path of the value to setvalue
(any) - variable to storeNote: Use get to return the value later
The function get allows you to get arbitrary data from script context.
path
(string) - path of the value to retrieveNote: Use set to set this values in first place
Returns an array with each provided argument as an item
values
(any) - items of the array separated by commaDumps to console a message (or object)
type
('log'|'info'|'warn'|'error') - value to pretty print in the logsvalue
(any) - value to pretty print in the logsParses a JSON string and returns an object
value
(string) - string value to parse, must be a valid JSON stringTurns an object into a valid JSON string
value
(any) - object to serialize as a JSON stringEncodes a utf-8 text string into hexadecimal string
value
(string) - utf-8 text stringDecodes an hexadecimal string into the former utf-8 text string
value
(string) - hexadecimal encoded stringEncodes a utf-8 text string into base64 string
value
(string) - utf-8 text stringDecodes a base64 string into a utf-8 text string
value
(string) - base64 encoded stringAutomatically splits a utf-8 text string into a list of 64 bytes long strings if value
length is bigger than 64 bytes
Otherwise, it returns the original string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string) - string to be adapted for metadata usageIf a list of strings ( produced by strToMetadataStr
) is provided, joins it into a single string
If a string is provided, returns the string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string | [string]) - string or list of strings produced by strToMetadataStr
Truncates a string from start to prefixLength
characters, attaches a separator
string, and finally adds the last suffixLength
characters of the string
Usefull for truncating long texts, or hashes and addresses when you want to keep the beginning and the end of them and discard the middle.
addr1qzk45...gkwg (prefixLength
=10 ,suffixLength
=4, separator
="...")
value
(string) - string to be truncatedprefixLength
(number) - initial number of characters to be included in resulting stringsuffixLength
(number) - final number of charactes to be included in resulting stringseparator
(string) - string to be included between prefix and suffix parts of the stringReplaces all match
ocurrencies inside str
by value
str
(string) - string where to search and replacematch
(string) - exact string that will be searched for and replaced by value
value
(string) - value to replaced withPauses the execution for interval
milliseconds
value
(any) - object to serialize as a JSON stringGet address
information as an object with many usefull properties
address
(string) - a valid cardano addressCalculates SHA512 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA256 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA1 hash of data
string
data
(string) - arbitrary string to be hashedCalculates MD5 hash of data
string
data
(string) - arbitrary string to be hashedGenerates a random RFC4122 UUID v4
Adds extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the sum as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - addends separated by comma (BigNum)Substracts extraArgs
subtrahends numbers from an initial value
minuend. Fails on underflow.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the substraction as a BigNum string.
value
(string | number) - minuend, initial value (BigNum)extraArgs
([string | number]) - subtrahends separated by comma (BigNum)Multiplies extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the multiplication as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - Multipliers separated by comma (BigNum)Inline scripting language function definitions
The function set allows you to set arbitrary data on script context for later reuse.
path
(string) - path of the value to setvalue
(any) - variable to storeNote: Use get to return the value later
The function get allows you to get arbitrary data from script context.
path
(string) - path of the value to retrieveNote: Use set to set this values in first place
Returns an array with each provided argument as an item
values
(any) - items of the array separated by commaDumps to console a message (or object)
type
('log'|'info'|'warn'|'error') - value to pretty print in the logsvalue
(any) - value to pretty print in the logsParses a JSON string and returns an object
value
(string) - string value to parse, must be a valid JSON stringTurns an object into a valid JSON string
value
(any) - object to serialize as a JSON stringEncodes a utf-8 text string into hexadecimal string
value
(string) - utf-8 text stringDecodes an hexadecimal string into the former utf-8 text string
value
(string) - hexadecimal encoded stringEncodes a utf-8 text string into base64 string
value
(string) - utf-8 text stringDecodes a base64 string into a utf-8 text string
value
(string) - base64 encoded stringAutomatically splits a utf-8 text string into a list of 64 bytes long strings if value
length is bigger than 64 bytes
Otherwise, it returns the original string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string) - string to be adapted for metadata usageIf a list of strings ( produced by strToMetadataStr
) is provided, joins it into a single string
If a string is provided, returns the string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string | [string]) - string or list of strings produced by strToMetadataStr
Truncates a string from start to prefixLength
characters, attaches a separator
string, and finally adds the last suffixLength
characters of the string
Usefull for truncating long texts, or hashes and addresses when you want to keep the beginning and the end of them and discard the middle.
addr1qzk45...gkwg (prefixLength
=10 ,suffixLength
=4, separator
="...")
value
(string) - string to be truncatedprefixLength
(number) - initial number of characters to be included in resulting stringsuffixLength
(number) - final number of charactes to be included in resulting stringseparator
(string) - string to be included between prefix and suffix parts of the stringReplaces all match
ocurrencies inside str
by value
str
(string) - string where to search and replacematch
(string) - exact string that will be searched for and replaced by value
value
(string) - value to replaced withPauses the execution for interval
milliseconds
value
(any) - object to serialize as a JSON stringGet address
information as an object with many usefull properties
address
(string) - a valid cardano addressCalculates SHA512 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA256 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA1 hash of data
string
data
(string) - arbitrary string to be hashedCalculates MD5 hash of data
string
data
(string) - arbitrary string to be hashedGenerates a random RFC4122 UUID v4
Adds extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the sum as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - addends separated by comma (BigNum)Substracts extraArgs
subtrahends numbers from an initial value
minuend. Fails on underflow.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the substraction as a BigNum string.
value
(string | number) - minuend, initial value (BigNum)extraArgs
([string | number]) - subtrahends separated by comma (BigNum)Multiplies extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the multiplication as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - Multipliers separated by comma (BigNum)All properties whose name matches the following regular expression must respect the following conditions
Property name regular expression:
Inline scripting language function definitions
The function set allows you to set arbitrary data on script context for later reuse.
path
(string) - path of the value to setvalue
(any) - variable to storeNote: Use get to return the value later
The function get allows you to get arbitrary data from script context.
path
(string) - path of the value to retrieveNote: Use set to set this values in first place
Returns an array with each provided argument as an item
values
(any) - items of the array separated by commaDumps to console a message (or object)
type
('log'|'info'|'warn'|'error') - value to pretty print in the logsvalue
(any) - value to pretty print in the logsParses a JSON string and returns an object
value
(string) - string value to parse, must be a valid JSON stringTurns an object into a valid JSON string
value
(any) - object to serialize as a JSON stringEncodes a utf-8 text string into hexadecimal string
value
(string) - utf-8 text stringDecodes an hexadecimal string into the former utf-8 text string
value
(string) - hexadecimal encoded stringEncodes a utf-8 text string into base64 string
value
(string) - utf-8 text stringDecodes a base64 string into a utf-8 text string
value
(string) - base64 encoded stringAutomatically splits a utf-8 text string into a list of 64 bytes long strings if value
length is bigger than 64 bytes
Otherwise, it returns the original string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string) - string to be adapted for metadata usageIf a list of strings ( produced by strToMetadataStr
) is provided, joins it into a single string
If a string is provided, returns the string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string | [string]) - string or list of strings produced by strToMetadataStr
Truncates a string from start to prefixLength
characters, attaches a separator
string, and finally adds the last suffixLength
characters of the string
Usefull for truncating long texts, or hashes and addresses when you want to keep the beginning and the end of them and discard the middle.
addr1qzk45...gkwg (prefixLength
=10 ,suffixLength
=4, separator
="...")
value
(string) - string to be truncatedprefixLength
(number) - initial number of characters to be included in resulting stringsuffixLength
(number) - final number of charactes to be included in resulting stringseparator
(string) - string to be included between prefix and suffix parts of the stringReplaces all match
ocurrencies inside str
by value
str
(string) - string where to search and replacematch
(string) - exact string that will be searched for and replaced by value
value
(string) - value to replaced withPauses the execution for interval
milliseconds
value
(any) - object to serialize as a JSON stringGet address
information as an object with many usefull properties
address
(string) - a valid cardano addressCalculates SHA512 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA256 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA1 hash of data
string
data
(string) - arbitrary string to be hashedCalculates MD5 hash of data
string
data
(string) - arbitrary string to be hashedGenerates a random RFC4122 UUID v4
Adds extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the sum as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - addends separated by comma (BigNum)Substracts extraArgs
subtrahends numbers from an initial value
minuend. Fails on underflow.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the substraction as a BigNum string.
value
(string | number) - minuend, initial value (BigNum)extraArgs
([string | number]) - subtrahends separated by comma (BigNum)Multiplies extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the multiplication as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - Multipliers separated by comma (BigNum)All properties whose name matches the following regular expression must respect the following conditions
Property name regular expression:
Inline scripting language function definitions
The function set allows you to set arbitrary data on script context for later reuse.
path
(string) - path of the value to setvalue
(any) - variable to storeNote: Use get to return the value later
The function get allows you to get arbitrary data from script context.
path
(string) - path of the value to retrieveNote: Use set to set this values in first place
Returns an array with each provided argument as an item
values
(any) - items of the array separated by commaDumps to console a message (or object)
type
('log'|'info'|'warn'|'error') - value to pretty print in the logsvalue
(any) - value to pretty print in the logsParses a JSON string and returns an object
value
(string) - string value to parse, must be a valid JSON stringTurns an object into a valid JSON string
value
(any) - object to serialize as a JSON stringEncodes a utf-8 text string into hexadecimal string
value
(string) - utf-8 text stringDecodes an hexadecimal string into the former utf-8 text string
value
(string) - hexadecimal encoded stringEncodes a utf-8 text string into base64 string
value
(string) - utf-8 text stringDecodes a base64 string into a utf-8 text string
value
(string) - base64 encoded stringAutomatically splits a utf-8 text string into a list of 64 bytes long strings if value
length is bigger than 64 bytes
Otherwise, it returns the original string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string) - string to be adapted for metadata usageIf a list of strings ( produced by strToMetadataStr
) is provided, joins it into a single string
If a string is provided, returns the string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string | [string]) - string or list of strings produced by strToMetadataStr
Truncates a string from start to prefixLength
characters, attaches a separator
string, and finally adds the last suffixLength
characters of the string
Usefull for truncating long texts, or hashes and addresses when you want to keep the beginning and the end of them and discard the middle.
addr1qzk45...gkwg (prefixLength
=10 ,suffixLength
=4, separator
="...")
value
(string) - string to be truncatedprefixLength
(number) - initial number of characters to be included in resulting stringsuffixLength
(number) - final number of charactes to be included in resulting stringseparator
(string) - string to be included between prefix and suffix parts of the stringReplaces all match
ocurrencies inside str
by value
str
(string) - string where to search and replacematch
(string) - exact string that will be searched for and replaced by value
value
(string) - value to replaced withPauses the execution for interval
milliseconds
value
(any) - object to serialize as a JSON stringGet address
information as an object with many usefull properties
address
(string) - a valid cardano addressCalculates SHA512 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA256 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA1 hash of data
string
data
(string) - arbitrary string to be hashedCalculates MD5 hash of data
string
data
(string) - arbitrary string to be hashedGenerates a random RFC4122 UUID v4
Adds extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the sum as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - addends separated by comma (BigNum)Substracts extraArgs
subtrahends numbers from an initial value
minuend. Fails on underflow.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the substraction as a BigNum string.
value
(string | number) - minuend, initial value (BigNum)extraArgs
([string | number]) - subtrahends separated by comma (BigNum)Multiplies extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the multiplication as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - Multipliers separated by comma (BigNum)Get Public Keys from current workspace artifacts stored on wallet local storage, applying a search filter
and allowing the customization of the resulting key-value map using keyPattern
to name the keyed results, offset
and limit
numbers to paginate results, and sort
to sort the keys of the resulting map
"getPublicKeys"
Pattern for naming each key of the resulting key-value mapping. You can use variables wrapped between {
and }
. Available templating variables are limit
, offset
, index
, position
, count
, maxOffset
, sort
, artifactKind
, artifactRef
, artifactKey
, artifactName
, pubKeyHashHex
, kind
, accountIndex
, addressIndex
, path
.
Inline scripting language function definitions
The function set allows you to set arbitrary data on script context for later reuse.
path
(string) - path of the value to setvalue
(any) - variable to storeNote: Use get to return the value later
The function get allows you to get arbitrary data from script context.
path
(string) - path of the value to retrieveNote: Use set to set this values in first place
Returns an array with each provided argument as an item
values
(any) - items of the array separated by commaDumps to console a message (or object)
type
('log'|'info'|'warn'|'error') - value to pretty print in the logsvalue
(any) - value to pretty print in the logsParses a JSON string and returns an object
value
(string) - string value to parse, must be a valid JSON stringTurns an object into a valid JSON string
value
(any) - object to serialize as a JSON stringEncodes a utf-8 text string into hexadecimal string
value
(string) - utf-8 text stringDecodes an hexadecimal string into the former utf-8 text string
value
(string) - hexadecimal encoded stringEncodes a utf-8 text string into base64 string
value
(string) - utf-8 text stringDecodes a base64 string into a utf-8 text string
value
(string) - base64 encoded stringAutomatically splits a utf-8 text string into a list of 64 bytes long strings if value
length is bigger than 64 bytes
Otherwise, it returns the original string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string) - string to be adapted for metadata usageIf a list of strings ( produced by strToMetadataStr
) is provided, joins it into a single string
If a string is provided, returns the string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string | [string]) - string or list of strings produced by strToMetadataStr
Truncates a string from start to prefixLength
characters, attaches a separator
string, and finally adds the last suffixLength
characters of the string
Usefull for truncating long texts, or hashes and addresses when you want to keep the beginning and the end of them and discard the middle.
addr1qzk45...gkwg (prefixLength
=10 ,suffixLength
=4, separator
="...")
value
(string) - string to be truncatedprefixLength
(number) - initial number of characters to be included in resulting stringsuffixLength
(number) - final number of charactes to be included in resulting stringseparator
(string) - string to be included between prefix and suffix parts of the stringReplaces all match
ocurrencies inside str
by value
str
(string) - string where to search and replacematch
(string) - exact string that will be searched for and replaced by value
value
(string) - value to replaced withPauses the execution for interval
milliseconds
value
(any) - object to serialize as a JSON stringGet address
information as an object with many usefull properties
address
(string) - a valid cardano addressCalculates SHA512 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA256 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA1 hash of data
string
data
(string) - arbitrary string to be hashedCalculates MD5 hash of data
string
data
(string) - arbitrary string to be hashedGenerates a random RFC4122 UUID v4
Adds extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the sum as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - addends separated by comma (BigNum)Substracts extraArgs
subtrahends numbers from an initial value
minuend. Fails on underflow.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the substraction as a BigNum string.
value
(string | number) - minuend, initial value (BigNum)extraArgs
([string | number]) - subtrahends separated by comma (BigNum)Multiplies extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the multiplication as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - Multipliers separated by comma (BigNum)"Item-{artifactName}"
"{artifactKind} {index}/{maxOffset}"
"{artifactKind} {position}/{count}"
Value must be greater or equal to 0
Inline scripting language function definitions
The function set allows you to set arbitrary data on script context for later reuse.
path
(string) - path of the value to setvalue
(any) - variable to storeNote: Use get to return the value later
The function get allows you to get arbitrary data from script context.
path
(string) - path of the value to retrieveNote: Use set to set this values in first place
Returns an array with each provided argument as an item
values
(any) - items of the array separated by commaDumps to console a message (or object)
type
('log'|'info'|'warn'|'error') - value to pretty print in the logsvalue
(any) - value to pretty print in the logsParses a JSON string and returns an object
value
(string) - string value to parse, must be a valid JSON stringTurns an object into a valid JSON string
value
(any) - object to serialize as a JSON stringEncodes a utf-8 text string into hexadecimal string
value
(string) - utf-8 text stringDecodes an hexadecimal string into the former utf-8 text string
value
(string) - hexadecimal encoded stringEncodes a utf-8 text string into base64 string
value
(string) - utf-8 text stringDecodes a base64 string into a utf-8 text string
value
(string) - base64 encoded stringAutomatically splits a utf-8 text string into a list of 64 bytes long strings if value
length is bigger than 64 bytes
Otherwise, it returns the original string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string) - string to be adapted for metadata usageIf a list of strings ( produced by strToMetadataStr
) is provided, joins it into a single string
If a string is provided, returns the string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string | [string]) - string or list of strings produced by strToMetadataStr
Truncates a string from start to prefixLength
characters, attaches a separator
string, and finally adds the last suffixLength
characters of the string
Usefull for truncating long texts, or hashes and addresses when you want to keep the beginning and the end of them and discard the middle.
addr1qzk45...gkwg (prefixLength
=10 ,suffixLength
=4, separator
="...")
value
(string) - string to be truncatedprefixLength
(number) - initial number of characters to be included in resulting stringsuffixLength
(number) - final number of charactes to be included in resulting stringseparator
(string) - string to be included between prefix and suffix parts of the stringReplaces all match
ocurrencies inside str
by value
str
(string) - string where to search and replacematch
(string) - exact string that will be searched for and replaced by value
value
(string) - value to replaced withPauses the execution for interval
milliseconds
value
(any) - object to serialize as a JSON stringGet address
information as an object with many usefull properties
address
(string) - a valid cardano addressCalculates SHA512 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA256 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA1 hash of data
string
data
(string) - arbitrary string to be hashedCalculates MD5 hash of data
string
data
(string) - arbitrary string to be hashedGenerates a random RFC4122 UUID v4
Adds extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the sum as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - addends separated by comma (BigNum)Substracts extraArgs
subtrahends numbers from an initial value
minuend. Fails on underflow.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the substraction as a BigNum string.
value
(string | number) - minuend, initial value (BigNum)extraArgs
([string | number]) - subtrahends separated by comma (BigNum)Multiplies extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the multiplication as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - Multipliers separated by comma (BigNum)Value must be greater or equal to 0
Inline scripting language function definitions
The function set allows you to set arbitrary data on script context for later reuse.
path
(string) - path of the value to setvalue
(any) - variable to storeNote: Use get to return the value later
The function get allows you to get arbitrary data from script context.
path
(string) - path of the value to retrieveNote: Use set to set this values in first place
Returns an array with each provided argument as an item
values
(any) - items of the array separated by commaDumps to console a message (or object)
type
('log'|'info'|'warn'|'error') - value to pretty print in the logsvalue
(any) - value to pretty print in the logsParses a JSON string and returns an object
value
(string) - string value to parse, must be a valid JSON stringTurns an object into a valid JSON string
value
(any) - object to serialize as a JSON stringEncodes a utf-8 text string into hexadecimal string
value
(string) - utf-8 text stringDecodes an hexadecimal string into the former utf-8 text string
value
(string) - hexadecimal encoded stringEncodes a utf-8 text string into base64 string
value
(string) - utf-8 text stringDecodes a base64 string into a utf-8 text string
value
(string) - base64 encoded stringAutomatically splits a utf-8 text string into a list of 64 bytes long strings if value
length is bigger than 64 bytes
Otherwise, it returns the original string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string) - string to be adapted for metadata usageIf a list of strings ( produced by strToMetadataStr
) is provided, joins it into a single string
If a string is provided, returns the string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string | [string]) - string or list of strings produced by strToMetadataStr
Truncates a string from start to prefixLength
characters, attaches a separator
string, and finally adds the last suffixLength
characters of the string
Usefull for truncating long texts, or hashes and addresses when you want to keep the beginning and the end of them and discard the middle.
addr1qzk45...gkwg (prefixLength
=10 ,suffixLength
=4, separator
="...")
value
(string) - string to be truncatedprefixLength
(number) - initial number of characters to be included in resulting stringsuffixLength
(number) - final number of charactes to be included in resulting stringseparator
(string) - string to be included between prefix and suffix parts of the stringReplaces all match
ocurrencies inside str
by value
str
(string) - string where to search and replacematch
(string) - exact string that will be searched for and replaced by value
value
(string) - value to replaced withPauses the execution for interval
milliseconds
value
(any) - object to serialize as a JSON stringGet address
information as an object with many usefull properties
address
(string) - a valid cardano addressCalculates SHA512 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA256 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA1 hash of data
string
data
(string) - arbitrary string to be hashedCalculates MD5 hash of data
string
data
(string) - arbitrary string to be hashedGenerates a random RFC4122 UUID v4
Adds extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the sum as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - addends separated by comma (BigNum)Substracts extraArgs
subtrahends numbers from an initial value
minuend. Fails on underflow.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the substraction as a BigNum string.
value
(string | number) - minuend, initial value (BigNum)extraArgs
([string | number]) - subtrahends separated by comma (BigNum)Multiplies extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the multiplication as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - Multipliers separated by comma (BigNum)Inline scripting language function definitions
The function set allows you to set arbitrary data on script context for later reuse.
path
(string) - path of the value to setvalue
(any) - variable to storeNote: Use get to return the value later
The function get allows you to get arbitrary data from script context.
path
(string) - path of the value to retrieveNote: Use set to set this values in first place
Returns an array with each provided argument as an item
values
(any) - items of the array separated by commaDumps to console a message (or object)
type
('log'|'info'|'warn'|'error') - value to pretty print in the logsvalue
(any) - value to pretty print in the logsParses a JSON string and returns an object
value
(string) - string value to parse, must be a valid JSON stringTurns an object into a valid JSON string
value
(any) - object to serialize as a JSON stringEncodes a utf-8 text string into hexadecimal string
value
(string) - utf-8 text stringDecodes an hexadecimal string into the former utf-8 text string
value
(string) - hexadecimal encoded stringEncodes a utf-8 text string into base64 string
value
(string) - utf-8 text stringDecodes a base64 string into a utf-8 text string
value
(string) - base64 encoded stringAutomatically splits a utf-8 text string into a list of 64 bytes long strings if value
length is bigger than 64 bytes
Otherwise, it returns the original string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string) - string to be adapted for metadata usageIf a list of strings ( produced by strToMetadataStr
) is provided, joins it into a single string
If a string is provided, returns the string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string | [string]) - string or list of strings produced by strToMetadataStr
Truncates a string from start to prefixLength
characters, attaches a separator
string, and finally adds the last suffixLength
characters of the string
Usefull for truncating long texts, or hashes and addresses when you want to keep the beginning and the end of them and discard the middle.
addr1qzk45...gkwg (prefixLength
=10 ,suffixLength
=4, separator
="...")
value
(string) - string to be truncatedprefixLength
(number) - initial number of characters to be included in resulting stringsuffixLength
(number) - final number of charactes to be included in resulting stringseparator
(string) - string to be included between prefix and suffix parts of the stringReplaces all match
ocurrencies inside str
by value
str
(string) - string where to search and replacematch
(string) - exact string that will be searched for and replaced by value
value
(string) - value to replaced withPauses the execution for interval
milliseconds
value
(any) - object to serialize as a JSON stringGet address
information as an object with many usefull properties
address
(string) - a valid cardano addressCalculates SHA512 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA256 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA1 hash of data
string
data
(string) - arbitrary string to be hashedCalculates MD5 hash of data
string
data
(string) - arbitrary string to be hashedGenerates a random RFC4122 UUID v4
Adds extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the sum as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - addends separated by comma (BigNum)Substracts extraArgs
subtrahends numbers from an initial value
minuend. Fails on underflow.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the substraction as a BigNum string.
value
(string | number) - minuend, initial value (BigNum)extraArgs
([string | number]) - subtrahends separated by comma (BigNum)Multiplies extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the multiplication as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - Multipliers separated by comma (BigNum)Inline scripting language function definitions
The function set allows you to set arbitrary data on script context for later reuse.
path
(string) - path of the value to setvalue
(any) - variable to storeNote: Use get to return the value later
The function get allows you to get arbitrary data from script context.
path
(string) - path of the value to retrieveNote: Use set to set this values in first place
Returns an array with each provided argument as an item
values
(any) - items of the array separated by commaDumps to console a message (or object)
type
('log'|'info'|'warn'|'error') - value to pretty print in the logsvalue
(any) - value to pretty print in the logsParses a JSON string and returns an object
value
(string) - string value to parse, must be a valid JSON stringTurns an object into a valid JSON string
value
(any) - object to serialize as a JSON stringEncodes a utf-8 text string into hexadecimal string
value
(string) - utf-8 text stringDecodes an hexadecimal string into the former utf-8 text string
value
(string) - hexadecimal encoded stringEncodes a utf-8 text string into base64 string
value
(string) - utf-8 text stringDecodes a base64 string into a utf-8 text string
value
(string) - base64 encoded stringAutomatically splits a utf-8 text string into a list of 64 bytes long strings if value
length is bigger than 64 bytes
Otherwise, it returns the original string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string) - string to be adapted for metadata usageIf a list of strings ( produced by strToMetadataStr
) is provided, joins it into a single string
If a string is provided, returns the string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string | [string]) - string or list of strings produced by strToMetadataStr
Truncates a string from start to prefixLength
characters, attaches a separator
string, and finally adds the last suffixLength
characters of the string
Usefull for truncating long texts, or hashes and addresses when you want to keep the beginning and the end of them and discard the middle.
addr1qzk45...gkwg (prefixLength
=10 ,suffixLength
=4, separator
="...")
value
(string) - string to be truncatedprefixLength
(number) - initial number of characters to be included in resulting stringsuffixLength
(number) - final number of charactes to be included in resulting stringseparator
(string) - string to be included between prefix and suffix parts of the stringReplaces all match
ocurrencies inside str
by value
str
(string) - string where to search and replacematch
(string) - exact string that will be searched for and replaced by value
value
(string) - value to replaced withPauses the execution for interval
milliseconds
value
(any) - object to serialize as a JSON stringGet address
information as an object with many usefull properties
address
(string) - a valid cardano addressCalculates SHA512 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA256 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA1 hash of data
string
data
(string) - arbitrary string to be hashedCalculates MD5 hash of data
string
data
(string) - arbitrary string to be hashedGenerates a random RFC4122 UUID v4
Adds extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the sum as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - addends separated by comma (BigNum)Substracts extraArgs
subtrahends numbers from an initial value
minuend. Fails on underflow.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the substraction as a BigNum string.
value
(string | number) - minuend, initial value (BigNum)extraArgs
([string | number]) - subtrahends separated by comma (BigNum)Multiplies extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the multiplication as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - Multipliers separated by comma (BigNum)Inline scripting language function definitions
The function set allows you to set arbitrary data on script context for later reuse.
path
(string) - path of the value to setvalue
(any) - variable to storeNote: Use get to return the value later
The function get allows you to get arbitrary data from script context.
path
(string) - path of the value to retrieveNote: Use set to set this values in first place
Returns an array with each provided argument as an item
values
(any) - items of the array separated by commaDumps to console a message (or object)
type
('log'|'info'|'warn'|'error') - value to pretty print in the logsvalue
(any) - value to pretty print in the logsParses a JSON string and returns an object
value
(string) - string value to parse, must be a valid JSON stringTurns an object into a valid JSON string
value
(any) - object to serialize as a JSON stringEncodes a utf-8 text string into hexadecimal string
value
(string) - utf-8 text stringDecodes an hexadecimal string into the former utf-8 text string
value
(string) - hexadecimal encoded stringEncodes a utf-8 text string into base64 string
value
(string) - utf-8 text stringDecodes a base64 string into a utf-8 text string
value
(string) - base64 encoded stringAutomatically splits a utf-8 text string into a list of 64 bytes long strings if value
length is bigger than 64 bytes
Otherwise, it returns the original string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string) - string to be adapted for metadata usageIf a list of strings ( produced by strToMetadataStr
) is provided, joins it into a single string
If a string is provided, returns the string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string | [string]) - string or list of strings produced by strToMetadataStr
Truncates a string from start to prefixLength
characters, attaches a separator
string, and finally adds the last suffixLength
characters of the string
Usefull for truncating long texts, or hashes and addresses when you want to keep the beginning and the end of them and discard the middle.
addr1qzk45...gkwg (prefixLength
=10 ,suffixLength
=4, separator
="...")
value
(string) - string to be truncatedprefixLength
(number) - initial number of characters to be included in resulting stringsuffixLength
(number) - final number of charactes to be included in resulting stringseparator
(string) - string to be included between prefix and suffix parts of the stringReplaces all match
ocurrencies inside str
by value
str
(string) - string where to search and replacematch
(string) - exact string that will be searched for and replaced by value
value
(string) - value to replaced withPauses the execution for interval
milliseconds
value
(any) - object to serialize as a JSON stringGet address
information as an object with many usefull properties
address
(string) - a valid cardano addressCalculates SHA512 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA256 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA1 hash of data
string
data
(string) - arbitrary string to be hashedCalculates MD5 hash of data
string
data
(string) - arbitrary string to be hashedGenerates a random RFC4122 UUID v4
Adds extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the sum as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - addends separated by comma (BigNum)Substracts extraArgs
subtrahends numbers from an initial value
minuend. Fails on underflow.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the substraction as a BigNum string.
value
(string | number) - minuend, initial value (BigNum)extraArgs
([string | number]) - subtrahends separated by comma (BigNum)Multiplies extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the multiplication as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - Multipliers separated by comma (BigNum)Value must be greater or equal to 0
Inline scripting language function definitions
The function set allows you to set arbitrary data on script context for later reuse.
path
(string) - path of the value to setvalue
(any) - variable to storeNote: Use get to return the value later
The function get allows you to get arbitrary data from script context.
path
(string) - path of the value to retrieveNote: Use set to set this values in first place
Returns an array with each provided argument as an item
values
(any) - items of the array separated by commaDumps to console a message (or object)
type
('log'|'info'|'warn'|'error') - value to pretty print in the logsvalue
(any) - value to pretty print in the logsParses a JSON string and returns an object
value
(string) - string value to parse, must be a valid JSON stringTurns an object into a valid JSON string
value
(any) - object to serialize as a JSON stringEncodes a utf-8 text string into hexadecimal string
value
(string) - utf-8 text stringDecodes an hexadecimal string into the former utf-8 text string
value
(string) - hexadecimal encoded stringEncodes a utf-8 text string into base64 string
value
(string) - utf-8 text stringDecodes a base64 string into a utf-8 text string
value
(string) - base64 encoded stringAutomatically splits a utf-8 text string into a list of 64 bytes long strings if value
length is bigger than 64 bytes
Otherwise, it returns the original string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string) - string to be adapted for metadata usageIf a list of strings ( produced by strToMetadataStr
) is provided, joins it into a single string
If a string is provided, returns the string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string | [string]) - string or list of strings produced by strToMetadataStr
Truncates a string from start to prefixLength
characters, attaches a separator
string, and finally adds the last suffixLength
characters of the string
Usefull for truncating long texts, or hashes and addresses when you want to keep the beginning and the end of them and discard the middle.
addr1qzk45...gkwg (prefixLength
=10 ,suffixLength
=4, separator
="...")
value
(string) - string to be truncatedprefixLength
(number) - initial number of characters to be included in resulting stringsuffixLength
(number) - final number of charactes to be included in resulting stringseparator
(string) - string to be included between prefix and suffix parts of the stringReplaces all match
ocurrencies inside str
by value
str
(string) - string where to search and replacematch
(string) - exact string that will be searched for and replaced by value
value
(string) - value to replaced withPauses the execution for interval
milliseconds
value
(any) - object to serialize as a JSON stringGet address
information as an object with many usefull properties
address
(string) - a valid cardano addressCalculates SHA512 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA256 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA1 hash of data
string
data
(string) - arbitrary string to be hashedCalculates MD5 hash of data
string
data
(string) - arbitrary string to be hashedGenerates a random RFC4122 UUID v4
Adds extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the sum as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - addends separated by comma (BigNum)Substracts extraArgs
subtrahends numbers from an initial value
minuend. Fails on underflow.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the substraction as a BigNum string.
value
(string | number) - minuend, initial value (BigNum)extraArgs
([string | number]) - subtrahends separated by comma (BigNum)Multiplies extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the multiplication as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - Multipliers separated by comma (BigNum)Value must be greater or equal to 0
Inline scripting language function definitions
The function set allows you to set arbitrary data on script context for later reuse.
path
(string) - path of the value to setvalue
(any) - variable to storeNote: Use get to return the value later
The function get allows you to get arbitrary data from script context.
path
(string) - path of the value to retrieveNote: Use set to set this values in first place
Returns an array with each provided argument as an item
values
(any) - items of the array separated by commaDumps to console a message (or object)
type
('log'|'info'|'warn'|'error') - value to pretty print in the logsvalue
(any) - value to pretty print in the logsParses a JSON string and returns an object
value
(string) - string value to parse, must be a valid JSON stringTurns an object into a valid JSON string
value
(any) - object to serialize as a JSON stringEncodes a utf-8 text string into hexadecimal string
value
(string) - utf-8 text stringDecodes an hexadecimal string into the former utf-8 text string
value
(string) - hexadecimal encoded stringEncodes a utf-8 text string into base64 string
value
(string) - utf-8 text stringDecodes a base64 string into a utf-8 text string
value
(string) - base64 encoded stringAutomatically splits a utf-8 text string into a list of 64 bytes long strings if value
length is bigger than 64 bytes
Otherwise, it returns the original string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string) - string to be adapted for metadata usageIf a list of strings ( produced by strToMetadataStr
) is provided, joins it into a single string
If a string is provided, returns the string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string | [string]) - string or list of strings produced by strToMetadataStr
Truncates a string from start to prefixLength
characters, attaches a separator
string, and finally adds the last suffixLength
characters of the string
Usefull for truncating long texts, or hashes and addresses when you want to keep the beginning and the end of them and discard the middle.
addr1qzk45...gkwg (prefixLength
=10 ,suffixLength
=4, separator
="...")
value
(string) - string to be truncatedprefixLength
(number) - initial number of characters to be included in resulting stringsuffixLength
(number) - final number of charactes to be included in resulting stringseparator
(string) - string to be included between prefix and suffix parts of the stringReplaces all match
ocurrencies inside str
by value
str
(string) - string where to search and replacematch
(string) - exact string that will be searched for and replaced by value
value
(string) - value to replaced withPauses the execution for interval
milliseconds
value
(any) - object to serialize as a JSON stringGet address
information as an object with many usefull properties
address
(string) - a valid cardano addressCalculates SHA512 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA256 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA1 hash of data
string
data
(string) - arbitrary string to be hashedCalculates MD5 hash of data
string
data
(string) - arbitrary string to be hashedGenerates a random RFC4122 UUID v4
Adds extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the sum as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - addends separated by comma (BigNum)Substracts extraArgs
subtrahends numbers from an initial value
minuend. Fails on underflow.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the substraction as a BigNum string.
value
(string | number) - minuend, initial value (BigNum)extraArgs
([string | number]) - subtrahends separated by comma (BigNum)Multiplies extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the multiplication as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - Multipliers separated by comma (BigNum)Public Key Hash (hexadecimal)
Inline scripting language function definitions
The function set allows you to set arbitrary data on script context for later reuse.
path
(string) - path of the value to setvalue
(any) - variable to storeNote: Use get to return the value later
The function get allows you to get arbitrary data from script context.
path
(string) - path of the value to retrieveNote: Use set to set this values in first place
Returns an array with each provided argument as an item
values
(any) - items of the array separated by commaDumps to console a message (or object)
type
('log'|'info'|'warn'|'error') - value to pretty print in the logsvalue
(any) - value to pretty print in the logsParses a JSON string and returns an object
value
(string) - string value to parse, must be a valid JSON stringTurns an object into a valid JSON string
value
(any) - object to serialize as a JSON stringEncodes a utf-8 text string into hexadecimal string
value
(string) - utf-8 text stringDecodes an hexadecimal string into the former utf-8 text string
value
(string) - hexadecimal encoded stringEncodes a utf-8 text string into base64 string
value
(string) - utf-8 text stringDecodes a base64 string into a utf-8 text string
value
(string) - base64 encoded stringAutomatically splits a utf-8 text string into a list of 64 bytes long strings if value
length is bigger than 64 bytes
Otherwise, it returns the original string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string) - string to be adapted for metadata usageIf a list of strings ( produced by strToMetadataStr
) is provided, joins it into a single string
If a string is provided, returns the string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string | [string]) - string or list of strings produced by strToMetadataStr
Truncates a string from start to prefixLength
characters, attaches a separator
string, and finally adds the last suffixLength
characters of the string
Usefull for truncating long texts, or hashes and addresses when you want to keep the beginning and the end of them and discard the middle.
addr1qzk45...gkwg (prefixLength
=10 ,suffixLength
=4, separator
="...")
value
(string) - string to be truncatedprefixLength
(number) - initial number of characters to be included in resulting stringsuffixLength
(number) - final number of charactes to be included in resulting stringseparator
(string) - string to be included between prefix and suffix parts of the stringReplaces all match
ocurrencies inside str
by value
str
(string) - string where to search and replacematch
(string) - exact string that will be searched for and replaced by value
value
(string) - value to replaced withPauses the execution for interval
milliseconds
value
(any) - object to serialize as a JSON stringGet address
information as an object with many usefull properties
address
(string) - a valid cardano addressCalculates SHA512 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA256 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA1 hash of data
string
data
(string) - arbitrary string to be hashedCalculates MD5 hash of data
string
data
(string) - arbitrary string to be hashedGenerates a random RFC4122 UUID v4
Adds extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the sum as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - addends separated by comma (BigNum)Substracts extraArgs
subtrahends numbers from an initial value
minuend. Fails on underflow.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the substraction as a BigNum string.
value
(string | number) - minuend, initial value (BigNum)extraArgs
([string | number]) - subtrahends separated by comma (BigNum)Multiplies extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the multiplication as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - Multipliers separated by comma (BigNum)Public Key (hexadecimal)
Inline scripting language function definitions
The function set allows you to set arbitrary data on script context for later reuse.
path
(string) - path of the value to setvalue
(any) - variable to storeNote: Use get to return the value later
The function get allows you to get arbitrary data from script context.
path
(string) - path of the value to retrieveNote: Use set to set this values in first place
Returns an array with each provided argument as an item
values
(any) - items of the array separated by commaDumps to console a message (or object)
type
('log'|'info'|'warn'|'error') - value to pretty print in the logsvalue
(any) - value to pretty print in the logsParses a JSON string and returns an object
value
(string) - string value to parse, must be a valid JSON stringTurns an object into a valid JSON string
value
(any) - object to serialize as a JSON stringEncodes a utf-8 text string into hexadecimal string
value
(string) - utf-8 text stringDecodes an hexadecimal string into the former utf-8 text string
value
(string) - hexadecimal encoded stringEncodes a utf-8 text string into base64 string
value
(string) - utf-8 text stringDecodes a base64 string into a utf-8 text string
value
(string) - base64 encoded stringAutomatically splits a utf-8 text string into a list of 64 bytes long strings if value
length is bigger than 64 bytes
Otherwise, it returns the original string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string) - string to be adapted for metadata usageIf a list of strings ( produced by strToMetadataStr
) is provided, joins it into a single string
If a string is provided, returns the string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string | [string]) - string or list of strings produced by strToMetadataStr
Truncates a string from start to prefixLength
characters, attaches a separator
string, and finally adds the last suffixLength
characters of the string
Usefull for truncating long texts, or hashes and addresses when you want to keep the beginning and the end of them and discard the middle.
addr1qzk45...gkwg (prefixLength
=10 ,suffixLength
=4, separator
="...")
value
(string) - string to be truncatedprefixLength
(number) - initial number of characters to be included in resulting stringsuffixLength
(number) - final number of charactes to be included in resulting stringseparator
(string) - string to be included between prefix and suffix parts of the stringReplaces all match
ocurrencies inside str
by value
str
(string) - string where to search and replacematch
(string) - exact string that will be searched for and replaced by value
value
(string) - value to replaced withPauses the execution for interval
milliseconds
value
(any) - object to serialize as a JSON stringGet address
information as an object with many usefull properties
address
(string) - a valid cardano addressCalculates SHA512 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA256 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA1 hash of data
string
data
(string) - arbitrary string to be hashedCalculates MD5 hash of data
string
data
(string) - arbitrary string to be hashedGenerates a random RFC4122 UUID v4
Adds extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the sum as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - addends separated by comma (BigNum)Substracts extraArgs
subtrahends numbers from an initial value
minuend. Fails on underflow.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the substraction as a BigNum string.
value
(string | number) - minuend, initial value (BigNum)extraArgs
([string | number]) - subtrahends separated by comma (BigNum)Multiplies extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the multiplication as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - Multipliers separated by comma (BigNum)Inline scripting language function definitions
The function set allows you to set arbitrary data on script context for later reuse.
path
(string) - path of the value to setvalue
(any) - variable to storeNote: Use get to return the value later
The function get allows you to get arbitrary data from script context.
path
(string) - path of the value to retrieveNote: Use set to set this values in first place
Returns an array with each provided argument as an item
values
(any) - items of the array separated by commaDumps to console a message (or object)
type
('log'|'info'|'warn'|'error') - value to pretty print in the logsvalue
(any) - value to pretty print in the logsParses a JSON string and returns an object
value
(string) - string value to parse, must be a valid JSON stringTurns an object into a valid JSON string
value
(any) - object to serialize as a JSON stringEncodes a utf-8 text string into hexadecimal string
value
(string) - utf-8 text stringDecodes an hexadecimal string into the former utf-8 text string
value
(string) - hexadecimal encoded stringEncodes a utf-8 text string into base64 string
value
(string) - utf-8 text stringDecodes a base64 string into a utf-8 text string
value
(string) - base64 encoded stringAutomatically splits a utf-8 text string into a list of 64 bytes long strings if value
length is bigger than 64 bytes
Otherwise, it returns the original string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string) - string to be adapted for metadata usageIf a list of strings ( produced by strToMetadataStr
) is provided, joins it into a single string
If a string is provided, returns the string
Strings in transaction's auxiliary data (metadata) can't be longer than 64 bytes.
Many standards use a list of short strings as a workaround.
You can use strToMetadataStr
and metadataStrToStr
to work with metadata strings.
value
(string | [string]) - string or list of strings produced by strToMetadataStr
Truncates a string from start to prefixLength
characters, attaches a separator
string, and finally adds the last suffixLength
characters of the string
Usefull for truncating long texts, or hashes and addresses when you want to keep the beginning and the end of them and discard the middle.
addr1qzk45...gkwg (prefixLength
=10 ,suffixLength
=4, separator
="...")
value
(string) - string to be truncatedprefixLength
(number) - initial number of characters to be included in resulting stringsuffixLength
(number) - final number of charactes to be included in resulting stringseparator
(string) - string to be included between prefix and suffix parts of the stringReplaces all match
ocurrencies inside str
by value
str
(string) - string where to search and replacematch
(string) - exact string that will be searched for and replaced by value
value
(string) - value to replaced withPauses the execution for interval
milliseconds
value
(any) - object to serialize as a JSON stringGet address
information as an object with many usefull properties
address
(string) - a valid cardano addressCalculates SHA512 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA256 hash of data
string
data
(string) - arbitrary string to be hashedCalculates SHA1 hash of data
string
data
(string) - arbitrary string to be hashedCalculates MD5 hash of data
string
data
(string) - arbitrary string to be hashedGenerates a random RFC4122 UUID v4
Adds extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the sum as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - addends separated by comma (BigNum)Substracts extraArgs
subtrahends numbers from an initial value
minuend. Fails on underflow.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the substraction as a BigNum string.
value
(string | number) - minuend, initial value (BigNum)extraArgs
([string | number]) - subtrahends separated by comma (BigNum)Multiplies extraArgs
numbers to an initial value
.
BigNum are big positive integers provided as strings.
This function also convert numbers on arguments into BigNum string
Returns the multiplication as a BigNum string.
value
(string | number) - initial value (BigNum)extraArgs
([string | number]) - Multipliers separated by comma (BigNum)