Split providers into @polkadot/api-provider (#5)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Polkadot JavaScript API
|
||||
# API wrapper for RPC calls
|
||||
|
||||
[](https://travis-ci.org/polkadot-js/api)
|
||||
[](https://coveralls.io/github/polkadot-js/api?branch=master)
|
||||
@@ -21,8 +21,9 @@ Initialisation -
|
||||
|
||||
```
|
||||
import Api from '@polkadot/api';
|
||||
import HttpProvider from '@polkadot/api-provider/http';
|
||||
|
||||
const provider = new Api.HttpProvider('http://127.0.0.1:9933');
|
||||
const provider = new HttpProvider('http://127.0.0.1:9933');
|
||||
const api = new Api(provider);
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user