referrerpolicy=no-referrer-when-downgrade

Trait 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§