referrerpolicy=no-referrer-when-downgrade

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§

source

fn query_account_balances_before_version_2( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, account: AccountId, ) -> Result<Result<Vec<Asset>, FungiblesAccessError>, ApiError>

👎Deprecated

Returns the list of all [Asset] that an AccountId has.

source

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.

Trait Implementations§

source§

impl<Block: BlockT, AccountId> RuntimeApiInfo for dyn FungiblesApi<Block, AccountId>

source§

const ID: [u8; 8] = _

The identifier of the runtime api.
source§

const VERSION: u32 = 2u32

The version of the runtime api.

Implementors§