This guide provides an overview of the IXO development ecosystem, including available SDKs, APIs, and resources to help you build applications on the Spatial Web Stack.

Development Stack

Core SDKs

If you are using the IXO Spatial Web Multiclient SDK, familiarize yourself with the Signing Client to understand how to sign and broadcast transactions. Familiarize yourself with the IXO Blocksync GraphQL queries for retrieving data from the blockchain.

Key Modules

These modules provide specific functionality that can be used independently or in combination to build your application.

Getting Started

1

Set Up Development Environment

Install the necessary SDKs for your project:

# Install core SDKs
npm install @ixo/impactxclient-sdk @ixo/matrixclient-sdk
2

Configure Clients

import { createClient } from "@ixo/impactxclient-sdk";
import { createMatrixClient } from "@ixo/matrixclient-sdk";

// Initialize blockchain client
const chain = await createClient({
  rpcEndpoint: "https://rpc.ixo.world",
  chainId: "ixo-5"
});

// Initialize Matrix client
const matrix = await createMatrixClient({
  baseUrl: "https://matrix.ixo.world",
  accessToken: "YOUR_ACCESS_TOKEN"
});
3

Implement Core Functionality

Use the SDKs to implement your application’s core features:

// Create a digital twin entity
const entity = await chain.createEntity({
  type: "Asset",
  name: "Solar Panel Array",
  data: {
    capacity: "5kW",
    location: "51.5074,-0.1278"
  }
});

// Create a secure data room
const room = await matrix.createRoom({
  name: "Entity Data Room",
  encryption: true
});

// Store data securely
await matrix.sendEvent(room.roomId, "m.room.message", {
  msgtype: "m.data",
  body: JSON.stringify(sensorData)
});

Example Use Cases

The IXO development stack can be used to build a wide range of applications. Here are some example use cases to help you understand how these modules can be used together for specific applications.

Resources

Was this page helpful?