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

DID Operations

Create a new DID:

const did = await axesConnect.did.create({
  did: 'did:axes:example',
  publicKey: 'publicKeyString',
  serviceEndpoint: 'https://example.com/endpoint',
  tokenId: 123,
  tokenContract: '0x123...'
});

Update an existing DID:

await axesConnect.did.update({
  did: 'did:axes:example',
  publicKey: 'newPublicKeyString',
  serviceEndpoint: 'https://newexample.com/endpoint'
});

Transfer a DID:

await axesConnect.did.transfer({
  tokenId: 123,
  tokenContract: '0x123...'
});

Retrieve DID data:

const didData = await axesConnect.did.getByAddress(userAddress);
// or
const didData = await axesConnect.did.getByDID('did:axes:example');
PreviousToken Bound Account (TBA) ManagementNextVerifiable Credential Management

Last updated 8 months ago