resolve_fee_assets

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 id is present, other values will be ignored

  • if id is missing, name and blockchain_rid must both be present - it will throw otherwise

Return

a map of asset ID to fee amount to pay for that asset

Parameters

config

the list of fee_assets to parse.

See also

`fee_asset`

for more information on when it is invalid.