pip install git+https://github.com/ivannnnnnnnnn/solapi.git
- Import api class
- Create class instance
- Use methods of class
from solapi.magic_eden.site_api.collection import MagicEdenCollectionApi
magic_eden_api = MagicEdenCollectionApi()
collections = magic_eden_api.get_collection_list()
from solapi.magic_eden.site_api.utils.types import MECollectionInfo
from typings import List
collections: List[MECollectionInfo] = []
MagicEdeneCollectionApi: solapi.magic_eden.site_api.collection.MagicEdeneCollectionApi
TypeAnnotations: solapi.magic_eden.site_api.utils.types
MagicEdenCollectionApi:
get_collection_list_dirty(): List[Dict]
get_collection_list(): List[MECollectionInfo]
get_collection_list_stats_dirty(): List[Dict]
get_collection_list_stats(): List[MECollectionMetrics]
get_collection_info_dirty(symbol:str): Dict
get_collection_info(symbol:str): MECollectionInfo
get_collection_stats_dirty(symbol:str): Dict
get_collection_stats(symbol:str): MECollectionStats
SolanartCollectionApi: solapi.solanart.api.collection.SolanartCollectionApi
TypeAnnotations: solapi.solanart.utils.types
SolanartCollectionApi:
get_collection_list_dirty(): List[Dict]
get_collection_list(): List[SACollectionInfo]
get_collection_list_stats_dirty(): List[Dict]
get_collection_list_stats(): List[SACollectionStats]
from solapi.magic_eden.official_api import (
MagicEdenTokensApi,
MagicEdenWalletsApi,
MagicEdenCollectionsApi,
MagicEdenLaunchpadApi
)
Api classes have methods corresponded to endpoints from official docs
from solapi.magic_eden.official_api.utils.types import *
wallet_api = MagicEdenWalletsApi(environment = 'DEVNENT') # by default value = 'MAINNET'