Trait assets_common::runtime_api::FungiblesApi
source · pub trait FungiblesApi<Block: BlockT, AccountId>: Core<Block>where
AccountId: Codec,{
// Provided methods
fn query_account_balances_before_version_2(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
account: AccountId,
) -> Result<Result<Vec<Asset>, FungiblesAccessError>, ApiError> { ... }
fn query_account_balances(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
account: AccountId,
) -> Result<Result<VersionedAssets, FungiblesAccessError>, ApiError> { ... }
}
Expand description
The API for querying account’s balances from runtime.
Provided Methods§
sourcefn query_account_balances_before_version_2(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
account: AccountId,
) -> Result<Result<Vec<Asset>, FungiblesAccessError>, ApiError>
👎Deprecated
fn query_account_balances_before_version_2( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, account: AccountId, ) -> Result<Result<Vec<Asset>, FungiblesAccessError>, ApiError>
Returns the list of all [Asset
] that an AccountId
has.
sourcefn query_account_balances(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
account: AccountId,
) -> Result<Result<VersionedAssets, FungiblesAccessError>, ApiError>
fn query_account_balances( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, account: AccountId, ) -> Result<Result<VersionedAssets, FungiblesAccessError>, ApiError>
Returns the list of all [Asset
] that an AccountId
has.