Fragment Donor SDKSource

Version 0.1.3 · Registry installation commands use exact versions.

Read TON and USDT wallet balance

Wallet balance API returns decimal strings for TON and USDT. Header mapping and precision-safe integration examples.

Purchase requests transmit your wallet mnemonic and Fragment session/cookie to the API operator.

GET /wallet-balance/ needs Mnemonic, but not Cookie. Wallet-Version, Wallet-Address, and TonConsole Api-Key are optional. The inspected backend also accepts POST; SDK convenience methods use GET.

Keep ton and usdt_ton as strings or arbitrary-precision decimal values. Converting a balance such as 9007199254740993.01 to a JavaScript Number loses precision. This read operation still discloses the submitted mnemonic to the API operator.

Example

curl https://fragment.donor.uz/wallet-balance/ \
  -H "Mnemonic: $WALLET_MNEMONIC" -H "Wallet-Version: auto"

Response

{"ok":true,"address":"SYNTHETIC_WALLET_ADDRESS","ton":"2.500000001","usdt_ton":"9007199254740993.01"}

Continue reading

Handle Telegram Stars API 429, Retry-After, and flood wait · Protect wallet credentials in API integrations · Fragment Donor API and SDK FAQ

OpenAPI 3.0 · Postman collection