Retrieves the basic fee for a given domainId and asset.
Example
// Assuming the api instance is already connected and ready to use constdomainId = 1; constxcmMultiAssetId = {...} // XCM MultiAsset ID of the asset getBasicFee(api, domainId, xcmMultiAssetId) .then((basicFee) => { if (basicFee.isSome()) { console.log('Basic fee:', basicFee.unwrap().toString()); } else { console.log('Basic fee not found'); } }) .catch((error) => { console.error('Error fetching basic fee:', error); });
Returns
A promise that resolves to an Option containing the basic fee as u128, or None if not found.
Retrieves the basic fee for a given domainId and asset.
Example
Returns
A promise that resolves to an Option containing the basic fee as u128, or None if not found.