A payment system for erc20 token based on Parity RPC API
Install Parity from Parity Releases
git clone https://github.com/ccns/ccns-token-pay-server
Edit misc\config-sample.toml
and save it to %AppData%\Parity\Ethereum\config.toml
The sample config file is setup for ropsten testnet. Create your own config by Parity Config Generator and see Configuring Parity if you have no idea for the configurations.
If you want to setup your own config file, remeber to turn on personal
and parity_accounts
for RPC API. See JSONRPC
npm install
npm start
Returns version information of all related app.
GET
api/versions
None
None
{
"api":"0.20.2",
"node":"Parity//v1.7.2-beta-9f47909-20170918/x86_64-windows-msvc/rustc1.19.0",
"network":"3",
"ethereum":"63"
}
Returns the balance of specific address (must be in the Parity wallet list).
GET
api/balance
- address - Ethereum address in hexademical
None
"9999000000"
- Security issue about the user password storage.