steem-networks
v1.0.2
Published
dictionary of steem networks
Downloads
1
Readme
steem-networks
exports a dictionary of steem networks.
current fields:
- prefix
- chainId
- rpc
- websocket
usage
// index.js
import steem from '@steemit/steem-js'
import networks from 'steem-networks'
const network = networks[process.env.STEEM_NETWORK]
steem.api.setOptions({ url: network.rpc })
steem.config.set('address_prefix', network.prefix)
steem.config.set('chain_id', network.chainId)
STEEM_NETWORK=main node index.js