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§

source

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.

Trait Implementations§

source§

impl<Block: BlockT, AccountId, AssetBalance, AssetId> RuntimeApiInfo for dyn AssetsApi<Block, AccountId, AssetBalance, AssetId>

source§

const ID: [u8; 8] = _

The identifier of the runtime api.
source§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§

source§

impl<__SrApiBlock__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SrApiBlock__> + 'static> AssetsApi<__SrApiBlock__, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u128, u32> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>