@@ -93,14 +93,14 @@ service Wallet {
93
93
};
94
94
95
95
rpc CreateWitness (WitnessCreateContract ) returns (Transaction ) {
96
- option (google.api.http ) = {
97
- post : "/wallet/createwitness"
98
- body : "*"
99
- additional_bindings {
100
- get : "/wallet/createwitness"
101
- }
102
- };
96
+ option (google.api.http ) = {
97
+ post : "/wallet/createwitness"
98
+ body : "*"
99
+ additional_bindings {
100
+ get : "/wallet/createwitness"
101
+ }
103
102
};
103
+ };
104
104
105
105
rpc TransferAsset (TransferAssetContract ) returns (Transaction ) {
106
106
option (google.api.http ) = {
@@ -192,14 +192,14 @@ service Wallet {
192
192
};
193
193
}
194
194
rpc GetAccountNet (Account ) returns (AccountNetMessage ) {
195
- option (google.api.http ) = {
195
+ option (google.api.http ) = {
196
196
post : "/wallet/getaccountnet"
197
197
body : "*"
198
198
additional_bindings {
199
199
get : "/wallet/getaccountnet"
200
200
}
201
201
};
202
- };
202
+ };
203
203
rpc GetAssetIssueByName (BytesMessage ) returns (AssetIssueContract ) {
204
204
option (google.api.http ) = {
205
205
post : "/wallet/getassetissuebyname"
@@ -333,33 +333,6 @@ service WalletSolidity {
333
333
}
334
334
};
335
335
}
336
- rpc GetAssetIssueListByTimestamp (NumberMessage ) returns (AssetIssueList ) {
337
- option (google.api.http ) = {
338
- post : "/walletsolidity/getassetissuelistbytimestamp"
339
- body : "*"
340
- additional_bindings {
341
- get : "/walletsolidity/getassetissuelistbytimestamp"
342
- }
343
- };
344
- }
345
- rpc GetAssetIssueByAccount (Account ) returns (AssetIssueList ) {
346
- option (google.api.http ) = {
347
- post : "/walletsolidity/getassetissuebyaccount"
348
- body : "*"
349
- additional_bindings {
350
- get : "/walletsolidity/getassetissuebyaccount"
351
- }
352
- };
353
- }
354
- rpc GetAssetIssueByName (BytesMessage ) returns (AssetIssueContract ) {
355
- option (google.api.http ) = {
356
- post : "/walletsolidity/getassetissuebyname"
357
- body : "*"
358
- additional_bindings {
359
- get : "/walletsolidity/getassetissuebyname"
360
- }
361
- };
362
- }
363
336
rpc GetNowBlock (EmptyMessage ) returns (Block ) {
364
337
option (google.api.http ) = {
365
338
post : "/walletsolidity/getnowblock"
@@ -378,46 +351,10 @@ service WalletSolidity {
378
351
}
379
352
};
380
353
}
381
- //get transaction
382
- rpc TotalTransaction (EmptyMessage ) returns (NumberMessage ) {
383
- option (google.api.http ) = {
384
- post : "/walletsolidity/totaltransaction"
385
- body : "*"
386
- additional_bindings {
387
- get : "/walletsolidity/totaltransaction"
388
- }
389
- };
390
- }
391
- rpc GetTransactionById (BytesMessage ) returns (Transaction ) {
392
- option (google.api.http ) = {
393
- post : "/walletsolidity/gettransactionbyid"
394
- body : "*"
395
- additional_bindings {
396
- get : "/walletsolidity/gettransactionbyid"
397
- }
398
- };
399
- }
400
354
};
401
355
402
356
service WalletExtension {
403
- rpc GetTransactionsByTimestamp (TimePaginatedMessage ) returns (TransactionList ) {
404
- option (google.api.http ) = {
405
- post : "/walletextension/gettransactionsbytimestamp"
406
- body : "*"
407
- additional_bindings {
408
- get : "/walletextension/gettransactionsbytimestamp"
409
- }
410
- };
411
- }
412
- rpc GetTransactionsByTimestampCount (TimeMessage ) returns (NumberMessage ) {
413
- option (google.api.http ) = {
414
- post : "/walletextension/gettransactionsbytimestampcount"
415
- body : "*"
416
- additional_bindings {
417
- get : "/walletextension/gettransactionsbytimestampcount"
418
- }
419
- };
420
- }
357
+
421
358
rpc GetTransactionsFromThis (AccountPaginated ) returns (TransactionList ) {
422
359
option (google.api.http ) = {
423
360
post : "/walletextension/gettransactionsfromthis"
@@ -436,24 +373,6 @@ service WalletExtension {
436
373
}
437
374
};
438
375
}
439
- rpc GetTransactionsFromThisCount (Account ) returns (NumberMessage ) {
440
- option (google.api.http ) = {
441
- post : "/walletextension/gettransactionsfromthiscount"
442
- body : "*"
443
- additional_bindings {
444
- get : "/walletextension/gettransactionsfromthiscount"
445
- }
446
- };
447
- }
448
- rpc GetTransactionsToThisCount (Account ) returns (NumberMessage ) {
449
- option (google.api.http ) = {
450
- post : "/walletextension/gettransactionstothiscount"
451
- body : "*"
452
- additional_bindings {
453
- get : "/walletextension/gettransactionstothiscount"
454
- }
455
- };
456
- }
457
376
};
458
377
459
378
// the api of tron's db
0 commit comments