FUNCTION
get_config
function get_config(config_gtv: gtv): list<rule>Retrieves all rules following which a transfer can be used to register a new account.
Throws "CONFIG ERROR" if the config cannot be parsed. Common cases are:
CURRENT_ACCOUNT_REFis used in exactly one of sender or recipienttimeout_daysis a negative number- sender or recipient have a list of values, alongside which
CURRENT_ACCOUNT_REForANY_REFare found - some fields contain unexpected values. For example:
- IDs cannot be parsed as hex
byte_arrays - asset limits are invalid
- IDs cannot be parsed as hex
Throws if any field is improperly formatted, in such a way that the values cannot be parsed.
Parameters
- config_gtv — the GTV-encoded configuration containing rules. Generally comes from the
chromia.ymlmoduleArgs field.
See Also
- [asset_limit] — for examples of invalid values
© 2024 Chromia