Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- > [
- > {
- > "jsonrpc": "2.0",
- > "id": 24,
- > "method": "eth_getFilterChanges",
- > "params": [
- > "0x0"
- > ]
- > }
- > ]
- < [
- < {
- < "jsonrpc": "2.0",
- < "result": [],
- < "id": 24
- < }
- < ]
- {
- "name": "DemoPoA",
- "engine": {
- "authorityRound": {
- "params": {
- "stepDuration": "5",
- "validators" : {
- "list": [
- ]
- }
- }
- }
- },
- "params": {
- "gasLimitBoundDivisor": "0x400",
- "maximumExtraDataSize": "0x20",
- "minGasLimit": "0x1388",
- "networkID" : "0x2323"
- },
- "genesis": {
- "seal": {
- "authorityRound": {
- "step": "0x0",
- "signature": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
- }
- },
- "difficulty": "0x20000",
- "gasLimit": "0x5B8D80"
- },
- "accounts": {
- "0x0000000000000000000000000000000000000001": { "balance": "1", "builtin": { "name": "ecrecover", "pricing": { "linear": { "base": 3000, "word": 0 } } } },
- "0x0000000000000000000000000000000000000002": { "balance": "1", "builtin": { "name": "sha256", "pricing": { "linear": { "base": 60, "word": 12 } } } },
- "0x0000000000000000000000000000000000000003": { "balance": "1", "builtin": { "name": "ripemd160", "pricing": { "linear": { "base": 600, "word": 120 } } } },
- "0x0000000000000000000000000000000000000004": { "balance": "1", "builtin": { "name": "identity", "pricing": { "linear": { "base": 15, "word": 3 } } } }
- }
- }
- [parity]
- chain = "custom_chain.json"
- base_path = "./"
- [network]
- port = 30300
- [rpc]
- port = 8540
- apis = ["web3", "eth", "net", "personal", "parity", "parity_set", "traces", "rpc", "parity_accounts"]
- [ui]
- port = 8180
- [websockets]
- port = 8450
- curl --data '{"jsonrpc":"2.0","method":"parity_newAccountFromPhrase","params":["node0", "node0"],"id":0}' -H "Content-Typ e: application/json" -X POST localhost:8540
- curl --data '{"jsonrpc":"2.0","method":"parity_newAccountFromPhrase","params":["user", "user"],"id":0}' -H "Content-Typ e: application/json" -X POST localhost:8540
- {
- "name": "DemoPoA",
- "engine": {
- "authorityRound": {
- "params": {
- "stepDuration": "5",
- "validators" : {
- "list": [
- "0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e"
- ]
- }
- }
- }
- },
- "params": {
- "gasLimitBoundDivisor": "0x400",
- "maximumExtraDataSize": "0x20",
- "minGasLimit": "0x1388",
- "networkID" : "0x2323"
- },
- "genesis": {
- "seal": {
- "authorityRound": {
- "step": "0x0",
- "signature": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
- }
- },
- "difficulty": "0x20000",
- "gasLimit": "0x5B8D80"
- },
- "accounts": {
- "0x0000000000000000000000000000000000000001": { "balance": "1", "builtin": { "name": "ecrecover", "pricing": { "linear": { "base": 3000, "word": 0 } } } },
- "0x0000000000000000000000000000000000000002": { "balance": "1", "builtin": { "name": "sha256", "pricing": { "linear": { "base": 60, "word": 12 } } } },
- "0x0000000000000000000000000000000000000003": { "balance": "1", "builtin": { "name": "ripemd160", "pricing": { "linear": { "base": 600, "word": 120 } } } },
- "0x0000000000000000000000000000000000000004": { "balance": "1", "builtin": { "name": "identity", "pricing": { "linear": { "base": 15, "word": 3 } } } },
- "0x004ec07d2329997267Ec62b4166639513386F32E": { "balance": "10000000000000000000000" }
- }
- }
- [parity]
- chain = "custom_chain.json"
- base_path = "./"
- [network]
- port = 30300
- [rpc]
- port = 8540
- apis = ["web3", "eth", "net", "personal", "parity", "parity_set", "traces", "rpc", "parity_accounts"]
- [ui]
- port = 8180
- [websockets]
- port = 8450
- [account]
- password = ["node.pwds"]
- [mining]
- engine_signer = "0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e"
- reseal_on_txs = "none"
- curl --data '{"method":"personal_unlockAccount","params":["0x004ec07d2329997267Ec62b4166639513386F32E","user",null],"id": 1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8540
- module.exports = {
- networks: {
- development: {
- host: "localhost",
- port: 8540,
- network_id: "0x2323",
- from: "0x004ec07d2329997267Ec62b4166639513386F32E"
- }
- }
- };
Add Comment
Please, Sign In to add comment