@@ -77,6 +77,7 @@ const docTemplate = `{
77
77
},
78
78
{
79
79
"type": "integer",
80
+ "default": 5,
80
81
"description": "Number of items per page",
81
82
"name": "limit",
82
83
"in": "query"
@@ -200,6 +201,7 @@ const docTemplate = `{
200
201
},
201
202
{
202
203
"type": "integer",
204
+ "default": 5,
203
205
"description": "Number of items per page",
204
206
"name": "limit",
205
207
"in": "query"
@@ -265,7 +267,7 @@ const docTemplate = `{
265
267
"BasicAuth": []
266
268
}
267
269
],
268
- "description": "Retrieve logs for a specific contract and event signature",
270
+ "description": "Retrieve logs for a specific contract and event signature. When a valid event signature is provided, the response includes decoded log data with both indexed and non-indexed parameters. ",
269
271
"consumes": [
270
272
"application/json"
271
273
],
@@ -293,7 +295,7 @@ const docTemplate = `{
293
295
},
294
296
{
295
297
"type": "string",
296
- "description": "Event signature",
298
+ "description": "Event signature (e.g., 'Transfer(address,address,uint256)') ",
297
299
"name": "signature",
298
300
"in": "path",
299
301
"required": true
@@ -330,6 +332,7 @@ const docTemplate = `{
330
332
},
331
333
{
332
334
"type": "integer",
335
+ "default": 5,
333
336
"description": "Number of items per page",
334
337
"name": "limit",
335
338
"in": "query"
@@ -359,7 +362,7 @@ const docTemplate = `{
359
362
"data": {
360
363
"type": "array",
361
364
"items": {
362
- "$ref": "#/definitions/handlers.LogModel "
365
+ "$ref": "#/definitions/handlers.DecodedLogModel "
363
366
}
364
367
}
365
368
}
@@ -446,6 +449,7 @@ const docTemplate = `{
446
449
},
447
450
{
448
451
"type": "integer",
452
+ "default": 5,
449
453
"description": "Number of items per page",
450
454
"name": "limit",
451
455
"in": "query"
@@ -569,6 +573,7 @@ const docTemplate = `{
569
573
},
570
574
{
571
575
"type": "integer",
576
+ "default": 5,
572
577
"description": "Number of items per page",
573
578
"name": "limit",
574
579
"in": "query"
@@ -634,7 +639,7 @@ const docTemplate = `{
634
639
"BasicAuth": []
635
640
}
636
641
],
637
- "description": "Retrieve transactions for a specific contract and signature (Not implemented yet) ",
642
+ "description": "Retrieve transactions for a specific contract and signature. When a valid function signature is provided, the response includes decoded transaction data with function inputs. ",
638
643
"consumes": [
639
644
"application/json"
640
645
],
@@ -662,7 +667,7 @@ const docTemplate = `{
662
667
},
663
668
{
664
669
"type": "string",
665
- "description": "Function signature",
670
+ "description": "Function signature (e.g., 'transfer(address,uint256)') ",
666
671
"name": "signature",
667
672
"in": "path",
668
673
"required": true
@@ -699,6 +704,7 @@ const docTemplate = `{
699
704
},
700
705
{
701
706
"type": "integer",
707
+ "default": 5,
702
708
"description": "Number of items per page",
703
709
"name": "limit",
704
710
"in": "query"
@@ -728,7 +734,7 @@ const docTemplate = `{
728
734
"data": {
729
735
"type": "array",
730
736
"items": {
731
- "$ref": "#/definitions/handlers.TransactionModel "
737
+ "$ref": "#/definitions/handlers.DecodedTransactionModel "
732
738
}
733
739
}
734
740
}
@@ -817,9 +823,10 @@ const docTemplate = `{
817
823
"properties": {
818
824
"aggregations": {
819
825
"description": "@Description Aggregation results",
820
- "type": "object",
821
- "additionalProperties": {
822
- "type": "string"
826
+ "type": "array",
827
+ "items": {
828
+ "type": "object",
829
+ "additionalProperties": true
823
830
}
824
831
},
825
832
"data": {
@@ -835,6 +842,169 @@ const docTemplate = `{
835
842
}
836
843
}
837
844
},
845
+ "handlers.DecodedLogDataModel": {
846
+ "type": "object",
847
+ "properties": {
848
+ "inputs": {
849
+ "type": "object",
850
+ "additionalProperties": true
851
+ },
852
+ "name": {
853
+ "type": "string"
854
+ },
855
+ "signature": {
856
+ "type": "string"
857
+ }
858
+ }
859
+ },
860
+ "handlers.DecodedLogModel": {
861
+ "type": "object",
862
+ "properties": {
863
+ "address": {
864
+ "type": "string"
865
+ },
866
+ "block_hash": {
867
+ "type": "string"
868
+ },
869
+ "block_number": {
870
+ "type": "string"
871
+ },
872
+ "block_timestamp": {
873
+ "type": "integer"
874
+ },
875
+ "chain_id": {
876
+ "type": "string"
877
+ },
878
+ "data": {
879
+ "type": "string"
880
+ },
881
+ "decoded": {
882
+ "$ref": "#/definitions/handlers.DecodedLogDataModel"
883
+ },
884
+ "log_index": {
885
+ "type": "integer"
886
+ },
887
+ "topics": {
888
+ "type": "array",
889
+ "items": {
890
+ "type": "string"
891
+ }
892
+ },
893
+ "transaction_hash": {
894
+ "type": "string"
895
+ },
896
+ "transaction_index": {
897
+ "type": "integer"
898
+ }
899
+ }
900
+ },
901
+ "handlers.DecodedTransactionDataModel": {
902
+ "type": "object",
903
+ "properties": {
904
+ "inputs": {
905
+ "type": "object",
906
+ "additionalProperties": true
907
+ },
908
+ "name": {
909
+ "type": "string"
910
+ },
911
+ "signature": {
912
+ "type": "string"
913
+ }
914
+ }
915
+ },
916
+ "handlers.DecodedTransactionModel": {
917
+ "type": "object",
918
+ "properties": {
919
+ "access_list_json": {
920
+ "type": "string"
921
+ },
922
+ "blob_gas_price": {
923
+ "type": "string"
924
+ },
925
+ "blob_gas_used": {
926
+ "type": "integer"
927
+ },
928
+ "block_hash": {
929
+ "type": "string"
930
+ },
931
+ "block_number": {
932
+ "type": "string"
933
+ },
934
+ "block_timestamp": {
935
+ "type": "integer"
936
+ },
937
+ "chain_id": {
938
+ "type": "string"
939
+ },
940
+ "contract_address": {
941
+ "type": "string"
942
+ },
943
+ "cumulative_gas_used": {
944
+ "type": "integer"
945
+ },
946
+ "data": {
947
+ "type": "string"
948
+ },
949
+ "decoded": {
950
+ "$ref": "#/definitions/handlers.DecodedTransactionDataModel"
951
+ },
952
+ "effective_gas_price": {
953
+ "type": "string"
954
+ },
955
+ "from_address": {
956
+ "type": "string"
957
+ },
958
+ "gas": {
959
+ "type": "integer"
960
+ },
961
+ "gas_price": {
962
+ "type": "string"
963
+ },
964
+ "gas_used": {
965
+ "type": "integer"
966
+ },
967
+ "hash": {
968
+ "type": "string"
969
+ },
970
+ "logs_bloom": {
971
+ "type": "string"
972
+ },
973
+ "max_fee_per_gas": {
974
+ "type": "string"
975
+ },
976
+ "max_priority_fee_per_gas": {
977
+ "type": "string"
978
+ },
979
+ "nonce": {
980
+ "type": "integer"
981
+ },
982
+ "r": {
983
+ "type": "string"
984
+ },
985
+ "s": {
986
+ "type": "string"
987
+ },
988
+ "status": {
989
+ "type": "integer"
990
+ },
991
+ "to_address": {
992
+ "type": "string"
993
+ },
994
+ "transaction_index": {
995
+ "type": "integer"
996
+ },
997
+ "transaction_type": {
998
+ "type": "integer"
999
+ },
1000
+ "v": {
1001
+ "type": "string"
1002
+ },
1003
+ "value": {
1004
+ "type": "string"
1005
+ }
1006
+ }
1007
+ },
838
1008
"handlers.LogModel": {
839
1009
"type": "object",
840
1010
"properties": {
@@ -879,6 +1049,12 @@ const docTemplate = `{
879
1049
"access_list_json": {
880
1050
"type": "string"
881
1051
},
1052
+ "blob_gas_price": {
1053
+ "type": "string"
1054
+ },
1055
+ "blob_gas_used": {
1056
+ "type": "integer"
1057
+ },
882
1058
"block_hash": {
883
1059
"type": "string"
884
1060
},
@@ -891,9 +1067,18 @@ const docTemplate = `{
891
1067
"chain_id": {
892
1068
"type": "string"
893
1069
},
1070
+ "contract_address": {
1071
+ "type": "string"
1072
+ },
1073
+ "cumulative_gas_used": {
1074
+ "type": "integer"
1075
+ },
894
1076
"data": {
895
1077
"type": "string"
896
1078
},
1079
+ "effective_gas_price": {
1080
+ "type": "string"
1081
+ },
897
1082
"from_address": {
898
1083
"type": "string"
899
1084
},
@@ -903,9 +1088,15 @@ const docTemplate = `{
903
1088
"gas_price": {
904
1089
"type": "string"
905
1090
},
1091
+ "gas_used": {
1092
+ "type": "integer"
1093
+ },
906
1094
"hash": {
907
1095
"type": "string"
908
1096
},
1097
+ "logs_bloom": {
1098
+ "type": "string"
1099
+ },
909
1100
"max_fee_per_gas": {
910
1101
"type": "string"
911
1102
},
@@ -921,6 +1112,9 @@ const docTemplate = `{
921
1112
"s": {
922
1113
"type": "string"
923
1114
},
1115
+ "status": {
1116
+ "type": "integer"
1117
+ },
924
1118
"to_address": {
925
1119
"type": "string"
926
1120
},
0 commit comments