madeonsol-x402 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +99 -69
- package/dist/index.d.ts +91 -28
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +170 -64
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +177 -125
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +2 -2
- package/package.json +2 -2
- package/LICENSE +0 -1
package/README.md
CHANGED
|
@@ -1,69 +1,99 @@
|
|
|
1
|
-
# madeonsol-x402
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
##
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
1
|
+
# madeonsol-x402
|
|
2
|
+
|
|
3
|
+
TypeScript SDK for the [MadeOnSol](https://madeonsol.com) Solana KOL intelligence API.
|
|
4
|
+
|
|
5
|
+
## Authentication
|
|
6
|
+
|
|
7
|
+
Three options (in priority order):
|
|
8
|
+
|
|
9
|
+
| Method | Option | Best for |
|
|
10
|
+
|---|---|---|
|
|
11
|
+
| **MadeOnSol API key** (recommended) | `apiKey` | Developers — [get a free key](https://madeonsol.com/developer) |
|
|
12
|
+
| RapidAPI key | `rapidApiKey` | RapidAPI subscribers |
|
|
13
|
+
| x402 micropayments | `privateKey` | AI agents with Solana wallets |
|
|
14
|
+
|
|
15
|
+
## Install
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
npm install madeonsol-x402
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
> x402 peer deps (`@x402/fetch @x402/svm @x402/core @solana/kit @scure/base`) are only needed when using `privateKey`.
|
|
22
|
+
|
|
23
|
+
## Quick Start
|
|
24
|
+
|
|
25
|
+
```ts
|
|
26
|
+
import { createClient } from "madeonsol-x402";
|
|
27
|
+
|
|
28
|
+
// Option 1: API key (simplest — get one free at madeonsol.com/developer)
|
|
29
|
+
const client = createClient("msk_your_api_key_here");
|
|
30
|
+
|
|
31
|
+
// Option 2: x402 micropayments (auto-detected when no msk_ prefix)
|
|
32
|
+
// const client = createClient(process.env.SOLANA_PRIVATE_KEY!);
|
|
33
|
+
|
|
34
|
+
const { trades } = await client.kolFeed({ limit: 10 });
|
|
35
|
+
console.log(trades);
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### Advanced initialization
|
|
39
|
+
|
|
40
|
+
```ts
|
|
41
|
+
import { MadeOnSolX402 } from "madeonsol-x402";
|
|
42
|
+
|
|
43
|
+
const client = new MadeOnSolX402({
|
|
44
|
+
apiKey: "msk_...", // OR
|
|
45
|
+
rapidApiKey: "rapid_...", // OR
|
|
46
|
+
privateKey: "base58...", // x402 micropayments
|
|
47
|
+
});
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Endpoints
|
|
51
|
+
|
|
52
|
+
| Method | Description |
|
|
53
|
+
|---|---|
|
|
54
|
+
| `kolFeed(params?)` | Real-time KOL trade feed from 946+ tracked wallets |
|
|
55
|
+
| `kolCoordination(params?)` | Tokens being accumulated by multiple KOLs simultaneously |
|
|
56
|
+
| `kolLeaderboard(params?)` | KOL performance rankings by PnL and win rate |
|
|
57
|
+
| `deployerAlerts(params?)` | Alerts from elite Pump.fun deployers with KOL enrichment |
|
|
58
|
+
| `discovery()` | Lists all endpoints, prices, and parameter docs (free) |
|
|
59
|
+
|
|
60
|
+
## Parameters
|
|
61
|
+
|
|
62
|
+
**kolFeed** — `limit` (1-100), `action` ("buy" | "sell"), `kol` (wallet address)
|
|
63
|
+
|
|
64
|
+
**kolCoordination** — `period` ("1h" | "6h" | "24h" | "7d"), `min_kols` (2-50), `limit` (1-50)
|
|
65
|
+
|
|
66
|
+
**kolLeaderboard** — `period` ("today" | "7d" | "30d"), `limit` (1-50)
|
|
67
|
+
|
|
68
|
+
**deployerAlerts** — `since` (ISO8601), `limit` (1-100), `offset` (number)
|
|
69
|
+
|
|
70
|
+
## REST API (webhooks + streaming)
|
|
71
|
+
|
|
72
|
+
```ts
|
|
73
|
+
import { MadeOnSolREST } from "madeonsol-x402";
|
|
74
|
+
|
|
75
|
+
const rest = new MadeOnSolREST({ apiKey: "msk_your_key" });
|
|
76
|
+
// OR: new MadeOnSolREST({ rapidApiKey: "your_rapidapi_key" });
|
|
77
|
+
|
|
78
|
+
const token = await rest.getStreamToken();
|
|
79
|
+
// token.ws_url — KOL/deployer streaming (Pro/Ultra)
|
|
80
|
+
// token.dex_ws_url — all-DEX trade stream (Ultra only)
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## Discovery
|
|
84
|
+
|
|
85
|
+
```ts
|
|
86
|
+
const info = await client.discovery();
|
|
87
|
+
console.log(info.endpoints); // all endpoints with prices and params
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
Docs: [madeonsol.com/solana-api](https://madeonsol.com/solana-api)
|
|
91
|
+
|
|
92
|
+
## Also Available
|
|
93
|
+
|
|
94
|
+
| Platform | Package |
|
|
95
|
+
|---|---|
|
|
96
|
+
| Python (LangChain, CrewAI) | [`madeonsol-x402`](https://github.com/LamboPoewert/madeonsol-python) on PyPI |
|
|
97
|
+
| MCP Server (Claude, Cursor) | [`mcp-server-madeonsol`](https://www.npmjs.com/package/mcp-server-madeonsol) |
|
|
98
|
+
| ElizaOS | [`@madeonsol/plugin-madeonsol`](https://www.npmjs.com/package/@madeonsol/plugin-madeonsol) |
|
|
99
|
+
| Solana Agent Kit | [`solana-agent-kit-plugin-madeonsol`](https://www.npmjs.com/package/solana-agent-kit-plugin-madeonsol) |
|
package/dist/index.d.ts
CHANGED
|
@@ -1,29 +1,92 @@
|
|
|
1
|
-
import type { KolFeedParams, KolFeedResponse, KolCoordinationParams, KolCoordinationResponse, KolLeaderboardParams, KolLeaderboardResponse, DeployerAlertsParams, DeployerAlertsResponse, DiscoveryResponse } from "./types.js";
|
|
2
|
-
export type { KolTrade, KolFeedParams, KolFeedResponse, KolCoordinationToken, KolCoordinationParams, KolCoordinationResponse, KolLeaderboardEntry, KolLeaderboardParams, KolLeaderboardResponse, DeployerAlert, DeployerAlertsParams, DeployerAlertsResponse, DiscoveryEndpoint, DiscoveryResponse, } from "./types.js";
|
|
3
|
-
interface
|
|
4
|
-
/**
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
|
|
1
|
+
import type { KolFeedParams, KolFeedResponse, KolCoordinationParams, KolCoordinationResponse, KolLeaderboardParams, KolLeaderboardResponse, DeployerAlertsParams, DeployerAlertsResponse, DiscoveryResponse, CreateWebhookParams, UpdateWebhookParams, Webhook, WebhookWithSecret, WebhookDelivery, WebhookTestResult, StreamToken } from "./types.js";
|
|
2
|
+
export type { KolTrade, KolFeedParams, KolFeedResponse, KolCoordinationToken, KolCoordinationParams, KolCoordinationResponse, KolLeaderboardEntry, KolLeaderboardParams, KolLeaderboardResponse, DeployerAlert, DeployerAlertsParams, DeployerAlertsResponse, DiscoveryEndpoint, DiscoveryResponse, WebhookEvent, WebhookFilters, Webhook, WebhookWithSecret, CreateWebhookParams, UpdateWebhookParams, WebhookDelivery, WebhookTestResult, StreamToken, } from "./types.js";
|
|
3
|
+
interface MadeOnSolClientOptions {
|
|
4
|
+
/** MadeOnSol API key (get one free at madeonsol.com/developer). Preferred auth method. */
|
|
5
|
+
apiKey?: string;
|
|
6
|
+
/** RapidAPI subscription key. */
|
|
7
|
+
rapidApiKey?: string;
|
|
8
|
+
/** Base58-encoded Solana private key for x402 USDC micropayments (for AI agents). */
|
|
9
|
+
privateKey?: string;
|
|
10
|
+
/** API base URL (default: https://madeonsol.com) */
|
|
11
|
+
baseUrl?: string;
|
|
12
|
+
}
|
|
13
|
+
/** @deprecated Use MadeOnSolClient instead */
|
|
14
|
+
interface MadeOnSolX402Options {
|
|
15
|
+
privateKey: string;
|
|
16
|
+
baseUrl?: string;
|
|
17
|
+
}
|
|
18
|
+
export declare class MadeOnSolX402 {
|
|
19
|
+
private paidFetch;
|
|
20
|
+
private baseUrl;
|
|
21
|
+
private authMode;
|
|
22
|
+
private authHeaders;
|
|
23
|
+
private ready;
|
|
24
|
+
constructor(opts: MadeOnSolX402Options | MadeOnSolClientOptions);
|
|
25
|
+
private initX402;
|
|
26
|
+
private request;
|
|
27
|
+
/** Real-time KOL trade feed from 946+ tracked wallets. */
|
|
28
|
+
kolFeed(params?: KolFeedParams): Promise<KolFeedResponse>;
|
|
29
|
+
/** KOL convergence signals — tokens being accumulated by multiple KOLs. */
|
|
30
|
+
kolCoordination(params?: KolCoordinationParams): Promise<KolCoordinationResponse>;
|
|
31
|
+
/** KOL performance rankings by PnL and win rate. */
|
|
32
|
+
kolLeaderboard(params?: KolLeaderboardParams): Promise<KolLeaderboardResponse>;
|
|
33
|
+
/** Real-time alerts from elite Pump.fun deployers. */
|
|
34
|
+
deployerAlerts(params?: DeployerAlertsParams): Promise<DeployerAlertsResponse>;
|
|
35
|
+
/** Free discovery endpoint — lists all available endpoints and prices. */
|
|
36
|
+
discovery(): Promise<DiscoveryResponse>;
|
|
37
|
+
}
|
|
38
|
+
/** Create a client with API key auth (simplest option). */
|
|
39
|
+
export declare function createClient(apiKeyOrPrivateKey: string, baseUrl?: string): MadeOnSolX402;
|
|
40
|
+
interface MadeOnSolRESTOptions {
|
|
41
|
+
/** MadeOnSol API key (get one free at madeonsol.com/developer). Preferred. */
|
|
42
|
+
apiKey?: string;
|
|
43
|
+
/** RapidAPI API key. */
|
|
44
|
+
rapidApiKey?: string;
|
|
45
|
+
/** API base URL (default: https://madeonsol.com) */
|
|
46
|
+
baseUrl?: string;
|
|
47
|
+
/** RapidAPI host header override */
|
|
48
|
+
rapidApiHost?: string;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* REST API client for webhook management and WebSocket streaming tokens.
|
|
52
|
+
* Requires a Pro or Ultra subscription.
|
|
53
|
+
*/
|
|
54
|
+
export declare class MadeOnSolREST {
|
|
55
|
+
private baseUrl;
|
|
56
|
+
private headers;
|
|
57
|
+
constructor(opts: MadeOnSolRESTOptions | {
|
|
58
|
+
apiKey: string;
|
|
59
|
+
baseUrl?: string;
|
|
60
|
+
rapidApiHost?: string;
|
|
61
|
+
});
|
|
62
|
+
private request;
|
|
63
|
+
/** Create a webhook. Returns the webhook with HMAC secret (only shown once). */
|
|
64
|
+
createWebhook(params: CreateWebhookParams): Promise<{
|
|
65
|
+
webhook: WebhookWithSecret;
|
|
66
|
+
note: string;
|
|
67
|
+
}>;
|
|
68
|
+
/** List all your webhooks. */
|
|
69
|
+
listWebhooks(): Promise<{
|
|
70
|
+
webhooks: Webhook[];
|
|
71
|
+
}>;
|
|
72
|
+
/** Get webhook detail with recent delivery log. */
|
|
73
|
+
getWebhook(id: number): Promise<{
|
|
74
|
+
webhook: Webhook;
|
|
75
|
+
recent_deliveries: WebhookDelivery[];
|
|
76
|
+
}>;
|
|
77
|
+
/** Update a webhook (URL, events, filters, or re-enable). */
|
|
78
|
+
updateWebhook(id: number, params: UpdateWebhookParams): Promise<{
|
|
79
|
+
webhook: Webhook;
|
|
80
|
+
}>;
|
|
81
|
+
/** Delete a webhook permanently. */
|
|
82
|
+
deleteWebhook(id: number): Promise<{
|
|
83
|
+
deleted: boolean;
|
|
84
|
+
}>;
|
|
85
|
+
/** Send a test payload to verify your webhook URL. */
|
|
86
|
+
testWebhook(webhookId: number): Promise<WebhookTestResult>;
|
|
87
|
+
/** Generate a 24h WebSocket streaming token. */
|
|
88
|
+
getStreamToken(): Promise<StreamToken>;
|
|
89
|
+
}
|
|
90
|
+
/** Convenience factory — creates a REST API client for webhooks + streaming. */
|
|
91
|
+
export declare function createRESTClient(apiKeyOrRapidApiKey: string, baseUrl?: string): MadeOnSolREST;
|
|
29
92
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,eAAe,EACf,qBAAqB,EACrB,uBAAuB,EACvB,oBAAoB,EACpB,sBAAsB,EACtB,oBAAoB,EACpB,sBAAsB,EACtB,iBAAiB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,eAAe,EACf,qBAAqB,EACrB,uBAAuB,EACvB,oBAAoB,EACpB,sBAAsB,EACtB,oBAAoB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
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
1
|
+
const DEFAULT_BASE_URL = "https://madeonsol.com";
|
|
2
|
+
const RAPIDAPI_HOST = "madeonsol-solana-kol-tracker-tools-api.p.rapidapi.com";
|
|
3
|
+
function resolveAuthHeaders(mode, key, rapidApiHost) {
|
|
4
|
+
if (mode === "madeonsol")
|
|
5
|
+
return { Authorization: `Bearer ${key}` };
|
|
6
|
+
if (mode === "rapidapi")
|
|
7
|
+
return { "x-rapidapi-key": key, "x-rapidapi-host": rapidApiHost ?? RAPIDAPI_HOST };
|
|
8
|
+
return {};
|
|
9
|
+
}
|
|
10
|
+
export class MadeOnSolX402 {
|
|
11
|
+
paidFetch;
|
|
12
|
+
baseUrl;
|
|
13
|
+
authMode;
|
|
14
|
+
authHeaders;
|
|
15
|
+
ready;
|
|
16
|
+
constructor(opts) {
|
|
17
|
+
this.baseUrl = (opts.baseUrl ?? DEFAULT_BASE_URL).replace(/\/$/, "");
|
|
18
|
+
this.authHeaders = {};
|
|
19
|
+
// Resolve auth: apiKey > rapidApiKey > privateKey
|
|
20
|
+
const clientOpts = opts;
|
|
21
|
+
if (clientOpts.apiKey) {
|
|
22
|
+
this.authMode = "madeonsol";
|
|
23
|
+
this.authHeaders = resolveAuthHeaders("madeonsol", clientOpts.apiKey);
|
|
24
|
+
this.ready = Promise.resolve();
|
|
25
|
+
}
|
|
26
|
+
else if (clientOpts.rapidApiKey) {
|
|
27
|
+
this.authMode = "rapidapi";
|
|
28
|
+
this.authHeaders = resolveAuthHeaders("rapidapi", clientOpts.rapidApiKey);
|
|
29
|
+
this.ready = Promise.resolve();
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
this.authMode = "x402";
|
|
33
|
+
const pk = clientOpts.privateKey ?? opts.privateKey;
|
|
34
|
+
if (!pk)
|
|
35
|
+
throw new Error("Provide apiKey, rapidApiKey, or privateKey. Get a free API key at madeonsol.com/developer");
|
|
36
|
+
this.ready = this.initX402(pk);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
async initX402(privateKey) {
|
|
40
|
+
const { wrapFetchWithPayment } = await import("@x402/fetch");
|
|
41
|
+
const { x402Client } = await import("@x402/core/client");
|
|
42
|
+
const { ExactSvmScheme } = await import("@x402/svm/exact/client");
|
|
43
|
+
const { createKeyPairSignerFromBytes } = await import("@solana/kit");
|
|
44
|
+
const { base58 } = await import("@scure/base");
|
|
45
|
+
const signer = await createKeyPairSignerFromBytes(base58.decode(privateKey));
|
|
46
|
+
const client = new x402Client();
|
|
47
|
+
client.register("solana:*", new ExactSvmScheme(signer));
|
|
48
|
+
this.paidFetch = wrapFetchWithPayment(fetch, client);
|
|
49
|
+
}
|
|
50
|
+
async request(path, params) {
|
|
51
|
+
await this.ready;
|
|
52
|
+
const apiPath = this.authMode === "x402" ? path : path.replace("/api/x402/", "/api/v1/");
|
|
53
|
+
const url = new URL(apiPath, this.baseUrl);
|
|
54
|
+
if (params) {
|
|
55
|
+
for (const [k, v] of Object.entries(params)) {
|
|
56
|
+
if (v !== undefined)
|
|
57
|
+
url.searchParams.set(k, String(v));
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
const res = this.authMode === "x402"
|
|
61
|
+
? await this.paidFetch(url.toString())
|
|
62
|
+
: await fetch(url.toString(), { headers: this.authHeaders });
|
|
63
|
+
if (!res.ok) {
|
|
64
|
+
const body = await res.text().catch(() => "");
|
|
65
|
+
throw new Error(`MadeOnSol API error ${res.status}: ${body}`);
|
|
66
|
+
}
|
|
67
|
+
return res.json();
|
|
68
|
+
}
|
|
69
|
+
/** Real-time KOL trade feed from 946+ tracked wallets. */
|
|
70
|
+
async kolFeed(params) {
|
|
71
|
+
return this.request("/api/x402/kol/feed", params);
|
|
72
|
+
}
|
|
73
|
+
/** KOL convergence signals — tokens being accumulated by multiple KOLs. */
|
|
74
|
+
async kolCoordination(params) {
|
|
75
|
+
return this.request("/api/x402/kol/coordination", params);
|
|
76
|
+
}
|
|
77
|
+
/** KOL performance rankings by PnL and win rate. */
|
|
78
|
+
async kolLeaderboard(params) {
|
|
79
|
+
return this.request("/api/x402/kol/leaderboard", params);
|
|
80
|
+
}
|
|
81
|
+
/** Real-time alerts from elite Pump.fun deployers. */
|
|
82
|
+
async deployerAlerts(params) {
|
|
83
|
+
return this.request("/api/x402/deployer-hunter/alerts", params);
|
|
84
|
+
}
|
|
85
|
+
/** Free discovery endpoint — lists all available endpoints and prices. */
|
|
86
|
+
async discovery() {
|
|
87
|
+
const res = await fetch(new URL("/api/x402", this.baseUrl).toString());
|
|
88
|
+
if (!res.ok)
|
|
89
|
+
throw new Error(`Discovery failed: ${res.status}`);
|
|
90
|
+
return res.json();
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
/** Create a client with API key auth (simplest option). */
|
|
94
|
+
export function createClient(apiKeyOrPrivateKey, baseUrl) {
|
|
95
|
+
// Auto-detect: msk_ prefix = API key, otherwise assume private key for backwards compat
|
|
96
|
+
if (apiKeyOrPrivateKey.startsWith("msk_")) {
|
|
97
|
+
return new MadeOnSolX402({ apiKey: apiKeyOrPrivateKey, baseUrl });
|
|
98
|
+
}
|
|
99
|
+
return new MadeOnSolX402({ privateKey: apiKeyOrPrivateKey, baseUrl });
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* REST API client for webhook management and WebSocket streaming tokens.
|
|
103
|
+
* Requires a Pro or Ultra subscription.
|
|
104
|
+
*/
|
|
105
|
+
export class MadeOnSolREST {
|
|
106
|
+
baseUrl;
|
|
107
|
+
headers;
|
|
108
|
+
constructor(opts) {
|
|
109
|
+
this.baseUrl = (opts.baseUrl ?? DEFAULT_BASE_URL).replace(/\/$/, "");
|
|
110
|
+
if (opts.apiKey) {
|
|
111
|
+
this.headers = resolveAuthHeaders("madeonsol", opts.apiKey);
|
|
112
|
+
}
|
|
113
|
+
else if (opts.rapidApiKey) {
|
|
114
|
+
this.headers = resolveAuthHeaders("rapidapi", opts.rapidApiKey, opts.rapidApiHost);
|
|
115
|
+
}
|
|
116
|
+
else {
|
|
117
|
+
throw new Error("Provide apiKey or rapidApiKey. Get a free API key at madeonsol.com/developer");
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
async request(method, path, body) {
|
|
121
|
+
const res = await fetch(`${this.baseUrl}/api/v1${path}`, {
|
|
122
|
+
method,
|
|
123
|
+
headers: {
|
|
124
|
+
"Content-Type": "application/json",
|
|
125
|
+
...this.headers,
|
|
126
|
+
},
|
|
127
|
+
...(body ? { body: JSON.stringify(body) } : {}),
|
|
128
|
+
});
|
|
129
|
+
if (!res.ok) {
|
|
130
|
+
const text = await res.text().catch(() => "");
|
|
131
|
+
throw new Error(`MadeOnSol API error ${res.status}: ${text}`);
|
|
132
|
+
}
|
|
133
|
+
return res.json();
|
|
134
|
+
}
|
|
135
|
+
/** Create a webhook. Returns the webhook with HMAC secret (only shown once). */
|
|
136
|
+
async createWebhook(params) {
|
|
137
|
+
return this.request("POST", "/webhooks", params);
|
|
138
|
+
}
|
|
139
|
+
/** List all your webhooks. */
|
|
140
|
+
async listWebhooks() {
|
|
141
|
+
return this.request("GET", "/webhooks");
|
|
142
|
+
}
|
|
143
|
+
/** Get webhook detail with recent delivery log. */
|
|
144
|
+
async getWebhook(id) {
|
|
145
|
+
return this.request("GET", `/webhooks/${id}`);
|
|
146
|
+
}
|
|
147
|
+
/** Update a webhook (URL, events, filters, or re-enable). */
|
|
148
|
+
async updateWebhook(id, params) {
|
|
149
|
+
return this.request("PATCH", `/webhooks/${id}`, params);
|
|
150
|
+
}
|
|
151
|
+
/** Delete a webhook permanently. */
|
|
152
|
+
async deleteWebhook(id) {
|
|
153
|
+
return this.request("DELETE", `/webhooks/${id}`);
|
|
154
|
+
}
|
|
155
|
+
/** Send a test payload to verify your webhook URL. */
|
|
156
|
+
async testWebhook(webhookId) {
|
|
157
|
+
return this.request("POST", "/webhooks/test", { webhook_id: webhookId });
|
|
158
|
+
}
|
|
159
|
+
/** Generate a 24h WebSocket streaming token. */
|
|
160
|
+
async getStreamToken() {
|
|
161
|
+
return this.request("POST", "/stream/token");
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
/** Convenience factory — creates a REST API client for webhooks + streaming. */
|
|
165
|
+
export function createRESTClient(apiKeyOrRapidApiKey, baseUrl) {
|
|
166
|
+
if (apiKeyOrRapidApiKey.startsWith("msk_")) {
|
|
167
|
+
return new MadeOnSolREST({ apiKey: apiKeyOrRapidApiKey, baseUrl });
|
|
168
|
+
}
|
|
169
|
+
return new MadeOnSolREST({ rapidApiKey: apiKeyOrRapidApiKey, baseUrl });
|
|
170
|
+
}
|
|
65
171
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AA6CA,MAAM,gBAAgB,GAAG,uBAAuB,CAAC;AACjD,MAAM,aAAa,GAAG,uDAAuD,CAAC;AAM9E,SAAS,kBAAkB,CAAC,IAAc,EAAE,GAAW,EAAE,YAAqB;IAC5E,IAAI,IAAI,KAAK,WAAW;QAAE,OAAO,EAAE,aAAa,EAAE,UAAU,GAAG,EAAE,EAAE,CAAC;IACpE,IAAI,IAAI,KAAK,UAAU;QAAE,OAAO,EAAE,gBAAgB,EAAE,GAAG,EAAE,iBAAiB,EAAE,YAAY,IAAI,aAAa,EAAE,CAAC;IAC5G,OAAO,EAAE,CAAC;AACZ,CAAC;AAqBD,MAAM,OAAO,aAAa;IAChB,SAAS,CAAgB;IACzB,OAAO,CAAS;IAChB,QAAQ,CAAW;IACnB,WAAW,CAAyB;IACpC,KAAK,CAAgB;IAE7B,YAAY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tD,KAAK,CAAC,WAAW,CAAC,SAAiB;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,gBAAgB,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED,gDAAgD;IAChD,KAAK,CAAC,cAAc;QAClB,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IAC/C,CAAC;CACF;AAED,gFAAgF;AAChF,MAAM,UAAU,gBAAgB,CAAC,mBAA2B,EAAE,OAAgB;IAC5E,IAAI,mBAAmB,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC;QAC3C,OAAO,IAAI,aAAa,CAAC,EAAE,MAAM,EAAE,mBAAmB,EAAE,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;IACD,OAAO,IAAI,aAAa,CAAC,EAAE,WAAW,EAAE,mBAAmB,EAAE,OAAO,EAAE,CAAC,CAAC;AAC1E,CAAC"}
|
package/dist/types.d.ts
CHANGED
|
@@ -1,126 +1,178 @@
|
|
|
1
|
-
export interface KolTrade {
|
|
2
|
-
wallet_address: string;
|
|
3
|
-
kol_name: string | null;
|
|
4
|
-
kol_twitter: string | null;
|
|
5
|
-
token_mint: string;
|
|
6
|
-
token_name: string | null;
|
|
7
|
-
token_symbol: string | null;
|
|
8
|
-
action: "buy" | "sell";
|
|
9
|
-
sol_amount: number;
|
|
10
|
-
token_amount: number;
|
|
11
|
-
tx_signature: string;
|
|
12
|
-
deployer?: {
|
|
13
|
-
wallet: string;
|
|
14
|
-
tier: string;
|
|
15
|
-
bonding_rate: number | null;
|
|
16
|
-
};
|
|
17
|
-
traded_at: string;
|
|
18
|
-
}
|
|
19
|
-
export interface KolFeedResponse {
|
|
20
|
-
trades: KolTrade[];
|
|
21
|
-
count: number;
|
|
22
|
-
}
|
|
23
|
-
export interface KolFeedParams {
|
|
24
|
-
limit?: number;
|
|
25
|
-
action?: "buy" | "sell";
|
|
26
|
-
kol?: string;
|
|
27
|
-
}
|
|
28
|
-
export interface KolCoordinationToken {
|
|
29
|
-
token_mint: string;
|
|
30
|
-
token_symbol: string;
|
|
31
|
-
token_name: string;
|
|
32
|
-
kol_count: number;
|
|
33
|
-
total_buys: number;
|
|
34
|
-
total_sells: number;
|
|
35
|
-
net_sol_flow: number;
|
|
36
|
-
signal: "accumulating" | "distributing";
|
|
37
|
-
kols: {
|
|
38
|
-
name: string;
|
|
39
|
-
wallet: string;
|
|
40
|
-
}[];
|
|
41
|
-
}
|
|
42
|
-
export interface KolCoordinationResponse {
|
|
43
|
-
coordination: KolCoordinationToken[];
|
|
44
|
-
period: string;
|
|
45
|
-
min_kols: number;
|
|
46
|
-
}
|
|
47
|
-
export interface KolCoordinationParams {
|
|
48
|
-
period?: "1h" | "6h" | "24h" | "7d";
|
|
49
|
-
min_kols?: number;
|
|
50
|
-
limit?: number;
|
|
51
|
-
}
|
|
52
|
-
export interface KolLeaderboardEntry {
|
|
53
|
-
wallet_address: string;
|
|
54
|
-
name: string;
|
|
55
|
-
pnl_sol: number;
|
|
56
|
-
total_buy_sol: number;
|
|
57
|
-
total_sell_sol: number;
|
|
58
|
-
buy_count: number;
|
|
59
|
-
sell_count: number;
|
|
60
|
-
win_rate: number | null;
|
|
61
|
-
}
|
|
62
|
-
export interface KolLeaderboardResponse {
|
|
63
|
-
leaderboard: KolLeaderboardEntry[];
|
|
64
|
-
period: string;
|
|
65
|
-
}
|
|
66
|
-
export interface KolLeaderboardParams {
|
|
67
|
-
period?: "today" | "7d" | "30d";
|
|
68
|
-
limit?: number;
|
|
69
|
-
}
|
|
70
|
-
export interface DeployerAlert {
|
|
71
|
-
id: string;
|
|
72
|
-
token_mint: string;
|
|
73
|
-
token_name: string | null;
|
|
74
|
-
token_symbol: string | null;
|
|
75
|
-
alert_type: string;
|
|
76
|
-
title: string;
|
|
77
|
-
message: string;
|
|
78
|
-
priority: string;
|
|
79
|
-
created_at: string;
|
|
80
|
-
market_cap_at_alert: number | null;
|
|
81
|
-
deployers: {
|
|
82
|
-
wallet_address: string;
|
|
83
|
-
tier: string;
|
|
84
|
-
total_tokens_deployed: number;
|
|
85
|
-
total_bonded: number;
|
|
86
|
-
bonding_rate: number;
|
|
87
|
-
recent_outcomes: unknown;
|
|
88
|
-
recent_bond_rate: number;
|
|
89
|
-
};
|
|
90
|
-
kol_buys: {
|
|
91
|
-
count: number;
|
|
92
|
-
total_sol: number;
|
|
93
|
-
kols: string[];
|
|
94
|
-
} | null;
|
|
95
|
-
}
|
|
96
|
-
export interface DeployerAlertsResponse {
|
|
97
|
-
alerts: DeployerAlert[];
|
|
98
|
-
limit: number;
|
|
99
|
-
offset: number;
|
|
100
|
-
}
|
|
101
|
-
export interface DeployerAlertsParams {
|
|
102
|
-
since?: string;
|
|
103
|
-
limit?: number;
|
|
104
|
-
offset?: number;
|
|
105
|
-
}
|
|
106
|
-
export
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
1
|
+
export interface KolTrade {
|
|
2
|
+
wallet_address: string;
|
|
3
|
+
kol_name: string | null;
|
|
4
|
+
kol_twitter: string | null;
|
|
5
|
+
token_mint: string;
|
|
6
|
+
token_name: string | null;
|
|
7
|
+
token_symbol: string | null;
|
|
8
|
+
action: "buy" | "sell";
|
|
9
|
+
sol_amount: number;
|
|
10
|
+
token_amount: number;
|
|
11
|
+
tx_signature: string;
|
|
12
|
+
deployer?: {
|
|
13
|
+
wallet: string;
|
|
14
|
+
tier: string;
|
|
15
|
+
bonding_rate: number | null;
|
|
16
|
+
};
|
|
17
|
+
traded_at: string;
|
|
18
|
+
}
|
|
19
|
+
export interface KolFeedResponse {
|
|
20
|
+
trades: KolTrade[];
|
|
21
|
+
count: number;
|
|
22
|
+
}
|
|
23
|
+
export interface KolFeedParams {
|
|
24
|
+
limit?: number;
|
|
25
|
+
action?: "buy" | "sell";
|
|
26
|
+
kol?: string;
|
|
27
|
+
}
|
|
28
|
+
export interface KolCoordinationToken {
|
|
29
|
+
token_mint: string;
|
|
30
|
+
token_symbol: string;
|
|
31
|
+
token_name: string;
|
|
32
|
+
kol_count: number;
|
|
33
|
+
total_buys: number;
|
|
34
|
+
total_sells: number;
|
|
35
|
+
net_sol_flow: number;
|
|
36
|
+
signal: "accumulating" | "distributing";
|
|
37
|
+
kols: {
|
|
38
|
+
name: string;
|
|
39
|
+
wallet: string;
|
|
40
|
+
}[];
|
|
41
|
+
}
|
|
42
|
+
export interface KolCoordinationResponse {
|
|
43
|
+
coordination: KolCoordinationToken[];
|
|
44
|
+
period: string;
|
|
45
|
+
min_kols: number;
|
|
46
|
+
}
|
|
47
|
+
export interface KolCoordinationParams {
|
|
48
|
+
period?: "1h" | "6h" | "24h" | "7d";
|
|
49
|
+
min_kols?: number;
|
|
50
|
+
limit?: number;
|
|
51
|
+
}
|
|
52
|
+
export interface KolLeaderboardEntry {
|
|
53
|
+
wallet_address: string;
|
|
54
|
+
name: string;
|
|
55
|
+
pnl_sol: number;
|
|
56
|
+
total_buy_sol: number;
|
|
57
|
+
total_sell_sol: number;
|
|
58
|
+
buy_count: number;
|
|
59
|
+
sell_count: number;
|
|
60
|
+
win_rate: number | null;
|
|
61
|
+
}
|
|
62
|
+
export interface KolLeaderboardResponse {
|
|
63
|
+
leaderboard: KolLeaderboardEntry[];
|
|
64
|
+
period: string;
|
|
65
|
+
}
|
|
66
|
+
export interface KolLeaderboardParams {
|
|
67
|
+
period?: "today" | "7d" | "30d";
|
|
68
|
+
limit?: number;
|
|
69
|
+
}
|
|
70
|
+
export interface DeployerAlert {
|
|
71
|
+
id: string;
|
|
72
|
+
token_mint: string;
|
|
73
|
+
token_name: string | null;
|
|
74
|
+
token_symbol: string | null;
|
|
75
|
+
alert_type: string;
|
|
76
|
+
title: string;
|
|
77
|
+
message: string;
|
|
78
|
+
priority: string;
|
|
79
|
+
created_at: string;
|
|
80
|
+
market_cap_at_alert: number | null;
|
|
81
|
+
deployers: {
|
|
82
|
+
wallet_address: string;
|
|
83
|
+
tier: string;
|
|
84
|
+
total_tokens_deployed: number;
|
|
85
|
+
total_bonded: number;
|
|
86
|
+
bonding_rate: number;
|
|
87
|
+
recent_outcomes: unknown;
|
|
88
|
+
recent_bond_rate: number;
|
|
89
|
+
};
|
|
90
|
+
kol_buys: {
|
|
91
|
+
count: number;
|
|
92
|
+
total_sol: number;
|
|
93
|
+
kols: string[];
|
|
94
|
+
} | null;
|
|
95
|
+
}
|
|
96
|
+
export interface DeployerAlertsResponse {
|
|
97
|
+
alerts: DeployerAlert[];
|
|
98
|
+
limit: number;
|
|
99
|
+
offset: number;
|
|
100
|
+
}
|
|
101
|
+
export interface DeployerAlertsParams {
|
|
102
|
+
since?: string;
|
|
103
|
+
limit?: number;
|
|
104
|
+
offset?: number;
|
|
105
|
+
}
|
|
106
|
+
export type WebhookEvent = "kol:trade" | "kol:coordination" | "deployer:alert" | "deployer:bond";
|
|
107
|
+
export interface WebhookFilters {
|
|
108
|
+
min_sol?: number;
|
|
109
|
+
action?: "buy" | "sell";
|
|
110
|
+
kol_name?: string;
|
|
111
|
+
deployer_tier?: string[];
|
|
112
|
+
min_kols?: number;
|
|
113
|
+
}
|
|
114
|
+
export interface Webhook {
|
|
115
|
+
id: number;
|
|
116
|
+
url: string;
|
|
117
|
+
events: WebhookEvent[];
|
|
118
|
+
filters: WebhookFilters;
|
|
119
|
+
is_active: boolean;
|
|
120
|
+
created_at: string;
|
|
121
|
+
last_delivered_at: string | null;
|
|
122
|
+
consecutive_failures: number;
|
|
123
|
+
}
|
|
124
|
+
export interface WebhookWithSecret extends Webhook {
|
|
125
|
+
secret: string;
|
|
126
|
+
}
|
|
127
|
+
export interface CreateWebhookParams {
|
|
128
|
+
url: string;
|
|
129
|
+
events: WebhookEvent[];
|
|
130
|
+
filters?: WebhookFilters;
|
|
131
|
+
}
|
|
132
|
+
export interface UpdateWebhookParams {
|
|
133
|
+
url?: string;
|
|
134
|
+
events?: WebhookEvent[];
|
|
135
|
+
filters?: WebhookFilters;
|
|
136
|
+
is_active?: boolean;
|
|
137
|
+
}
|
|
138
|
+
export interface WebhookDelivery {
|
|
139
|
+
event_type: string;
|
|
140
|
+
status_code: number | null;
|
|
141
|
+
response_time_ms: number;
|
|
142
|
+
delivered_at: string;
|
|
143
|
+
error: string | null;
|
|
144
|
+
}
|
|
145
|
+
export interface WebhookTestResult {
|
|
146
|
+
success: boolean;
|
|
147
|
+
status_code?: number;
|
|
148
|
+
response_time_ms: number;
|
|
149
|
+
error?: string;
|
|
150
|
+
}
|
|
151
|
+
export interface StreamToken {
|
|
152
|
+
token: string;
|
|
153
|
+
expires_at: string;
|
|
154
|
+
ws_url: string;
|
|
155
|
+
/** DEX trade stream URL — only present for Ultra tier subscribers */
|
|
156
|
+
dex_ws_url?: string;
|
|
157
|
+
}
|
|
158
|
+
export interface DiscoveryEndpoint {
|
|
159
|
+
path: string;
|
|
160
|
+
method: string;
|
|
161
|
+
price: string;
|
|
162
|
+
description: string;
|
|
163
|
+
params: Record<string, string>;
|
|
164
|
+
}
|
|
165
|
+
export interface DiscoveryResponse {
|
|
166
|
+
name: string;
|
|
167
|
+
description: string;
|
|
168
|
+
website: string;
|
|
169
|
+
x402Version: number;
|
|
170
|
+
payTo: string;
|
|
171
|
+
network: string;
|
|
172
|
+
paymentToken: string;
|
|
173
|
+
endpoints: DiscoveryEndpoint[];
|
|
174
|
+
docs: string;
|
|
175
|
+
totalKolsTracked: number;
|
|
176
|
+
totalDeployersTracked: string;
|
|
177
|
+
}
|
|
126
178
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[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CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,iBAAiB,EAAE,CAAC;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB,EAAE,MAAM,CAAC;IACzB,qBAAqB,EAAE,MAAM,CAAC;CAC/B"}
|
package/dist/types.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/* ── KOL Feed ── */
|
|
2
|
-
export {};
|
|
1
|
+
/* ── KOL Feed ── */
|
|
2
|
+
export {};
|
|
3
3
|
//# sourceMappingURL=types.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "madeonsol-x402",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "x402 client SDK for MadeOnSol Solana KOL intelligence API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
],
|
|
18
18
|
"scripts": {
|
|
19
19
|
"build": "tsc",
|
|
20
|
-
"prepublishOnly": ""
|
|
20
|
+
"prepublishOnly": "npm run build"
|
|
21
21
|
},
|
|
22
22
|
"keywords": [
|
|
23
23
|
"solana",
|
package/LICENSE
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
MIT License
|