Skip to content
This repository was archived by the owner on Sep 5, 2025. It is now read-only.

Commit cb7670a

Browse files
committed
generate from spec
1 parent cc840f6 commit cb7670a

File tree

4 files changed

+94
-4
lines changed

4 files changed

+94
-4
lines changed

docs/AddressesApi.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ Get outgoing transactions between two addresses
192192
import time
193193
import graphsense
194194
from graphsense.api import addresses_api
195+
from graphsense.model.height import Height
195196
from graphsense.model.links import Links
196197
from pprint import pprint
197198
# Defining the host is optional and defaults to https://api.ikna.io
@@ -218,6 +219,9 @@ with graphsense.ApiClient(configuration) as api_client:
218219
currency = "btc" # str | The cryptocurrency code (e.g., btc)
219220
address = "addressA" # str | The cryptocurrency address
220221
neighbor = "addressE" # str | Neighbor address
222+
min_height = Height(1) # Height | Return transactions starting from given height (optional)
223+
max_height = Height(2) # Height | Return transactions up to (including) given height (optional)
224+
order = "desc" # str | Sorting order (optional) if omitted the server will use the default value of "desc"
221225
page = "page_example" # str | Resumption token for retrieving the next page (optional)
222226
pagesize = 10 # int | Number of items returned in a single page (optional)
223227

@@ -233,7 +237,7 @@ with graphsense.ApiClient(configuration) as api_client:
233237
# and optional values
234238
try:
235239
# Get outgoing transactions between two addresses
236-
api_response = api_instance.list_address_links(currency, address, neighbor, page=page, pagesize=pagesize)
240+
api_response = api_instance.list_address_links(currency, address, neighbor, min_height=min_height, max_height=max_height, order=order, page=page, pagesize=pagesize)
237241
pprint(api_response)
238242
except graphsense.ApiException as e:
239243
print("Exception when calling AddressesApi->list_address_links: %s\n" % e)
@@ -247,6 +251,9 @@ Name | Type | Description | Notes
247251
**currency** | **str**| The cryptocurrency code (e.g., btc) |
248252
**address** | **str**| The cryptocurrency address |
249253
**neighbor** | **str**| Neighbor address |
254+
**min_height** | **Height**| Return transactions starting from given height | [optional]
255+
**max_height** | **Height**| Return transactions up to (including) given height | [optional]
256+
**order** | **str**| Sorting order | [optional] if omitted the server will use the default value of "desc"
250257
**page** | **str**| Resumption token for retrieving the next page | [optional]
251258
**pagesize** | **int**| Number of items returned in a single page | [optional]
252259
**_preload_content** | **bool** | If False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. | [optional] default is True.
@@ -425,6 +432,7 @@ with graphsense.ApiClient(configuration) as api_client:
425432
direction = "out" # str | Incoming or outgoing transactions (optional)
426433
min_height = Height(1) # Height | Return transactions starting from given height (optional)
427434
max_height = Height(2) # Height | Return transactions up to (including) given height (optional)
435+
order = "desc" # str | Sorting order (optional) if omitted the server will use the default value of "desc"
428436
token_currency = "WETH" # str | Return transactions of given token currency (optional)
429437
page = "page_example" # str | Resumption token for retrieving the next page (optional)
430438
pagesize = 10 # int | Number of items returned in a single page (optional)
@@ -441,7 +449,7 @@ with graphsense.ApiClient(configuration) as api_client:
441449
# and optional values
442450
try:
443451
# Get all transactions an address has been involved in
444-
api_response = api_instance.list_address_txs(currency, address, direction=direction, min_height=min_height, max_height=max_height, token_currency=token_currency, page=page, pagesize=pagesize)
452+
api_response = api_instance.list_address_txs(currency, address, direction=direction, min_height=min_height, max_height=max_height, order=order, token_currency=token_currency, page=page, pagesize=pagesize)
445453
pprint(api_response)
446454
except graphsense.ApiException as e:
447455
print("Exception when calling AddressesApi->list_address_txs: %s\n" % e)
@@ -457,6 +465,7 @@ Name | Type | Description | Notes
457465
**direction** | **str**| Incoming or outgoing transactions | [optional]
458466
**min_height** | **Height**| Return transactions starting from given height | [optional]
459467
**max_height** | **Height**| Return transactions up to (including) given height | [optional]
468+
**order** | **str**| Sorting order | [optional] if omitted the server will use the default value of "desc"
460469
**token_currency** | **str**| Return transactions of given token currency | [optional]
461470
**page** | **str**| Resumption token for retrieving the next page | [optional]
462471
**pagesize** | **int**| Number of items returned in a single page | [optional]

