3.6 Developer Marketplace
A decentralized marketplace for publishing and monetizing AI models.
π§ Architecture
Creator ββ publishModel() βββΊ ModelRegistry ββΊ IPFS (metadata + ONNX)
β β
Buyer ββ purchaseModel() βββΊ PurchaseMgr ββΊ AVM β Creator + PlatformFee
β
AccessToken issued β IPFS fetchπ» Example
await registry.publishModel("ipfs://.../meta.json", 1000, 500);
await purchaseManager.purchaseModel(modelId);π Benchmarks
Publish gas: ~120k
Purchase gas: ~80k
IPFS fetch: <2 s
π οΈ Steps
Upload metadata + ONNX to IPFS
Use SDK to call
publishModel()+purchaseModel()Manage AccessTokens to unlock downloads