Core Features

1.Basic Blockchain Operations

1.1 Connect to SUI Wallet

Implementing “Connect to SUI Wallet”

  • Objective: Allow AI agents to connect to SUI wallets and manage private keys securely.

  • Implementation Steps:

    • Use the WalletProvider and SuiClientProvider from the SUI dApp Kit to establish wallet connections.

    • Support multiple wallet integrations (e.g., Sui Wallet, Suiet, Ethos Wallet).

    • Implement error handling for wallet connection failures.

1.2 View Asset List

Implementing "View Asset List"

  • Objective: Fetch and display the list of assets owned by a wallet.

  • Implementation Steps:

    • Use the getOwnedObjects query from the SUI RPC API via dApp Kit hooks.

    • Categorize SUI-native assets and NFTs in the response.

1.3 Balance Checks

Implementing "Balance Checks"

  • Objective: Query and display the balance of tokens (SUI and other fungible tokens).

  • Implementation Steps:

    • Use SUI RPC methods to fetch token balances for a wallet.

    • Build reusable hooks like useTokenBalance for modularity.

    • Format balances for user-friendly display.

1.4 Token Transfers

Implementing “Token Transfers”

  • Objective: Enable agents to transfer SUI or other tokens between addresses.

  • Implementation Steps:

    • Leverage useSignAndExecuteTransaction from the SUI dApp Kit to create token transfer transactions.

    • Include input validation (e.g., wallet balance checks, recipient address validation).

    • Implement status reporting for successful/failed transactions.

1.5 Token Swaps Using SUI-Based AMMs

Implementing “Token Swap”

  • Objective: Integrate with SUI decentralized exchanges (e.g., Cetus) to allow token swaps.

  • Implementation Steps:

    • Use SUI AMM SDKs (e.g., Cetus SDK) for token swap functionality.

    • Build an abstraction layer to handle liquidity pool interactions and slippage control.

    • Ensure support for querying available liquidity pools and performing swaps.

1.6 Batch and Compressed Airdrops

Implementing "Batch and Compressed Airdrops"

  • Objective: Allow agents to send airdrops to multiple addresses efficiently.

  • Implementation Steps:

    • Create a batching mechanism to send multiple token transfers in a single transaction.

Use zk-compression-based solutions for reducing airdrop costs and network congestion.

2.Autonomous & Interactive Mode

2.1. Interactive Mode

Guide for Interactive Mode Implementation

  • Objective: Allow users to guide AI agents step-by-step for blockchain operations.

  • Implementation Steps:

    • Build a React-based UI for step-by-step interactions using SUI dApp Kit components like ConnectButton.

    • Use LangChain’s memory modules to retain context during the interaction.

    • Provide real-time feedback on the status of operations.

2.2. Autonomous Mode

Guide for Autonomous Mode Implementation

  • Objective: Enable AI agents to perform SUI-related tasks independently.

  • Implementation Steps:

    • Implement autonomous decision-making by combining LangChain’s chains with SUI tools.

    • Add error handling and recovery mechanisms to ensure smooth execution.

    • Use customizable action intervals and execution thresholds to prevent excessive operations.

Last updated