SDK

Overview

The EES SDK is a Node library to interact with the EES protocol in a typescript/javascript environment. It is built with viemarrow-up-right and contains functionality that makes it easy to query data from and interact with the EES contracts among other features. The implementation can be found herearrow-up-right.

Interactions requiring querying on-chain data require the user to supply a viem public client. Some functionality like executing a job or generating a sponsor signature requires the user to additionally supply a viem wallet client.

Installation and setup

The SDK can be installed through npm.

npm i --save ees-sdk

After installation, the SDK contains a class called EESSDK which can be initialized as follows:

import { EESSDK } from 'ees-sdk';
import { publicClient, walletClient } from "./config";

const eesSDK = new EESSDK(publicClient, walletClient);

Now you are ready to start interacting with EES!

triangle-exclamation
circle-info

Note: The EES protocol is currently only deployed on the Base Sepolia network.

Last updated