Unified SDK for Meme Platform with triple-lock security
Project description
MoonfunSDK - Python
Unified SDK for Meme Platform with triple-lock security.
Installation
pip install -r requirements.txt
Or install from source:
python setup.py install
Quick Start
from moonfun_sdk import MoonfunSDK
import os
# Initialize SDK
sdk = MoonfunSDK(
private_key=os.getenv('PRIVATE_KEY'),
image_api_url="https://your-api-url.com"
)
# Create Meme token
result = sdk.create_meme(prompt="A funny cat")
print(f"Token created: {result['token_address']}")
# Buy tokens
sdk.buy_token(token_address="0x...", bnb_amount=0.1)
# Sell tokens
balance = sdk.get_token_balance("0x...")
sdk.sell_token(token_address="0x...", amount=balance)
Features
- One-Click Meme Creation:
create_meme()handles entire flow - Triple-Lock Security: Signature + Timestamp + Balance verification
- Token Trading: Buy and sell tokens with slippage protection
- Comprehensive Error Handling: Custom exceptions for all error cases
- Type Hints: Full type annotations for better IDE support
Examples
See examples/ directory:
example_create_meme.py- Create a Meme tokenexample_trading.py- Buy and sell tokens
Documentation
License
MIT
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
moonfun_sdk-1.0.6.tar.gz
(13.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file moonfun_sdk-1.0.6.tar.gz.
File metadata
- Download URL: moonfun_sdk-1.0.6.tar.gz
- Upload date:
- Size: 13.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b1a39c71955a755d745d526bb761a84ebb05262acc2e7e06a13398baf14f5455
|
|
| MD5 |
05b8fa1925a4db58091db6772a876c24
|
|
| BLAKE2b-256 |
df3c737f22c57cf98937e079e6467ff69e06d20fe190d19308891b1afdcc553d
|
File details
Details for the file moonfun_sdk-1.0.6-py3-none-any.whl.
File metadata
- Download URL: moonfun_sdk-1.0.6-py3-none-any.whl
- Upload date:
- Size: 16.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67ea0a491f7004e9fc3fb0cfbaeb8a4c40b9c9ccb09847803454d32bd505333e
|
|
| MD5 |
5689fc35c95d099d42f080ac44b7a1b6
|
|
| BLAKE2b-256 |
aa9b933a4659cc8f9221ee6998bb816172a66fedae8791e9e1f1cfb5a1134886
|