4.7 Marketplace Dev Kit
Deploy, list, and monetize your AI model on the Developer Marketplace.
Metadata
{
"name": "ETH Predictor",
"description": "LSTM model for ETH price",
"modelFile": "ipfs://Qm.../model.onnx",
"version": "1.0.0",
"price": 1000,
"royaltyBps": 500
}
Publish Script
const registry = new ModelRegistry(signer, registryAddress);
await registry.publishModel(metadataUri, price, royaltyBps);
Front-End Snippet
models.map(m => (
<Card key={m.id}>
<h3>{m.name}</h3>
<p>{m.price} AVM</p>
<button onClick={() => buyModel(m.id)}>Buy</button>
</Card>
));