docs/EntitiesApi.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,7 @@ Get transactions between two entities
316316
import time
317317
import graphsense
318318
from graphsense.api import entities_api
319+
from graphsense.model.height import Height
319320
from graphsense.model.links import Links
320321
from pprint import pprint
321322
# Defining the host is optional and defaults to https://api.ikna.io
@@ -342,6 +343,9 @@ with graphsense.ApiClient(configuration) as api_client:
342343
currency = "btc" # str | The cryptocurrency code (e.g., btc)
343344
entity = 67065 # int | The entity ID
344345
neighbor = 123456 # int | Neighbor entity
346+
min_height = Height(1) # Height | Return transactions starting from given height (optional)
347+
max_height = Height(2) # Height | Return transactions up to (including) given height (optional)
348+
order = "desc" # str | Sorting order (optional) if omitted the server will use the default value of "desc"
345349
page = "page_example" # str | Resumption token for retrieving the next page (optional)
346350
pagesize = 10 # int | Number of items returned in a single page (optional)
347351

@@ -357,7 +361,7 @@ with graphsense.ApiClient(configuration) as api_client:
357361
# and optional values
358362
try:
359363
# Get transactions between two entities
360-
api_response = api_instance.list_entity_links(currency, entity, neighbor, page=page, pagesize=pagesize)
364+
api_response = api_instance.list_entity_links(currency, entity, neighbor, min_height=min_height, max_height=max_height, order=order, page=page, pagesize=pagesize)
361365
pprint(api_response)
362366
except graphsense.ApiException as e:
363367
print("Exception when calling EntitiesApi->list_entity_links: %s\n" % e)
@@ -371,6 +375,9 @@ Name | Type | Description | Notes
371375
**currency** | **str**| The cryptocurrency code (e.g., btc) |
372376
**entity** | **int**| The entity ID |
373377
**neighbor** | **int**| Neighbor entity |
378+
**min_height** | **Height**| Return transactions starting from given height | [optional]
379+
**max_height** | **Height**| Return transactions up to (including) given height | [optional]
380+
**order** | **str**| Sorting order | [optional] if omitted the server will use the default value of "desc"
374381
**page** | **str**| Resumption token for retrieving the next page | [optional]
375382
**pagesize** | **int**| Number of items returned in a single page | [optional]
376383
**_preload_content** | **bool** | If False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. | [optional] default is True.
@@ -553,6 +560,7 @@ with graphsense.ApiClient(configuration) as api_client:
553560
direction = "out" # str | Incoming or outgoing transactions (optional)
554561
min_height = Height(1) # Height | Return transactions starting from given height (optional)
555562
max_height = Height(2) # Height | Return transactions up to (including) given height (optional)
563+
order = "desc" # str | Sorting order (optional) if omitted the server will use the default value of "desc"
556564
token_currency = "WETH" # str | Return transactions of given token currency (optional)
557565
page = "page_example" # str | Resumption token for retrieving the next page (optional)
558566
pagesize = 10 # int | Number of items returned in a single page (optional)
@@ -569,7 +577,7 @@ with graphsense.ApiClient(configuration) as api_client:
569577
# and optional values
570578
try:
571579
# Get all transactions an entity has been involved in
572-
api_response = api_instance.list_entity_txs(currency, entity, direction=direction, min_height=min_height, max_height=max_height, token_currency=token_currency, page=page, pagesize=pagesize)
580+
api_response = api_instance.list_entity_txs(currency, entity, direction=direction, min_height=min_height, max_height=max_height, order=order, token_currency=token_currency, page=page, pagesize=pagesize)
573581
pprint(api_response)
574582
except graphsense.ApiException as e:
575583
print("Exception when calling EntitiesApi->list_entity_txs: %s\n" % e)
@@ -585,6 +593,7 @@ Name | Type | Description | Notes
585593
**direction** | **str**| Incoming or outgoing transactions | [optional]
586594
**min_height** | **Height**| Return transactions starting from given height | [optional]
587595
**max_height** | **Height**| Return transactions up to (including) given height | [optional]
596+
**order** | **str**| Sorting order | [optional] if omitted the server will use the default value of "desc"
588597
**token_currency** | **str**| Return transactions of given token currency | [optional]
589598
**page** | **str**| Resumption token for retrieving the next page | [optional]
590599
**pagesize** | **int**| Number of items returned in a single page | [optional]

