pub trait AssetsApi<Block: BlockT, AccountId, AssetBalance, AssetId>: Core<Block>where
AccountId: Codec,
AssetBalance: Codec,
AssetId: Codec,{
// Provided method
fn account_balances(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
account: AccountId,
) -> Result<Vec<(AssetId, AssetBalance)>, ApiError> { ... }
}Provided Methods§
Sourcefn account_balances(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
account: AccountId,
) -> Result<Vec<(AssetId, AssetBalance)>, ApiError>
fn account_balances( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, account: AccountId, ) -> Result<Vec<(AssetId, AssetBalance)>, ApiError>
Returns the list of AssetIds and corresponding balance that an AccountId has.