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§

source

fn convert_location( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, location: VersionedLocation ) -> Result<Result<AccountId, Error>, ApiError>

Converts Location to AccountId.

Trait Implementations§

source§

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

source§

const ID: [u8; 8] = _

The identifier of the runtime api.
source§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§