JS/TS SDK
A JavaScript SDK for interacting with Eval Engine, a transparent evaluation system built on Chromia blockchain.
Installation
Core Components
Requirements
Node.js >= 18.0.0 (for native fetch support)
Eval Client
The main client used by end users to interact with the Eval Engine. It requires a Chromia private key for initialization.
View examples/user_demo.ts for full implementation
Key Methods:
getEngine()
: Retrieves engine informationsignEvaluateTweetRequest(inputTweet, outputTweet)
: Signs an evaluation requestsubmitEvaluateTweetRequest(txHash)
: Submits a signed evaluation request
To use it, simply:
Engine Client
This is the server implementation of Engine
View examples/engine_server_demo.ts for full implementation
Last updated