docs: add examples from polkadot

This commit is contained in:
ian.he
2019-04-12 17:33:55 +12:00
parent 3c7c79f18f
commit f103863fdd
26 changed files with 741 additions and 0 deletions
@@ -0,0 +1,20 @@
{
"name": "rx_01_simple_connect",
"version": "0.2.0",
"description": "Example showing how to connect using a WebSocket",
"main": "index.js",
"author": "Stefie",
"license": "MIT",
"scripts": {
"clean": "rimraf node_modules",
"start": "node index.js"
},
"dependencies": {
"@polkadot/api": "^0.43.6",
"@polkadot/rpc-provider": "^0.43.6"
},
"devDependencies": {
"rimraf": "^2.6.2"
}
}