mirror of
https://github.com/bohd4nx/FragmentAPI.git
synced 2026-07-25 06:14:29 +00:00
985 B
985 B
Quick Start
Use this minimal example to verify that your credentials, cookies, and wallet setup are correct.
import asyncio
from pyfragment import FragmentClient
async def main() -> None:
async with FragmentClient(
seed="word1 word2 ... word24",
api_key="YOUR_TONAPI_KEY",
cookies={
"stel_ssid": "...",
"stel_dt": "...",
"stel_token": "...",
"stel_ton_token": "...",
},
) as client:
wallet = await client.get_wallet()
print(wallet)
asyncio.run(main())
If this script returns wallet data, your setup is healthy.
Then move to feature pages:
- Stars: Purchase, Giveaway
- Premium: Purchase, Giveaway
- Ads
- Anonymous Numbers
- Marketplace