Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

AgentsBank SDK Skill Definition

БесплатноЗапускает вложенные скриптыНе проверен

This skill provides secure, scoped crypto banking operations for AI agents via the official AgentsBank SDK. It enables agents to manage wallets, check…

modbenderот modbender★ 21 звезда на GitHub

Об этом скилле

AgentsBank SDK Skill Definition

Version: 1.0.6
Publisher: AgentsBank
Contact: [email protected]
Status: 🟢 Public Release - Production Ready


🎯 PURPOSE & CAPABILITY

This skill provides secure, scoped crypto banking operations for AI agents via the official AgentsBank SDK. It enables agents to manage wallets, check balances, and execute transactions with explicit user control.

✅ Capabilities (Read-Only & Safe)

  • ✓ Fetch agent wallet balances across all supported chains (Ethereum, BSC, Solana, Bitcoin)
  • ✓ Retrieve transaction history with filtering and pagination
  • ✓ Query wallet details, metadata, and account information
  • ✓ Sign messages for authentication and verification (no fund transfer)
  • ✓ Estimate gas fees before transaction execution
  • ✓ List all wallets with pagination support

⚠️ Capabilities (Write/Financial - Requires Explicit User Invocation)

  • ⚠️ Send crypto transactions (only if disableModelInvocation: false is explicitly overridden by user)
  • ⚠️ Create new wallets (only if disableModelInvocation: false is explicitly overridden by user)
  • ⚠️ Self-register agents and humans autonomously

❌ NOT Included (Out of Scope)

  • OAuth2 delegated access to external wallets
  • Webhooks or event subscriptions
  • Smart contract deployment
  • Sandboxed testing (use testnet chains directly)
  • Private key export or management

🔐 CREDENTIALS & ENVIRONMENT VARIABLES

Required Environment Variables

Variable Type Purpose Example
AGENTSBANK_API_URL string API endpoint (primary) https://api.agentsbank.online
AGENTSBANK_AGENT_USERNAME string Agent identifier agent_123456_abc
AGENTSBANK_AGENT_PASSWORD string Agent credential (secret) (user-specific)

⚠️ SECURITY NOTES:

  • AGENTSBANK_AGENT_PASSWORD must never be committed to version control
  • Store in .env file (add to .gitignore)
  • Rotate credentials quarterly or if exposed
  • Use a secret manager (e.g., HashiCorp Vault, AWS Secrets Manager) in production

Optional Environment Variables

Variable Type Purpose Default
AGENTSBANK_API_KEY string Alternative to password-based auth (not set)
AGENTSBANK_LOG_LEVEL string Logging verbosity info
AGENTSBANK_TIMEOUT_MS number Request timeout 30000

🚀 INSTALL & SETUP

1. Install SDK

The published npm package is lightweight (~6.8 KB) with no node_modules included. Installation only fetches dependencies you need:

npm install @agentsbankai/sdk
# or
yarn add @agentsbankai/sdk
# or
pnpm add @agentsbankai/sdk

This will:

  • ✅ Download the compiled SDK (CJS + ESM formats)
  • ✅ Install required dependencies (axios, ethers, @solana/web3.js, etc.)
  • ✅ No bloat: node_modules are excluded from the published package

2. Initialize Environment

Create .env file in your project root:

AGENTSBANK_API_URL=https://api.agentsbank.online
AGENTSBANK_AGENT_USERNAME=agent_123456_abc
AGENTSBANK_AGENT_PASSWORD=your_secure_password_here

3. Create Client Instance

import { AgentsBankSDK } from '@agentsbankai/sdk';

// Initialize SDK with API credentials
const bank = new AgentsBankSDK({
  apiUrl: process.env.AGENTSBANK_API_URL || 'https://api.agentsbank.online',
  timeout: parseInt(process.env.AGENTSBANK_TIMEOUT_MS || '30000')
});

// Authenticate using agent credentials
const { token, agent } = await bank.login({
  agentUsername: process.env.AGENTSBANK_AGENT_USERNAME!,
  agentPassword: process.env.AGENTSBANK_AGENT_PASSWORD!
});

console.log('✅ Authenticated as:', agent.agent_id);

4. Use Safe Operations (Always Allowed)

// Get wallet balance (safe, read-only)
const balance = await bank.getBalance(walletId);
console.log('Balance:', balance);

// Get transaction history (safe, read-only)
const history = await bank.getTransactionHistory(walletId, { 
  limit: 10,
  offset: 0 
});
console.log('Recent transactions:', history);

// Sign a message (safe, no fund transfer)
const signature = await bank.signMessage(walletId, 'verify-ownership');
console.log('Signature:', signature);

// Estimate gas fees before sending
const gasEstimate = await bank.estimateGas({
  walletId,
  toAddress: '0x...',
  amount: '1.5',
  chain: 'ethereum'
});
console.log('Estimated gas:', gasEstimate);

// List all wallets with pagination
const wallets = await bank.listWallets({ limit: 20, offset: 0 });
console.log('Agent wallets:', wallets);

⚠️ RESTRICTED OPERATIONS (Require Explicit User Approval)

The following operations will not execute autonomously and require explicit user invocation:

// ❌ This requires user to explicitly call it
// (disableModelInvo
Полный SKILL.md на GitHub

Установить AgentsBank SDK Skill Definition в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

CHANGELOG.mdpackage-lock.jsonpackage.jsonsrc/client.tssrc/errors.tssrc/index.tssrc/types.tstsconfig.json

FAQ

Что делает скилл AgentsBank SDK Skill Definition?

This skill provides secure, scoped crypto banking operations for AI agents via the official AgentsBank SDK. It enables agents to manage wallets, check balances, and execute transactions with explic...

Как установить скилл AgentsBank SDK Skill Definition?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл AgentsBank SDK Skill Definition запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить AgentsBank SDK Skill Definition с