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