MagicEden APIs Python 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
-
Clone the repository: git clone https://github.com/vmpyre/magiceden_solana.git
-
Change into the project directory: cd magiceden_solana
-
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 (in this case the Tokens class):
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("TOKEN ADDRESS HERE")
The SDK also provides additional functionality for interacting with the Wallets, Collections, Launchpad and Instructions endpoints of the Magiceden API. You can find details about the class methods below
Class Methods
See the Official Magiceden documentation for function arguments here: https://api.magiceden.dev/
Tokens
- get_token_metadata()
- get_token_listings()
- get_received_offers()
- get_token_activities()
Wallets
- get_tokens_owned_by_wallet()
- get_wallet_activities()
- get_offers_made_by_wallet()
- get_offers_received_by_wallet()
- get_escrow_balance_for_wallet()
- get_wallet_by_address()
Collections
- get_collections()
- get_collection_listings()
- get_collection_activities()
- get_collection_stats()
Launchpad
- get_launchpad_collections()
Instructions
- buy()
- buy_now()
- buy_cancel()
- buy_change_price()
- sell()
- sell_now()
- sell_cancel()
- sell_change_price()
- deposit()
- withdraw()
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.
Metadata
Release files for magiceden-solana 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| magiceden_solana-1.0.1.tar.gz | 6.7 kB | Without provenance | Details for magiceden_solana-1.0.1.tar.gz |
Release files / magiceden_solana-1.0.1.tar.gz
| Download URL | magiceden_solana-1.0.1.tar.gz |
|---|---|
| Size | 6.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
07b6d8f32f8b35d009bda613f7e953a7bef58e0cac43fd4a3a88c172abe8e323
|
|
BLAKE2b-256 checksum How to use checksums |
e00e58b03975d7c38fe891c0a5f462718daa9d5280ed77ccc49f4d45cdcf51f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|
Security for magiceden-solana 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.