Api & RxApi now created via new (#153)

* Api & RxApi now created via new

* Bump version
This commit is contained in:
Jaco Greeff
2018-09-14 17:32:58 +02:00
committed by GitHub
parent d9ab009917
commit 35b4f9a095
23 changed files with 106 additions and 102 deletions
+2 -2
View File
@@ -25,11 +25,11 @@ npm install --save @polkadot/api
Initialisation -
```js
import createApi from '@polkadot/api';
import Api from '@polkadot/api';
import WsProvider from '@polkadot/api-provider/ws';
const provider = new WsProvider('http://127.0.0.1:9944');
const api = createApi(provider);
const api = new Api(provider);
```
Making calls -