pub trait LocationToAccountApi<Block: BlockT, AccountId>: Core<Block>where
AccountId: Decode,{
// Provided method
fn convert_location(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
location: VersionedLocation,
) -> Result<Result<AccountId, Error>, ApiError> { ... }
}
Expand description
API for useful conversions between XCM Location
and AccountId
.
Provided Methods§
sourcefn convert_location(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
location: VersionedLocation,
) -> Result<Result<AccountId, Error>, ApiError>
fn convert_location( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, location: VersionedLocation, ) -> Result<Result<AccountId, Error>, ApiError>
Converts Location
to AccountId
.