Skip to content

Blockchain Tool (GOAT SDK):

Blockchain Interaction Flow (GOAT SDK)

GOAT SDK Flow

Transform natural language instructions into blockchain transactions using the powerful GOAT SDK. This flow provides AI-powered blockchain interaction across multiple chains with intelligent plugin system for various DeFi operations.

How to Use

Input Requirements

Chain Selection: Choose your target blockchain

  • Solana: For SPL tokens, DeFi protocols, and Solana ecosystem
  • Ethereum: For ERC-20 tokens, DeFi protocols, and Ethereum ecosystem
  • Other EVM Chains: Support for multiple EVM-compatible networks

Private Key: Your wallet's private key for transaction signing

  • Securely stored and encrypted
  • Required for all transaction operations
  • Used for wallet authentication and transaction signing

Plugins Configuration: Select and configure blockchain tools

  • Jupiter (Solana): DEX aggregation, token swaps, liquidity operations
  • Additional plugins available for different chains and operations

Natural Language Instructions

Send clear, conversational commands for blockchain operations:

Token Operations:

  • "Swap 100 USDC for SOL"
  • "Check my USDT balance"
  • "Transfer 50 USDC to [wallet_address]"

DeFi Operations:

  • "Find best swap rate for 1000 USDC to SOL"
  • "Get current SOL price"
  • "Show me available trading pairs"

Portfolio Management:

  • "Show all my token balances"
  • "What's my portfolio worth in USD?"
  • "Find highest yielding opportunities"

Input Examples

Solana Chain Operations

{
  "chain": "solana",
  "privateKey": "your_solana_private_key",
  "plugins": ["jupiter"],
  "message": "Swap 100 USDC for SOL using best available rate"
}

Token Balance Check

{
  "chain": "solana", 
  "privateKey": "your_private_key",
  "plugins": ["jupiter"],
  "message": "Check my SOL and USDC balances"
}

Multi-Token Swap

{
  "chain": "solana",
  "privateKey": "your_private_key", 
  "plugins": ["jupiter"],
  "message": "Convert 50% of my USDC to SOL and 50% to RAY"
}

Output Examples

Successful Swap Transaction

{
  "success": true,
  "transaction": {
    "signature": "4xKjmSXYpKq8...",
    "from_token": "USDC",
    "to_token": "SOL", 
    "from_amount": "100.00",
    "to_amount": "0.425",
    "rate": "0.00425 SOL per USDC",
    "fees": "0.05 USDC",
    "status": "confirmed"
  },
  "message": "Successfully swapped 100 USDC for 0.425 SOL"
}

Supported Chains & Plugins

Solana Ecosystem

  • Jupiter Plugin: DEX aggregation, best rate finding, token swaps
  • Native Operations: Token transfers, balance checks, transaction history
  • DeFi Integration: Access to major Solana DeFi protocols

Ethereum & EVM Chains

  • Multi-chain Support: Ethereum, Polygon, BSC, Arbitrum, Optimism
  • DeFi Protocols: Uniswap, SushiSwap, 1inch integration
  • Token Standards: ERC-20, ERC-721, ERC-1155 support

Best Practices:

Use Anthropics Model to have best agent calling