timegraph-ts
v0.0.1-aplha
Published
Tool for communicating with timechain and timegraph
Downloads
2
Readme
TimeGraph Typescript SDK
Implementation of TimeGraph Gateway and Timechain functionalities.
Prerequisites
This project requires NodeJS (version 14 or later) and NPM. Node and NPM are really easy to install. To make sure you have them available on your machine, try running the following command.
$ npm -v && node -v
9.5.1
v18.16.0
Table of contents
Installation
BEFORE YOU INSTALL: please read the prerequisites
To install and set up the library, run:
npm install timegraph-ts
Or if you prefer using Yarn:
yarn add timegraph-ts
Usage
// esm import
import { Client } from 'timegraph-ts';
// cjs import
const { Client } = require('timegraph-ts');
// Client
const client = new Client(<wssurl>);
API
Proxy
createProxyAccount(signer, address, client, proxyData, callback);
removeProxyAccount(signer, address, client, callback);
updateProxyAccount(signer, address, status, client, callback);
getProxyAccounts(client);
Task
getTasks(client);
createTask(client, address, signer, taskMetaData, callback);
Collections
createCollections(client, address, signer, collectionMedata, callback);
getCollections(client);