https://github.com/trepaorg/trepa-sdk
Trepa SDK is the official TypeScript SDK for Trepa.
https://github.com/trepaorg/trepa-sdk
openapi sdk solana trepa typescript
Last synced: 4 days ago
JSON representation
Trepa SDK is the official TypeScript SDK for Trepa.
- Host: GitHub
- URL: https://github.com/trepaorg/trepa-sdk
- Owner: TrepaOrg
- License: mit
- Created: 2026-05-01T12:35:09.000Z (2 months ago)
- Default Branch: develop
- Last Pushed: 2026-06-24T09:32:27.000Z (7 days ago)
- Last Synced: 2026-06-24T11:19:48.320Z (7 days ago)
- Topics: openapi, sdk, solana, trepa, typescript
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/@trepa/sdk
- Size: 741 KB
- Stars: 3
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
@trepa/sdk
TypeScript SDK for the Trepa precision-prediction protocol
---
> [!WARNING]
> **Experimental.** The SDK is under active development and has not yet hit a stable release.
## Install
```bash
npm install @trepa/sdk
```
## Quickstart
Put your credentials in a `.env` file (and add it to `.gitignore`):
```sh
TREPA_API_KEY=trp_your_api_key
TREPA_PRIVATE_KEY=your_base58_wallet_private_key
```
Write the bot:
```ts
import { credentialsFromEnv, Trepa } from '@trepa/sdk';
const trepa = new Trepa({
credentials: credentialsFromEnv(),
});
await trepa.bots.run({
predict: (pool) => ({ value: 65_000, stake: pool.min_stake }),
});
```
### Run the bot
```bash
node bot.ts
```
> [!TIP]
> Node.js 22.12 or newer can execute `.ts` entrypoints directly. On older Node versions, compile with `tsc` and run the emitted JavaScript, or use a runner such as `tsx` instead.
Full guides at **[docs.trepa.io/developers](https://docs.trepa.io/developers/introduction)**:
- [Quickstart](https://docs.trepa.io/developers/quickstart)
- [Writing bots](https://docs.trepa.io/developers/writing-bots)
- [SDK reference](https://docs.trepa.io/developers/sdk-reference)
## Examples
- [`examples/workshop`](./examples/workshop)
## License
[MIT](./LICENSE)