@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.