Guest User

Untitled

a guest
Mar 17th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.61 KB | None | 0 0
  1. > [
  2. > {
  3. > "jsonrpc": "2.0",
  4. > "id": 24,
  5. > "method": "eth_getFilterChanges",
  6. > "params": [
  7. > "0x0"
  8. > ]
  9. > }
  10. > ]
  11. < [
  12. < {
  13. < "jsonrpc": "2.0",
  14. < "result": [],
  15. < "id": 24
  16. < }
  17. < ]
  18.  
  19. {
  20. "name": "DemoPoA",
  21. "engine": {
  22. "authorityRound": {
  23. "params": {
  24. "stepDuration": "5",
  25. "validators" : {
  26. "list": [
  27. ]
  28. }
  29. }
  30. }
  31. },
  32. "params": {
  33. "gasLimitBoundDivisor": "0x400",
  34. "maximumExtraDataSize": "0x20",
  35. "minGasLimit": "0x1388",
  36. "networkID" : "0x2323"
  37. },
  38. "genesis": {
  39. "seal": {
  40. "authorityRound": {
  41. "step": "0x0",
  42. "signature": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
  43. }
  44. },
  45. "difficulty": "0x20000",
  46. "gasLimit": "0x5B8D80"
  47. },
  48. "accounts": {
  49. "0x0000000000000000000000000000000000000001": { "balance": "1", "builtin": { "name": "ecrecover", "pricing": { "linear": { "base": 3000, "word": 0 } } } },
  50. "0x0000000000000000000000000000000000000002": { "balance": "1", "builtin": { "name": "sha256", "pricing": { "linear": { "base": 60, "word": 12 } } } },
  51. "0x0000000000000000000000000000000000000003": { "balance": "1", "builtin": { "name": "ripemd160", "pricing": { "linear": { "base": 600, "word": 120 } } } },
  52. "0x0000000000000000000000000000000000000004": { "balance": "1", "builtin": { "name": "identity", "pricing": { "linear": { "base": 15, "word": 3 } } } }
  53. }
  54. }
  55.  
  56. [parity]
  57. chain = "custom_chain.json"
  58. base_path = "./"
  59. [network]
  60. port = 30300
  61. [rpc]
  62. port = 8540
  63. apis = ["web3", "eth", "net", "personal", "parity", "parity_set", "traces", "rpc", "parity_accounts"]
  64. [ui]
  65. port = 8180
  66. [websockets]
  67. port = 8450
  68.  
  69. curl --data '{"jsonrpc":"2.0","method":"parity_newAccountFromPhrase","params":["node0", "node0"],"id":0}' -H "Content-Typ e: application/json" -X POST localhost:8540
  70.  
  71. curl --data '{"jsonrpc":"2.0","method":"parity_newAccountFromPhrase","params":["user", "user"],"id":0}' -H "Content-Typ e: application/json" -X POST localhost:8540
  72.  
  73. {
  74. "name": "DemoPoA",
  75. "engine": {
  76. "authorityRound": {
  77. "params": {
  78. "stepDuration": "5",
  79. "validators" : {
  80. "list": [
  81. "0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e"
  82. ]
  83. }
  84. }
  85. }
  86. },
  87. "params": {
  88. "gasLimitBoundDivisor": "0x400",
  89. "maximumExtraDataSize": "0x20",
  90. "minGasLimit": "0x1388",
  91. "networkID" : "0x2323"
  92. },
  93. "genesis": {
  94. "seal": {
  95. "authorityRound": {
  96. "step": "0x0",
  97. "signature": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
  98. }
  99. },
  100. "difficulty": "0x20000",
  101. "gasLimit": "0x5B8D80"
  102. },
  103. "accounts": {
  104. "0x0000000000000000000000000000000000000001": { "balance": "1", "builtin": { "name": "ecrecover", "pricing": { "linear": { "base": 3000, "word": 0 } } } },
  105. "0x0000000000000000000000000000000000000002": { "balance": "1", "builtin": { "name": "sha256", "pricing": { "linear": { "base": 60, "word": 12 } } } },
  106. "0x0000000000000000000000000000000000000003": { "balance": "1", "builtin": { "name": "ripemd160", "pricing": { "linear": { "base": 600, "word": 120 } } } },
  107. "0x0000000000000000000000000000000000000004": { "balance": "1", "builtin": { "name": "identity", "pricing": { "linear": { "base": 15, "word": 3 } } } },
  108. "0x004ec07d2329997267Ec62b4166639513386F32E": { "balance": "10000000000000000000000" }
  109. }
  110. }
  111.  
  112. [parity]
  113. chain = "custom_chain.json"
  114. base_path = "./"
  115. [network]
  116. port = 30300
  117. [rpc]
  118. port = 8540
  119. apis = ["web3", "eth", "net", "personal", "parity", "parity_set", "traces", "rpc", "parity_accounts"]
  120. [ui]
  121. port = 8180
  122. [websockets]
  123. port = 8450
  124. [account]
  125. password = ["node.pwds"]
  126. [mining]
  127. engine_signer = "0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e"
  128. reseal_on_txs = "none"
  129.  
  130. curl --data '{"method":"personal_unlockAccount","params":["0x004ec07d2329997267Ec62b4166639513386F32E","user",null],"id": 1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8540
  131.  
  132. module.exports = {
  133. networks: {
  134. development: {
  135. host: "localhost",
  136. port: 8540,
  137. network_id: "0x2323",
  138. from: "0x004ec07d2329997267Ec62b4166639513386F32E"
  139. }
  140. }
  141. };
Add Comment
Please, Sign In to add comment