diff --git a/api-client/package.json b/api-client/package.json index 1f81cedb2..2cc306af4 100644 --- a/api-client/package.json +++ b/api-client/package.json @@ -1,6 +1,6 @@ { "name": "tfgrid-api-client", - "version": "0.0.1-beta.2", + "version": "0.0.1-beta.4", "description": "API client for the TF Grid", "main": "index.js", "scripts": { @@ -9,7 +9,7 @@ "author": "", "license": "ISC", "dependencies": { - "@polkadot/api": "^3.4.1", + "@polkadot/api": "^3.5.1", "bip39": "^3.0.3", "bn.js": "^5.1.3" }, diff --git a/api-client/readme.md b/api-client/readme.md index 85696de57..5cdfafe6b 100644 --- a/api-client/readme.md +++ b/api-client/readme.md @@ -18,13 +18,15 @@ Available methods: inits the client and returns a promise ```js +const Client = require('tfgrid-api-client') + const url = "urlToWebsocket" const mnemonic = "some words" -const cli = new Client(url, mnemonic) +const client = new Client(url, mnemonic) try { - await cli.init() + await client.init() } catch (err) { return err }