pub trait NftsApi<Block: BlockT, AccountId, CollectionId, ItemId>: Core<Block>where
AccountId: Encode + Decode,
CollectionId: Encode,
ItemId: Encode,
{
// Provided methods
fn owner(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
collection: CollectionId,
item: ItemId,
) -> Result<Option<AccountId>, ApiError> { ... }
fn collection_owner(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
collection: CollectionId,
) -> Result<Option<AccountId>, ApiError> { ... }
fn attribute(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
collection: CollectionId,
item: ItemId,
key: Vec<u8>,
) -> Result<Option<Vec<u8>>, ApiError> { ... }
fn custom_attribute(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
account: AccountId,
collection: CollectionId,
item: ItemId,
key: Vec<u8>,
) -> Result<Option<Vec<u8>>, ApiError> { ... }
fn system_attribute(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
collection: CollectionId,
item: Option<ItemId>,
key: Vec<u8>,
) -> Result<Option<Vec<u8>>, ApiError> { ... }
fn collection_attribute(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
collection: CollectionId,
key: Vec<u8>,
) -> Result<Option<Vec<u8>>, ApiError> { ... }
}
The identifier of the runtime api.
The version of the runtime api.