بنقرة واحدة
gdex-watchlist-social
Watchlist, comments, and sentiment voting — social community features around individual tokens
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Watchlist, comments, and sentiment voting — social community features around individual tokens
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
HyperLiquid perpetual futures — open/close positions, set leverage, place market and limit orders with TP/SL, and manage open orders
CSS theming system for GDEX trading UIs — dark/light modes, trading colors, responsive breakpoints, and Tailwind CSS configuration
Troubleshoot GDEX SDK errors — error codes, encryption debugging, chain-specific quirks, HL gotchas, and copy trade pitfalls
Start here — GDEX overview, architecture, supported chains, available skills, and quickstart for cross-chain DeFi trading via managed-custody wallets
HyperLiquid HIP-3 outcome / event markets — list markets, place outcome orders, and manage outcome positions
Deposit and withdraw USDC to/from HyperLiquid for perpetual futures trading — constraints, amounts, and managed-custody flow
| name | gdex-watchlist-social |
| description | Watchlist, comments, and sentiment voting — social community features around individual tokens |
Manage a per-user watchlist and interact with the social layer around each token (comments and bullish/bearish sentiment votes).
@gdexsdk/gdex-skill installeduserId and
encrypted data payload) or a managed-custody token, depending on
backend deployment| Method | Path | Purpose |
|---|---|---|
GET | /v1/watch_list | Get the user's watchlist |
POST | /v1/change_watch_list | Add or remove a token from the watchlist |
GET | /v1/comments | Get comments for a token |
POST | /v1/add_comment | Post a comment |
POST | /v1/vote_sentiment | Cast a bullish/bearish sentiment vote |
import { GdexSkill, buildWatchListComputedData } from '@gdexsdk/gdex-skill';
const skill = new GdexSkill();
skill.loginWithApiKey(process.env.GDEX_API_KEY!);
// Watchlist (managed custody — backend decodes computedData)
const list = await skill.getWatchList({ userId: '0xWallet', data: encryptedSessionKey });
// Structured shape — SDK builds computedData internally
await skill.changeWatchList({
tokenAddress: '0xToken',
chainId: 8453,
action: 'add',
managed: {
apiKey: process.env.GDEX_API_KEY!,
walletAddress: '0xWallet',
sessionPrivateKey: '0x…',
userId: '0xWallet',
},
});
// Or raw shape — caller pre-built computedData
await skill.changeWatchList({
computedData: buildWatchListComputedData({
apiKey: process.env.GDEX_API_KEY!,
walletAddress: '0xWallet',
sessionPrivateKey: '0x…',
userId: '0xWallet',
tokenAddress: '0xToken',
chainId: '8453',
isAdded: true,
}),
chainId: 8453,
});
// Comments (plain JSON)
const comments = await skill.getComments({ tokenAddress: '0xToken', chain: 8453 });
await skill.addComment({
tokenAddress: '0xToken',
chain: 8453,
message: 'Looking strong on the 4h',
userId: '0xWallet',
data: encryptedSessionKey,
});
// Sentiment (plain JSON)
await skill.voteSentiment({
tokenAddress: '0xToken',
chain: 8453,
sentiment: 'bullish',
userId: '0xWallet',
data: encryptedSessionKey,
});
change_watch_list uses managed-custody encrypted computedData:
ABI ['watch_list', [tokenAddress, chainId, isAdded, nonce]],
sig message watch_list-${userId}-${data}.add_comment and vote_sentiment use plain JSON with the standard
session header for auth — they do NOT go through serverDecryptData.(userId, chain, tokenAddress).(userId, tokenAddress) — re-voting
updates the existing vote.