This skill provides account creation functionality for Consortium AI.
It calls an external API that creates a custodial wallet account on Consortium AI.
From the skill directory, you can call the API either by making HTTP requests (see API Reference) or by running the bundled script:
node scripts/create-account.js
or npm run create-account --
Example: node scripts/create-account.js 5h4...3k1
The script requires TRADING_ANALYSIS_API_KEY to be set. It prints the API response as JSON to stdout on success, or error JSON to stderr and exits non-zero on failure.
Set the API key as an environment variable before using this skill:
export TRADING_ANALYSIS_API_KEY=your-secret-api-key
To get an API key, contact Consortium AI on X.
Backend API base URL: https://api.consortiumai.org
Endpoint: POST https://api.consortiumai.org/api/custodial-wallet/create-with-api-key
Creates a new custodial wallet account.
API key only (no JWT). Send the key in one of:
x-api-key: Authorization: Bearer {
"walletAddress": "5h4...YourWalletAddress...3k1"
}
{
"message": "Custodial wallet created successfully",
"data": {
"id": "wallet_uuid",
"wallet_address": "GeneratedCustodialWalletAddress",
"user_id": "user_uuid",
"created_at": "2024-03-20T10:00:00.000Z",
"updated_at": "2024-03-20T10:00:00.000Z"
}
}
| Status | When | Body (example) |
|---|---|---|
| -------- | ------ | ---------------- |
| 400 | Missing walletAddress | { "error": "Missing walletAddress" } |
| 401 | Missing or wrong API key | { "success": false, "message": "Invalid or missing API key" } |
| 404 | User not found for wallet address | { "error": "User not found for the provided wallet address" } |
Purpose
Create a new custodial wallet account on Consortium AI.
Parameters
walletAddress (string): The user's wallet address.Expected Behavior
https://api.consortiumai.org/api/custodial-wallet/create-with-api-keyx-api-key using TRADING_ANALYSIS_API_KEYReturns
共 1 个版本