graphsense/api/addresses_api.py

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,9 @@ def __list_address_links(
320320
neighbor (str): Neighbor address
321321
322322
Keyword Args:
323+
min_height (Height): Return transactions starting from given height. [optional]
324+
max_height (Height): Return transactions up to (including) given height. [optional]
325+
order (str): Sorting order. [optional] if omitted the server will use the default value of "desc"
323326
page (str): Resumption token for retrieving the next page. [optional]
324327
pagesize (int): Number of items returned in a single page. [optional]
325328
_return_http_data_only (bool): response data without head status
@@ -390,6 +393,9 @@ def __list_address_links(
390393
'currency',
391394
'address',
392395
'neighbor',
396+
'min_height',
397+
'max_height',
398+
'order',
393399
'page',
394400
'pagesize',
395401
],
@@ -401,6 +407,7 @@ def __list_address_links(
401407
'nullable': [
402408
],
403409
'enum': [
410+
'order',
404411
],
405412
'validation': [
406413
'pagesize',
@@ -414,6 +421,11 @@ def __list_address_links(
414421
},
415422
},
416423
'allowed_values': {
424+
('order',): {
425+
426+
"ASC": "asc",
427+
"DESC": "desc"
428+
},
417429
},
418430
'openapi_types': {
419431
'currency':
@@ -422,6 +434,12 @@ def __list_address_links(
422434
(str,),
423435
'neighbor':
424436
(str,),
437+
'min_height':
438+
(Height,),
439+
'max_height':
440+
(Height,),
441+
'order':
442+
(str,),
425443
'page':
426444
(str,),
427445
'pagesize':
@@ -431,13 +449,19 @@ def __list_address_links(
431449
'currency': 'currency',
432450
'address': 'address',
433451
'neighbor': 'neighbor',
452+
'min_height': 'min_height',
453+
'max_height': 'max_height',
454+
'order': 'order',
434455
'page': 'page',
435456
'pagesize': 'pagesize',
436457
},
437458
'location_map': {
438459
'currency': 'path',
439460
'address': 'path',
440461
'neighbor': 'query',
462+
'min_height': 'query',
463+
'max_height': 'query',
464+
'order': 'query',
441465
'page': 'query',
442466
'pagesize': 'query',
443467
},
@@ -650,6 +674,7 @@ def __list_address_txs(
650674
direction (str): Incoming or outgoing transactions. [optional]
651675
min_height (Height): Return transactions starting from given height. [optional]
652676
max_height (Height): Return transactions up to (including) given height. [optional]
677+
order (str): Sorting order. [optional] if omitted the server will use the default value of "desc"
653678
token_currency (str): Return transactions of given token currency. [optional]
654679
page (str): Resumption token for retrieving the next page. [optional]
655680
pagesize (int): Number of items returned in a single page. [optional]
@@ -721,6 +746,7 @@ def __list_address_txs(
721746
'direction',
722747
'min_height',
723748
'max_height',
749+
'order',
724750
'token_currency',
725751
'page',
726752
'pagesize',
@@ -733,6 +759,7 @@ def __list_address_txs(
733759
],
734760
'enum': [
735761
'direction',
762+
'order',
736763
],
737764
'validation': [
738765
'pagesize',
@@ -751,6 +778,11 @@ def __list_address_txs(
751778
"IN": "in",
752779
"OUT": "out"
753780
},
781+
('order',): {
782+
783+
"ASC": "asc",
784+
"DESC": "desc"
785+
},
754786
},
755787
'openapi_types': {
756788
'currency':
@@ -763,6 +795,8 @@ def __list_address_txs(
763795
(Height,),
764796
'max_height':
765797
(Height,),
798+
'order':
799+
(str,),
766800
'token_currency':
767801
(str,),
768802
'page':
@@ -776,6 +810,7 @@ def __list_address_txs(
776810
'direction': 'direction',
777811
'min_height': 'min_height',
778812
'max_height': 'max_height',
813+
'order': 'order',
779814
'token_currency': 'token_currency',
780815
'page': 'page',
781816
'pagesize': 'pagesize',
@@ -786,6 +821,7 @@ def __list_address_txs(
786821
'direction': 'query',
787822
'min_height': 'query',
788823
'max_height': 'query',
824+
'order': 'query',
789825
'token_currency': 'query',
790826
'page': 'query',
791827
'pagesize': 'query',

graphsense/api/entities_api.py

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,9 @@ def __list_entity_links(
495495
neighbor (int): Neighbor entity
496496
497497
Keyword Args:
498+
min_height (Height): Return transactions starting from given height. [optional]
499+
max_height (Height): Return transactions up to (including) given height. [optional]
500+
order (str): Sorting order. [optional] if omitted the server will use the default value of "desc"
498501
page (str): Resumption token for retrieving the next page. [optional]
499502
pagesize (int): Number of items returned in a single page. [optional]
500503
_return_http_data_only (bool): response data without head status
@@ -565,6 +568,9 @@ def __list_entity_links(
565568
'currency',
566569
'entity',
567570
'neighbor',
571+
'min_height',
572+
'max_height',
573+
'order',
568574
'page',
569575
'pagesize',
570576
],
@@ -576,6 +582,7 @@ def __list_entity_links(
576582
'nullable': [
577583
],
578584
'enum': [
585+
'order',
579586
],
580587
'validation': [
581588
'pagesize',
@@ -589,6 +596,11 @@ def __list_entity_links(
589596
},
590597
},
591598
'allowed_values': {
599+
('order',): {
600+
601+
"ASC": "asc",
602+
"DESC": "desc"
603+
},
592604
},
593605
'openapi_types': {
594606
'currency':
@@ -597,6 +609,12 @@ def __list_entity_links(
597609
(int,),
598610
'neighbor':
599611
(int,),
612+
'min_height':
613+
(Height,),
614+
'max_height':
615+
(Height,),
616+
'order':
617+
(str,),
600618
'page':
601619
(str,),
602620
'pagesize':
@@ -606,13 +624,19 @@ def __list_entity_links(
606624
'currency': 'currency',
607625
'entity': 'entity',
608626
'neighbor': 'neighbor',
627+
'min_height': 'min_height',
628+
'max_height': 'max_height',
629+
'order': 'order',
609630
'page': 'page',
610631
'pagesize': 'pagesize',
611632
},
612633
'location_map': {
613634
'currency': 'path',
614635
'entity': 'path',
615636
'neighbor': 'query',
637+
'min_height': 'query',
638+
'max_height': 'query',
639+
'order': 'query',
616640
'page': 'query',
617641
'pagesize': 'query',
618642
},
@@ -837,6 +861,7 @@ def __list_entity_txs(
837861
direction (str): Incoming or outgoing transactions. [optional]
838862
min_height (Height): Return transactions starting from given height. [optional]
839863
max_height (Height): Return transactions up to (including) given height. [optional]
864+
order (str): Sorting order. [optional] if omitted the server will use the default value of "desc"
840865
token_currency (str): Return transactions of given token currency. [optional]
841866
page (str): Resumption token for retrieving the next page. [optional]
842867
pagesize (int): Number of items returned in a single page. [optional]
@@ -908,6 +933,7 @@ def __list_entity_txs(
908933
'direction',
909934
'min_height',
910935
'max_height',
936+
'order',
911937
'token_currency',
912938
'page',
913939
'pagesize',
@@ -920,6 +946,7 @@ def __list_entity_txs(
920946
],
921947
'enum': [
922948
'direction',
949+
'order',
923950
],
924951
'validation': [
925952
'pagesize',
@@ -938,6 +965,11 @@ def __list_entity_txs(
938965
"IN": "in",
939966
"OUT": "out"
940967
},
968+
('order',): {
969+
970+
"ASC": "asc",
971+
"DESC": "desc"
972+
},
941973
},
942974
'openapi_types': {
943975
'currency':
@@ -950,6 +982,8 @@ def __list_entity_txs(
950982
(Height,),
951983
'max_height':
952984
(Height,),
985+
'order':
986+
(str,),
953987
'token_currency':
954988
(str,),
955989
'page':
@@ -963,6 +997,7 @@ def __list_entity_txs(
963997
'direction': 'direction',
964998
'min_height': 'min_height',
965999
'max_height': 'max_height',
1000+
'order': 'order',
9661001
'token_currency': 'token_currency',
9671002
'page': 'page',
9681003
'pagesize': 'pagesize',
@@ -973,6 +1008,7 @@ def __list_entity_txs(
9731008
'direction': 'query',
9741009
'min_height': 'query',
9751010
'max_height': 'query',
1011+
'order': 'query',
9761012
'token_currency': 'query',
9771013
'page': 'query',
9781014
'pagesize': 'query',

0 commit comments

Comments
 (0)