# TimeGraph Typescript SDK

> Implementation of TimeGraph Gateway and Timechain functionalities.

## Prerequisites

This project requires NodeJS (version 14 or later) and NPM.
[Node](http://nodejs.org/) and [NPM](https://npmjs.org/) are really easy to install.
To make sure you have them available on your machine,
try running the following command.

```sh
$ npm -v && node -v
9.5.1
v18.16.0
```

## Table of contents

## Installation

**BEFORE YOU INSTALL:** please read the [prerequisites](#prerequisites)

To install and set up the library, run:

```sh
npm install timegraph-ts
```

Or if you prefer using Yarn:

```sh
yarn add timegraph-ts
```

## Usage

```tsx
 // esm import
 import { Client } from 'timegraph-ts';

// cjs import
const { Client }  = require('timegraph-ts');

 // Client
const client  = new Client(<wssurl>);

```

## API

### Proxy

```js
createProxyAccount(signer, address, client, proxyData, callback);
removeProxyAccount(signer, address, client, callback);
updateProxyAccount(signer, address, status, client, callback);
getProxyAccounts(client);
```

### Task

```js
getTasks(client);
createTask(client, address, signer, taskMetaData, callback);
```

### Collections

```js
createCollections(client, address, signer, collectionMedata, callback);
getCollections(client);
```

## Contributing

## Credits

## Built With

## Versioning

## Authors

## License
