FUNCTION
resolve_fee_assets
function resolve_fee_assets(config: list<fee_asset>): map<byte_array, big_integer>Parses a list of fee_assets, and returns a map of all the ones that could be mapped to
actual assets. This does not throw if an asset has not yet been registered, allowing
assets to be added to the config a long time before actually registering them.
This function does not discern when a fee_asset entry is invalid. This is because it will
typically be called after the fee_asset has been parsed and values have been fixed when
possible. If improper input is provided, this function will behave this way:
- if
idis present, other values will be ignored - if
idis missing,nameandblockchain_ridmust both be present - it will throw otherwise
Parameters
- config — the list of
fee_assets to parse.
Returns
a map of asset ID to fee amount to pay for that asset
See Also
- [
fee_asset] — for more information on when it is invalid.
© 2024 Chromia