Skip to content

Releases: BofAI/sun-kit

release v1.1.0

30 Mar 11:26
0e0b7d1

Choose a tag to compare

@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_KEY remains supported and will be sent as the TRON-PRO-API-KEY header 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 / rpcOverride option 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

30 Mar 10:15
236cdab

Choose a tag to compare

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