The unofficial Python client for the Pinksale.
Project description
pinksale-python
The unofficial Python client for Pinksale.
Functionalty
- A Python wrapper for any presale contract.
- Easy access to the necessary data about the presale.
- Supports BSC and ETH for now.
Installation
pip install pinksale-python
Supports
-
Binance Smart Chain
- Supports ETH (BNB)
-
Ethereum
- Supports ETH (ETH)
Donation
You can support the project by donating :)
for ETH/BSC/ARBI/AVAX/POLYGON chains: 0x09a27f3647aD2Fd081e515F9D2d785292Fba38C1
Usage/Examples
Write functions
To make a contribution, you only need to enter the amount in ether:
from pinksale.pinksale import Pinksale
client = Pinksale("0x0A8527e4A1e3f8b56508e26b8Dc332e067916108", "your_private_key", provider="https://bsc-dataseed1.ninicoin.io")
tx_receipt = client.contribute(1) # Contribute with 1 BNB
Emergency withdraw:
client.emergency_withdraw()
You can claim your tokens when pool finalizes:
client.claim()
View Functions
A simple call example for view functions. Contract address is your presale address.
from pinksale.pinksale import Pinksale
client = Pinksale("0x0A8527e4A1e3f8b56508e26b8Dc332e067916108", provider="https://bsc-dataseed1.ninicoin.io")
contributors = client.get_all_contributors()
>> ['0x0080b399E21475a7ca6d6cf9081C983BE51Bdead', '0xA8617881a6914b59000f279e4425F0E8E84BeBa5', ...]
You can get Pool Details: Total raised, Details (image, links, etc.), KYC
client.get_pool_details()
>> {'total_raised': 120222334187259780175, 'details': {'a': 'https://photos.pinksale.finance/file/pinksale-logo-upload/1696947582061-36b70f470f30f10fb3055f7c2a32ca88.jpg', 'b': 'https://zhaodavinci.com/', 'd': 'https://twitter.com/Zhao_DaVinci', 'e': 'https://github.com/AnalytixAudit/Solidity/blob/main/20231009_AnalytixAudit_ZhaoDaVinc_VINCI_Audit.pdf', 'f': 'https://t.me/ZhaoDaVinci', 'h': "♠️ Hottest Meta of the Month ♠️\nWhy did CZ tokenize the Mona Lisa? To blend Da Vinci's genius with crypto magic, creating a masterpiece of digital value ♠️ Top Trending ♠️ Audited Contract ♠️ Top Tier Listings ♠️ CMC & CG Fast track ♠️ Top Incubator ♠️ Based Team ♠️ Buy Back & Burn ♠️ 100x Target ♠️", 's': 'https://youtu.be/HYnUI5dDyeo'}, 'kyc': {'a': '', 'b': 'https://app.analytixaudit.com/zhao-da-vinc', 'c': '', 'd': '', 'e': '', 'f': ''}}
Also pool settings: "token", "currency", "start_time", "end_time", "soft_cap", "total_selling_tokens", "max_contribution"
client.get_pool_settings()
Get current rate returns amount of tokens for 1 bnb.
client.get_current_rate()
Get all contributor addresses:
client.get_all_contributors()
Get contribution amount of an address:
address = ""
client.get_contribution_of(address)
Changelog
0.1.0
- Support for BSC (BNB) and ETH (ETH)
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
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 pinksale-python-0.1.5.tar.gz.
File metadata
- Download URL: pinksale-python-0.1.5.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9dda25e2686c9e1d2d0887d468624c46d06f501f5ad5a0900ba50f146a9cba8a
|
|
| MD5 |
32dc0af5a238f29ba2fba80bf208245b
|
|
| BLAKE2b-256 |
afe73b96fc05808628881d326b4c41828fbc5a498a83c0380335ab3789cbe336
|
File details
Details for the file pinksale_python-0.1.5-py3-none-any.whl.
File metadata
- Download URL: pinksale_python-0.1.5-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
062fd2adc237d567745d51faafdc9521b3aaded2718dbf279fbcef34b9adfa2f
|
|
| MD5 |
7624ed2ec9ecbe5d9a8d3bed94725245
|
|
| BLAKE2b-256 |
655ad042823c034950d285c197ca9cbe08dd829c888220dba49a3d44afbf260f
|