Skip to main content

Python SDK for interacting with the Magiceden Official APIs at https://api.magiceden.dev/

Project description

magiceden_sdk

Python SDK for interacting with the Magiceden Official APIs - https://api.magiceden.dev/.

Installation

Installing Using PIP (Recommended)

pip install magiceden_solana

Installing from Source

  1. Clone the repository: git clone https://github.com/vmpyre/magiceden_solana.git

  2. Change into the project directory: cd magiceden_solana

  3. Install the dependencies: pip install -r requirements.txt

Usage

First, import the SDK's classes:

from magiceden_solana import Tokens, Wallets, Collections, Launchpad, Instructions

Then, create instances of the classes to interact with the corresponding API endpoints:

tokens_api = Tokens()

For example, you can use the get_token_metadata() method of the Tokens class to retrieve metadata of a token by its mint address:

tokens_api.get_token_metadata("127icS59959eL776pCWKTUAoWqk8voexAzAs9wiAHfEx")

The SDK also provides additional functionality for interacting with the Wallets, Collections and Launchpad endpoints of the Magiceden API. You can find more details in the documentation.

Contribution

Feel free to open issues, pull requests and submit feedback. We appreciate your help!

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgements

Thanks to the Magiceden team for providing the API Key.

Disclaimer

This SDK is not affiliated with, endorsed, or sponsored by magiceden. It was created by vmpyre.sol#0001 (Discord) for personal use and is now being made open-source for others to use and contribute to. The developer of this SDK is not responsible for any errors or issues that may occur when using this SDK. Use at your own risk.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

magiceden_solana-0.0.2.tar.gz (5.7 kB view hashes)

Uploaded Source

Built Distribution

magiceden_solana-0.0.2-py3-none-any.whl (7.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page