AXES
AXES - Agents on Chain
AXES - Agents on Chain
  • Introduction
    • Problem Statement
    • Vision and Mission
    • The Solution
    • How Axes Addresses the Identified Problems
    • Benefits for Users and AI Developers
  • Core Concepts
  • Core Components
    • AXES Protocol
    • AXES Smart Account
    • Optimal Model Retrieval Protocol
      • OMRP in the AXES Ecosystem
      • Architecture Overview
      • Components
      • Workflow
      • Smart Contracts in OMRP
    • Smart Hub - AI App Marketplace
    • App Node Clients
    • AIGC
      • Ownership and Monetization
  • User Guide
    • Creating an AXES Smart Account
    • Using the AI Marketplace
    • What is Canvas?
  • Developer Guide
    • AXES Connect
    • How to Publish on AXES
    • Technical Documentation
      • AXES Connect SDK
        • Installation
        • Initialization
        • Key Features
          • Wallet Connection
          • Token Bound Account (TBA) Management
          • DID Operations
          • Verifiable Credential Management
          • DID Document Generation
          • Smart Contract Interactions
          • Error Handling
          • Integration Example
  • Use Cases
    • AI-Powered Brand Collaboration
    • Personal AI Development
  • Roadmap
Powered by GitBook
On this page
  1. Developer Guide
  2. Technical Documentation
  3. AXES Connect SDK
  4. Key Features

Smart Contract Interactions

The SDK provides methods to interact with the underlying smart contracts:

const didContract = axesConnect.contracts.getDIDManagement();

// Check if a TBA exists
const tbaExists = await didContract.methods.tbaExists(userAddress).call();

// Verify DID ownership
const isOwner = await didContract.methods.verifyDIDOwnership(tokenId, tokenContract, did).call();
PreviousDID Document GenerationNextError Handling

Last updated 10 months ago