@sun-protocol/wallet-cli-sunpump-plugin
v0.1.0-next.2
Published
SunPump commands for wallet-cli
Readme
@sun-protocol/wallet-cli-sunpump-plugin
sunpump is a plugin for wallet-cli. SunPump is a token launchpad on TRON: a new
token trades against a bonding curve contract until it launches to SunSwap, a decentralized exchange. The
plugin buys and sells tokens on the curve, launches new tokens, and looks tokens up.
It needs wallet-cli with plugin support (Requirements) and a TRON network: TRON mainnet with the built-in configuration, which a network's settings change. No credentials; the settings are in Credentials and settings.
Requirements
- wallet-cli with plugin support and a plugin SDK of version 1.0 or a later 1.x (this package declares
sdkVersion^1.0.0). Plugin support is on wallet-cli'sfeat/plugin-architecturebranch and not yet in a release. - Node.js 22.23.4+, 24.22.1+ or 26.12.1+.
Install
wallet-cli installs a plugin only by its npm package name. This package is not on npm yet; until it is,
publish it to a private or local npm registry and set pluginRegistry to it, as the
wallet-cli plugins guide describes.
wallet-cli plugin install @sun-protocol/wallet-cli-sunpump-plugin
wallet-cli plugin listCommands
| Command | What it does |
|---|---|
| sunpump buy | Buy a token on the SunPump bonding curve |
| sunpump token-list | List tokens on the SunPump launchpad |
| sunpump token-info | Show full details of one SunPump token |
| sunpump token-search | Search SunPump tokens by symbol or name |
| sunpump sell | Sell a token on the SunPump bonding curve |
| sunpump launch | Create a new token on the bonding curve |
wallet-cli sunpump <command> --help shows the options of each command. What the plugin adds to wallet-cli's
JSON output and error codes is in machine-interface.md.
Credentials and settings
No credentials. The plugin reads the sunpump block of a network in wallet-cli's config.yaml, merged
over the builtin defaults field by field, so an explicit false turns a default off:
networks:
tron:
sunpump:
apiBaseUrl: https://example.test # http(s) URL; the SunPump API
curve: true # bonding-curve tradesMainnet has every service by default. An invalid sunpump block, or an invalid sunswap block (the
settings of the separate sunswap plugin), fails the commands with invalid_value.
License
MIT. The licences of the third-party packages bundled into dist/index.mjs are in
dist/THIRD_PARTY_LICENSES.txt.
