Trait kitchensink_runtime::assets_api::AssetsApi
source · 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 AssetId
s and corresponding balance that an AccountId
has.