defactor.ai
.ai

Tokenize Real-World Assets at Machine Scale

Defactor.ai is the machine-readable interface to the Defactor protocol. Built for AI agents, autonomous systems, and developer toolchains to tokenize, lend, govern, and manage real-world assets on-chain.

Multi-chain
Compliant
Open Source

Defactor Toolkit

Four modules. Complete RWA lifecycle coverage. All machine-accessible.

Agent Quick Start

Get your AI agent interacting with the Defactor protocol in under 10 lines of code. The SDK abstracts blockchain complexity so agents can focus on business logic.

1

Install the SDK

npm install @defactor/defactor-sdk
2

Initialize a Provider

SelfProvider or AssistedProvider
3

Call Contract Methods

Tokenize, lend, borrow, govern
Full Agent Guide
agent-quickstart.tstypescript
1// Agent Quick Start — Defactor SDK
2import { ERC20CollateralPool, SelfProvider } from '@defactor/defactor-sdk'
3
4// 1. Initialize provider
5const provider = new SelfProvider.SelfProvider<ERC20CollateralPool>(
6 ERC20CollateralPool,
7 "0x...contractAddress", // ERC20CollateralPool address
8 "https://polygon-rpc.com", // RPC endpoint
9 "0x...privateKey" // Agent wallet private key
10)
11
12// 2. Query available pools
13const totalPools = await provider.contract.getTotalPools()
14const pools = await provider.contract.getPools(0n, totalPools)
15
16// 3. Lend to a pool
17await provider.contract.lend(poolId, amount)
18
19// 4. Borrow from a pool
20await provider.contract.borrow(poolId, amount)

Machine-Readable Schema

Every page on Defactor.ai includes structured JSON-LD metadata that AI agents can parse to understand available capabilities, endpoints, and data structures without scraping HTML.

JSON-LD Schema (embedded in every page)json
{
  "@context": "https://schema.org",
  "@type": "SoftwareApplication",
  "name": "Defactor",
  "url": "https://defactor.ai",
  "applicationCategory": "DeFi / RWA Tokenization",
  "operatingSystem": "Ethereum, Polygon, Base",
  "offers": {
    "@type": "Offer",
    "category": "Open Source Toolkit"
  },
  "featureList": [
    "ERC-20 Token Issuance",
    "ERC-3643 Compliant Tokens",
    "Lending Pools with RWA Collateral",
    "Community Governance & Staking",
    "Counterparty Pool Management",
    "GraphQL & REST APIs",
    "TypeScript SDK"
  ]
}