Releases: BofAI/sun-kit
Releases · BofAI/sun-kit
release v1.1.0
@bankofai/sun-kit v1.1.0
Highlights
This release switches the default Mainnet RPC endpoint to BankOfAI's own gateway, removing the hard dependency on TronGrid API Key for out-of-the-box usage, and adds automated security audit CI for pull requests.
Changes
Default Mainnet RPC Host — hptg.bankofai.io
The Mainnet default host has been changed from api.trongrid.io to hptg.bankofai.io.
Before (v1.0.0):
| Scenario | Mainnet Host |
|---|---|
With TRONGRID_API_KEY |
api.trongrid.io |
Without TRONGRID_API_KEY |
api.trongrid.io (rate-limited) |
After (v1.1.0):
| Scenario | Mainnet Host |
|---|---|
| Default (no config needed) | hptg.bankofai.io |
Custom RPC via rpcUrl |
User-specified URL |
This means:
- Zero-config ready — SDK works immediately without requiring a TronGrid API Key.
TRONGRID_API_KEYremains supported and will be sent as theTRON-PRO-API-KEYheader for users who configure a custom RPC pointing to TronGrid.- Nile (
nile.trongrid.io) and Shasta (api.shasta.trongrid.io) test networks are unchanged. - The
rpcUrl/rpcOverrideoption continues to take highest priority, allowing users to point to any custom endpoint.
Migration: No action required. Existing users with TRONGRID_API_KEY configured can continue to use it by setting rpcUrl: 'https://api.trongrid.io' in SunKitOptions if they prefer the TronGrid endpoint.
v1.0.0
v1.0.0 — First Release
`@bankofai/sun-kit` is a TypeScript SDK for interacting with SUN.IO on the TRON network.
Features
SunAPI — Read-only HTTP client
- Full typed client for the SUN.IO open API
- Query tokens, pools, pairs, farms, positions, price history, protocol stats, and more
SunKit — On-chain wallet operations
- Swap — SunSwap V2/V3/V4 exact-input swaps with routing support
- Liquidity V2 — Add/remove liquidity on SunSwap V2 pairs
- Positions V3/V4 — Mint, increase, decrease, and collect concentrated liquidity positions
- SunPump — Buy and sell SunPump tokens
- Balances — Batch TRC-20 and TRX balance queries with allowance management
Network Support
- Mainnet, Nile testnet, and Shasta testnet
- Pre-configured contract addresses for SunSwap V2/V3/V4, Permit2, and SunPump