Skip to content

Commit 7f13523

Browse files
committed
Release: v.1.4.5
1 parent 1a84761 commit 7f13523

21 files changed

Lines changed: 1010 additions & 642 deletions

PascalLiteWallet.dpr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ uses
4949

5050
begin
5151
Application.Initialize;
52-
Application.MainFormOnTaskbar := True;
52+
Application.{%H-}MainFormOnTaskbar := True;
5353
Application.Title := 'Pascal Lite Wallet, Miner & Explorer';
5454
Application.CreateForm(TFRMWallet, FRMWallet);
5555
Application.Run;

README.md

Lines changed: 76 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Exchanges, processing systems, online shops can use console linux Daemon to cont
1414

1515
## Daemon (Linux)
1616

17-
### Compilation steps
17+
## Compilation steps
1818

1919
1. Retrieve new lists of packages and install `gcc` and `make`
2020

@@ -63,6 +63,81 @@ nohup ./pascallited -r &
6363
```
6464
8. Configure daemon settings in `~/PascalLite/pascallite.ini`
6565

66+
# RPC
67+
68+
RPC control port is binded to 127.0.0.1:4003 by default. It serves HTTP requsts with JSON payload.
69+
70+
## getaccount
71+
72+
> Request:
73+
> `{"id": 1, "method": "getaccount", "params": {"account": 5}}`
74+
> Response:
75+
> `{"result":{"account":5,"enc_pubkey":"CA02200068C28485A677EA6520383B2001BF8230EA41FC8A9027EB72B99465B1587FCC97200040120C3178218C53B705698F7C1E7F42DC49EF50B7CA9E5ADC6332F7557C6015","balance":237060.7542,"n_operation":30,"updated_b":16982},"id":1,"jsonrpc":"2.0"}`
76+
77+
## getaccountoperations
78+
79+
> Request:
80+
> `{"id": 1, "method": "getaccountoperations", "params": {"account": 56219}}`
81+
> Response:
82+
> `{"result":[{"block":11345,"time":1488744081,"opblock":1,"optype":1,"account":56219,"optxt":"Transaction Received from 56215-59","amount":15.7603,"fee":0,"balance":15.7603,"payload":"","sender_account":56215,"dest_account":56219,"ophash":"512C000097DB0000010000004642443636433637354444344639443437303034"},{"block":11345,"time":1488744081,"opblock":0,"optype":2,"account":56219,"optxt":"Change Key to secp256k1","amount":0,"fee":0,"balance":0,"payload":"","enc_pubkey":"CA022000AC3ACF6D35C80845417CAAFF28C00CF27A733CC9282B236BD3343D1BA3F0E069200061697AA82AB6947DB7A95689AEDF6595212EBF97FF7D5EEAF9E6C1BF1458FDB6","ophash":"512C00009BDB0000010000003239304434353143344434423844343133463133"}],"id":1,"jsonrpc":"2.0"}`
83+
84+
## getblock
85+
86+
> Request:
87+
> `{"id": 1, "method": "getblock", "params": {"block": 7409}}`
88+
> Response:
89+
> `{"result":{"block":7409,"enc_pubkey":"CA0220005D034AF7777D9E4F7520C0D8827B74F5C97C44FC0E32B7546D87E5CF950C1310200014CAB82FC4E1423EC16EA16E000EDD9EE34D68ACA906656D943FCACE754C3690","reward":50,"fee":0,"ver":1,"ver_a":1,"timestamp":1487727945,"target":694482558,"nonce":2449493167,"payload":"onwork J\\u00C3\\u0084.-----","sbh":"884C88CDECD981C228FF3DD209F7A4259C5F6705D845D93AD78F5603936C73E6","oph":"E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855","pow":"00000000004D9E000C6EEA41C6982216F435F748E11ADA66A7588D213F81A486","operations":0,"hashratekhs":13239559,"maturation":9582},"id":1,"jsonrpc":"2.0"}`
90+
91+
## getblocks
92+
93+
> Request:
94+
> `{"id": 1, "method": "getblocks", "params": {"start": 7409, "max": 2}}`
95+
> Response:
96+
> `{"result":[{"block":7411,"enc_pubkey":"CA022000B793C243DBDB337EF87BD0A205770A0AD4338DF1D3A86CE67AE32361A0F38D492000BA7165AB61FE77D5C93D788CFF1B99FB3A07901CC463A7F58F86270056327F9C","reward":50,"fee":0,"ver":1,"ver_a":1,"timestamp":1487729006,"target":695018620,"nonce":1498074272,"payload":"6969696901","sbh":"71C2B7C26A2D035F4E670A9607327D61EB14F8A94790EA087AE202361B72300C","oph":"E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855","pow":"00000000003D39061F78B3DB9B8C19F3D680535523D04DEE835E69394C4D25C2","operations":0,"hashratekhs":13134639,"maturation":9581},{"block":7410,"enc_pubkey":"CA022000FC794EF7F7AE8BB0AF12A3E90B999C499F9B984362C1FEE13F79F8CD2849FE2820003AEC82CCDC5C183CA80D9DCAB7C8E4EFC3A65C36A3507ED050D5AD0F6D1D4F84","reward":50,"fee":0,"ver":1,"ver_a":1,"timestamp":1487728263,"target":694751936,"nonce":3852888025,"payload":"mrjaekinRX480Rig\\/0----------------","sbh":"68D7075B83B70EDC3AD051E4A05E74365B344A1E0779A0BADBCF478AFEE0DF06","oph":"E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855","pow":"0000000000256F2AAECE262DEF226227FA19466634FDA90ECC638571B4D4AE75","operations":0,"hashratekhs":12992418,"maturation":9582},{"block":7409,"enc_pubkey":"CA0220005D034AF7777D9E4F7520C0D8827B74F5C97C44FC0E32B7546D87E5CF950C1310200014CAB82FC4E1423EC16EA16E000EDD9EE34D68ACA906656D943FCACE754C3690","reward":50,"fee":0,"ver":1,"ver_a":1,"timestamp":1487727945,"target":694482558,"nonce":2449493167,"payload":"onwork J\\u00C3\\u0084.-----","sbh":"884C88CDECD981C228FF3DD209F7A4259C5F6705D845D93AD78F5603936C73E6","oph":"E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855","pow":"00000000004D9E000C6EEA41C6982216F435F748E11ADA66A7588D213F81A486","operations":0,"hashratekhs":13239559,"maturation":9583}],"id":1,"jsonrpc":"2.0"}`
97+
98+
## findoperation
99+
100+
> Request:
101+
> `{"id": 1, "method": "findoperation", "params": {"ophash": "62420000ED480100050000004538314141333541303839453037423739364334"}}`
102+
> Response:
103+
>`{"result":{"block":16994,"time":1490131975,"opblock":7,"optype":1,"account":84205,"optxt":"Transaction Sent to 84469-17","amount":-12.25,"fee":0,"payload":"","sender_account":84205,"dest_account":84469,"ophash":"62420000ED480100050000004538314141333541303839453037423739364334"},"id":1,"jsonrpc":"2.0"}`
104+
105+
## sendto
106+
107+
> Request:
108+
> `{"id": 1, "method": "sendto", "params": {"sender": 84140, "target": 84135, "amount": 0.9, "fee": 0.1}}`
109+
> Response:
110+
> `{"result":{"block":0,"time":0,"opblock":-1,"optype":1,"account":84140,"optxt":"Transaction Sent to 84135-14","amount":-0.9,"fee":-0.1,"balance":0,"payload":"","sender_account":84140,"dest_account":84135,"ophash":"00000000AC480100060000003132413239373946443332333133393542454242"},"id":1,"jsonrpc":"2.0"}`
111+
112+
## addnode
113+
## getwalletaccounts
114+
## getwalletaccountscount
115+
## getwalletcoins
116+
## getwalletpubkeys
117+
## getwalletpubkey
118+
## getblockcount
119+
## getblockoperation
120+
## getblockoperations
121+
## getpendings
122+
## signsendto
123+
## changekey
124+
## changekeys
125+
## signchangekey
126+
## operationsinfo
127+
## executeoperations
128+
## nodestatus
129+
## encodepubkey
130+
## decodepubkey
131+
## payloadencrypt
132+
## payloaddecrypt
133+
## getconnections
134+
## addnewkey
135+
## lock
136+
## unlock
137+
## setwalletpassword
138+
## stopnode
139+
## startnode
140+
66141
# License
67142

68143
Distributed under the MIT software license, see the accompanying file LICENSE or visit http://www.opensource.org/licenses/mit-license.php.

0 commit comments

Comments
 (0)