graphsense-python 1.4.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- graphsense-python-1.4.0/LICENSE +23 -0
- graphsense-python-1.4.0/PKG-INFO +15 -0
- graphsense-python-1.4.0/README.md +231 -0
- graphsense-python-1.4.0/graphsense/__init__.py +28 -0
- graphsense-python-1.4.0/graphsense/api/__init__.py +3 -0
- graphsense-python-1.4.0/graphsense/api/addresses_api.py +949 -0
- graphsense-python-1.4.0/graphsense/api/blocks_api.py +296 -0
- graphsense-python-1.4.0/graphsense/api/bulk_api.py +377 -0
- graphsense-python-1.4.0/graphsense/api/entities_api.py +1192 -0
- graphsense-python-1.4.0/graphsense/api/general_api.py +283 -0
- graphsense-python-1.4.0/graphsense/api/rates_api.py +167 -0
- graphsense-python-1.4.0/graphsense/api/tags_api.py +653 -0
- graphsense-python-1.4.0/graphsense/api/tokens_api.py +156 -0
- graphsense-python-1.4.0/graphsense/api/txs_api.py +721 -0
- graphsense-python-1.4.0/graphsense/api_client.py +850 -0
- graphsense-python-1.4.0/graphsense/apis/__init__.py +25 -0
- graphsense-python-1.4.0/graphsense/configuration.py +473 -0
- graphsense-python-1.4.0/graphsense/exceptions.py +160 -0
- graphsense-python-1.4.0/graphsense/model/__init__.py +5 -0
- graphsense-python-1.4.0/graphsense/model/actor.py +302 -0
- graphsense-python-1.4.0/graphsense/model/actor_context.py +298 -0
- graphsense-python-1.4.0/graphsense/model/actors.py +291 -0
- graphsense-python-1.4.0/graphsense/model/address.py +371 -0
- graphsense-python-1.4.0/graphsense/model/address_tag.py +375 -0
- graphsense-python-1.4.0/graphsense/model/address_tag_all_of.py +268 -0
- graphsense-python-1.4.0/graphsense/model/address_tags.py +272 -0
- graphsense-python-1.4.0/graphsense/model/address_tx.py +369 -0
- graphsense-python-1.4.0/graphsense/model/address_tx_utxo.py +308 -0
- graphsense-python-1.4.0/graphsense/model/address_txs.py +272 -0
- graphsense-python-1.4.0/graphsense/model/block.py +292 -0
- graphsense-python-1.4.0/graphsense/model/concept.py +286 -0
- graphsense-python-1.4.0/graphsense/model/currency_stats.py +310 -0
- graphsense-python-1.4.0/graphsense/model/entity.py +374 -0
- graphsense-python-1.4.0/graphsense/model/entity_addresses.py +272 -0
- graphsense-python-1.4.0/graphsense/model/height.py +288 -0
- graphsense-python-1.4.0/graphsense/model/labeled_item_ref.py +268 -0
- graphsense-python-1.4.0/graphsense/model/labeled_item_refs.py +291 -0
- graphsense-python-1.4.0/graphsense/model/link.py +373 -0
- graphsense-python-1.4.0/graphsense/model/link_utxo.py +308 -0
- graphsense-python-1.4.0/graphsense/model/links.py +272 -0
- graphsense-python-1.4.0/graphsense/model/neighbor_address.py +292 -0
- graphsense-python-1.4.0/graphsense/model/neighbor_addresses.py +272 -0
- graphsense-python-1.4.0/graphsense/model/neighbor_entities.py +272 -0
- graphsense-python-1.4.0/graphsense/model/neighbor_entity.py +292 -0
- graphsense-python-1.4.0/graphsense/model/rate.py +268 -0
- graphsense-python-1.4.0/graphsense/model/rates.py +268 -0
- graphsense-python-1.4.0/graphsense/model/search_result.py +282 -0
- graphsense-python-1.4.0/graphsense/model/search_result_by_currency.py +274 -0
- graphsense-python-1.4.0/graphsense/model/search_result_labels.py +285 -0
- graphsense-python-1.4.0/graphsense/model/search_result_leaf.py +276 -0
- graphsense-python-1.4.0/graphsense/model/search_result_level1.py +284 -0
- graphsense-python-1.4.0/graphsense/model/search_result_level2.py +284 -0
- graphsense-python-1.4.0/graphsense/model/search_result_level3.py +284 -0
- graphsense-python-1.4.0/graphsense/model/search_result_level4.py +284 -0
- graphsense-python-1.4.0/graphsense/model/search_result_level5.py +284 -0
- graphsense-python-1.4.0/graphsense/model/search_result_level6.py +284 -0
- graphsense-python-1.4.0/graphsense/model/stats.py +280 -0
- graphsense-python-1.4.0/graphsense/model/tag.py +324 -0
- graphsense-python-1.4.0/graphsense/model/taxonomy.py +268 -0
- graphsense-python-1.4.0/graphsense/model/token_config.py +272 -0
- graphsense-python-1.4.0/graphsense/model/token_configs.py +268 -0
- graphsense-python-1.4.0/graphsense/model/token_values.py +258 -0
- graphsense-python-1.4.0/graphsense/model/tx.py +395 -0
- graphsense-python-1.4.0/graphsense/model/tx_account.py +322 -0
- graphsense-python-1.4.0/graphsense/model/tx_ref.py +274 -0
- graphsense-python-1.4.0/graphsense/model/tx_summary.py +280 -0
- graphsense-python-1.4.0/graphsense/model/tx_utxo.py +336 -0
- graphsense-python-1.4.0/graphsense/model/tx_value.py +274 -0
- graphsense-python-1.4.0/graphsense/model/tx_values.py +291 -0
- graphsense-python-1.4.0/graphsense/model/txs_account.py +291 -0
- graphsense-python-1.4.0/graphsense/model/values.py +274 -0
- graphsense-python-1.4.0/graphsense/model_utils.py +1993 -0
- graphsense-python-1.4.0/graphsense/models/__init__.py +63 -0
- graphsense-python-1.4.0/graphsense/rest.py +293 -0
- graphsense-python-1.4.0/graphsense_python.egg-info/PKG-INFO +15 -0
- graphsense-python-1.4.0/graphsense_python.egg-info/SOURCES.txt +141 -0
- graphsense-python-1.4.0/graphsense_python.egg-info/dependency_links.txt +1 -0
- graphsense-python-1.4.0/graphsense_python.egg-info/requires.txt +2 -0
- graphsense-python-1.4.0/graphsense_python.egg-info/top_level.txt +1 -0
- graphsense-python-1.4.0/setup.cfg +7 -0
- graphsense-python-1.4.0/setup.py +43 -0
- graphsense-python-1.4.0/test/test_actor.py +40 -0
- graphsense-python-1.4.0/test/test_actor_context.py +36 -0
- graphsense-python-1.4.0/test/test_actors.py +38 -0
- graphsense-python-1.4.0/test/test_address.py +44 -0
- graphsense-python-1.4.0/test/test_address_tag.py +40 -0
- graphsense-python-1.4.0/test/test_address_tag_all_of.py +36 -0
- graphsense-python-1.4.0/test/test_address_tags.py +38 -0
- graphsense-python-1.4.0/test/test_address_tx.py +44 -0
- graphsense-python-1.4.0/test/test_address_tx_utxo.py +40 -0
- graphsense-python-1.4.0/test/test_address_txs.py +38 -0
- graphsense-python-1.4.0/test/test_addresses_api.py +71 -0
- graphsense-python-1.4.0/test/test_block.py +38 -0
- graphsense-python-1.4.0/test/test_blocks_api.py +43 -0
- graphsense-python-1.4.0/test/test_bulk_api.py +43 -0
- graphsense-python-1.4.0/test/test_concept.py +36 -0
- graphsense-python-1.4.0/test/test_currency_stats.py +36 -0
- graphsense-python-1.4.0/test/test_entities_api.py +78 -0
- graphsense-python-1.4.0/test/test_entity.py +46 -0
- graphsense-python-1.4.0/test/test_entity_addresses.py +38 -0
- graphsense-python-1.4.0/test/test_general_api.py +43 -0
- graphsense-python-1.4.0/test/test_height.py +36 -0
- graphsense-python-1.4.0/test/test_labeled_item_ref.py +36 -0
- graphsense-python-1.4.0/test/test_labeled_item_refs.py +38 -0
- graphsense-python-1.4.0/test/test_link.py +44 -0
- graphsense-python-1.4.0/test/test_link_utxo.py +40 -0
- graphsense-python-1.4.0/test/test_links.py +38 -0
- graphsense-python-1.4.0/test/test_neighbor_address.py +42 -0
- graphsense-python-1.4.0/test/test_neighbor_addresses.py +38 -0
- graphsense-python-1.4.0/test/test_neighbor_entities.py +38 -0
- graphsense-python-1.4.0/test/test_neighbor_entity.py +42 -0
- graphsense-python-1.4.0/test/test_rate.py +36 -0
- graphsense-python-1.4.0/test/test_rates.py +40 -0
- graphsense-python-1.4.0/test/test_rates_api.py +36 -0
- graphsense-python-1.4.0/test/test_search_result.py +42 -0
- graphsense-python-1.4.0/test/test_search_result_by_currency.py +36 -0
- graphsense-python-1.4.0/test/test_search_result_labels.py +36 -0
- graphsense-python-1.4.0/test/test_search_result_leaf.py +40 -0
- graphsense-python-1.4.0/test/test_search_result_level1.py +42 -0
- graphsense-python-1.4.0/test/test_search_result_level2.py +42 -0
- graphsense-python-1.4.0/test/test_search_result_level3.py +42 -0
- graphsense-python-1.4.0/test/test_search_result_level4.py +42 -0
- graphsense-python-1.4.0/test/test_search_result_level5.py +42 -0
- graphsense-python-1.4.0/test/test_search_result_level6.py +42 -0
- graphsense-python-1.4.0/test/test_stats.py +38 -0
- graphsense-python-1.4.0/test/test_tag.py +36 -0
- graphsense-python-1.4.0/test/test_tags_api.py +64 -0
- graphsense-python-1.4.0/test/test_taxonomy.py +36 -0
- graphsense-python-1.4.0/test/test_token_config.py +36 -0
- graphsense-python-1.4.0/test/test_token_configs.py +38 -0
- graphsense-python-1.4.0/test/test_token_values.py +38 -0
- graphsense-python-1.4.0/test/test_tokens_api.py +36 -0
- graphsense-python-1.4.0/test/test_tx.py +46 -0
- graphsense-python-1.4.0/test/test_tx_account.py +40 -0
- graphsense-python-1.4.0/test/test_tx_ref.py +36 -0
- graphsense-python-1.4.0/test/test_tx_summary.py +38 -0
- graphsense-python-1.4.0/test/test_tx_utxo.py +42 -0
- graphsense-python-1.4.0/test/test_tx_value.py +38 -0
- graphsense-python-1.4.0/test/test_tx_values.py +38 -0
- graphsense-python-1.4.0/test/test_txs_account.py +38 -0
- graphsense-python-1.4.0/test/test_txs_api.py +64 -0
- graphsense-python-1.4.0/test/test_values.py +38 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Iknaio Cryptoasset Analytics GmbH
|
|
4
|
+
Copyright (c) AIT Austrian Institute of Technology
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
in the Software without restriction, including without limitation the rights
|
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
furnished to do so, subject to the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
SOFTWARE.
|
|
23
|
+
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: graphsense-python
|
|
3
|
+
Version: 1.4.0
|
|
4
|
+
Summary: GraphSense API
|
|
5
|
+
Home-page:
|
|
6
|
+
Author: Iknaio Cryptoasset Analytics GmbH
|
|
7
|
+
Author-email: contact@ikna.io
|
|
8
|
+
Keywords: OpenAPI,OpenAPI-Generator,GraphSense API
|
|
9
|
+
Requires-Python: >=3.6
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Requires-Dist: urllib3>=1.25.3
|
|
12
|
+
Requires-Dist: python-dateutil
|
|
13
|
+
|
|
14
|
+
GraphSense API provides programmatic access to various ledgers' addresses, entities, blocks, transactions and tags for automated and highly efficient forensics tasks.
|
|
15
|
+
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
# graphsense-python
|
|
2
|
+
GraphSense API provides programmatic access to various ledgers' addresses, entities, blocks, transactions and tags for automated and highly efficient forensics tasks.
|
|
3
|
+
|
|
4
|
+
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
5
|
+
|
|
6
|
+
- API version: 1.4.0
|
|
7
|
+
- Package version: 1.4.0
|
|
8
|
+
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
|
9
|
+
|
|
10
|
+
## Requirements.
|
|
11
|
+
|
|
12
|
+
Python >= 3.6
|
|
13
|
+
|
|
14
|
+
## Installation & Usage
|
|
15
|
+
### pip install
|
|
16
|
+
|
|
17
|
+
If the python package is hosted on a repository, you can install directly using:
|
|
18
|
+
|
|
19
|
+
```sh
|
|
20
|
+
pip install git+https://github.com/graphsense/graphsense-python.git
|
|
21
|
+
```
|
|
22
|
+
(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/graphsense/graphsense-python.git`)
|
|
23
|
+
|
|
24
|
+
Then import the package:
|
|
25
|
+
```python
|
|
26
|
+
import graphsense
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### Setuptools
|
|
30
|
+
|
|
31
|
+
Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
|
|
32
|
+
|
|
33
|
+
```sh
|
|
34
|
+
python setup.py install --user
|
|
35
|
+
```
|
|
36
|
+
(or `sudo python setup.py install` to install the package for all users)
|
|
37
|
+
|
|
38
|
+
Then import the package:
|
|
39
|
+
```python
|
|
40
|
+
import graphsense
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
### Generate from OpenAPI specification
|
|
45
|
+
|
|
46
|
+
In order to generate the client from [Graphsense's OpenAPI specification](https://github.com/graphsense/graphsense-openapi) run the [OpenAPI Generator CLI](https://openapi-generator.tech/), eg. using docker:
|
|
47
|
+
|
|
48
|
+
```
|
|
49
|
+
URL=https://github.com/graphsense/graphsense-openapi/blob/master/graphsense.yaml
|
|
50
|
+
docker run --rm \
|
|
51
|
+
-v "${PWD}:/build" \
|
|
52
|
+
openapitools/openapi-generator-cli:v5.1.1 \
|
|
53
|
+
generate -i "$URL" \
|
|
54
|
+
-g python \
|
|
55
|
+
-o /build
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Getting Started
|
|
59
|
+
|
|
60
|
+
Please follow the [installation procedure](#installation--usage) and then run the following:
|
|
61
|
+
|
|
62
|
+
```python
|
|
63
|
+
|
|
64
|
+
import time
|
|
65
|
+
import graphsense
|
|
66
|
+
from pprint import pprint
|
|
67
|
+
from graphsense.api import addresses_api
|
|
68
|
+
from graphsense.model.address import Address
|
|
69
|
+
from graphsense.model.address_tags import AddressTags
|
|
70
|
+
from graphsense.model.address_txs import AddressTxs
|
|
71
|
+
from graphsense.model.entity import Entity
|
|
72
|
+
from graphsense.model.height import Height
|
|
73
|
+
from graphsense.model.links import Links
|
|
74
|
+
from graphsense.model.neighbor_addresses import NeighborAddresses
|
|
75
|
+
# Defining the host is optional and defaults to https://api.ikna.io
|
|
76
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
77
|
+
configuration = graphsense.Configuration(
|
|
78
|
+
host = "https://api.ikna.io"
|
|
79
|
+
)
|
|
80
|
+
|
|
81
|
+
# The client must configure the authentication and authorization parameters
|
|
82
|
+
# in accordance with the API server security policy.
|
|
83
|
+
# Examples for each auth method are provided below, use the example that
|
|
84
|
+
# satisfies your auth use case.
|
|
85
|
+
|
|
86
|
+
# Configure API key authorization: api_key
|
|
87
|
+
configuration.api_key['api_key'] = 'YOUR_API_KEY'
|
|
88
|
+
|
|
89
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
90
|
+
# configuration.api_key_prefix['api_key'] = 'Bearer'
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
# Enter a context with an instance of the API client
|
|
94
|
+
with graphsense.ApiClient(configuration) as api_client:
|
|
95
|
+
# Create an instance of the API class
|
|
96
|
+
api_instance = addresses_api.AddressesApi(api_client)
|
|
97
|
+
currency = "btc" # str | The cryptocurrency code (e.g., btc)
|
|
98
|
+
address = "addressA" # str | The cryptocurrency address
|
|
99
|
+
|
|
100
|
+
try:
|
|
101
|
+
# Get an address
|
|
102
|
+
api_response = api_instance.get_address(currency, address)
|
|
103
|
+
pprint(api_response)
|
|
104
|
+
except graphsense.ApiException as e:
|
|
105
|
+
print("Exception when calling AddressesApi->get_address: %s\n" % e)
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
## Documentation for API Endpoints
|
|
109
|
+
|
|
110
|
+
All URIs are relative to *https://api.ikna.io*
|
|
111
|
+
|
|
112
|
+
Class | Method | HTTP request | Description
|
|
113
|
+
------------ | ------------- | ------------- | -------------
|
|
114
|
+
*AddressesApi* | [**get_address**](docs/AddressesApi.md#get_address) | **GET** /{currency}/addresses/{address} | Get an address
|
|
115
|
+
*AddressesApi* | [**get_address_entity**](docs/AddressesApi.md#get_address_entity) | **GET** /{currency}/addresses/{address}/entity | Get the entity of an address
|
|
116
|
+
*AddressesApi* | [**list_address_links**](docs/AddressesApi.md#list_address_links) | **GET** /{currency}/addresses/{address}/links | Get outgoing transactions between two addresses
|
|
117
|
+
*AddressesApi* | [**list_address_neighbors**](docs/AddressesApi.md#list_address_neighbors) | **GET** /{currency}/addresses/{address}/neighbors | Get an address's neighbors in the address graph
|
|
118
|
+
*AddressesApi* | [**list_address_txs**](docs/AddressesApi.md#list_address_txs) | **GET** /{currency}/addresses/{address}/txs | Get all transactions an address has been involved in
|
|
119
|
+
*AddressesApi* | [**list_tags_by_address**](docs/AddressesApi.md#list_tags_by_address) | **GET** /{currency}/addresses/{address}/tags | Get attribution tags for a given address
|
|
120
|
+
*BlocksApi* | [**get_block**](docs/BlocksApi.md#get_block) | **GET** /{currency}/blocks/{height} | Get a block by its height
|
|
121
|
+
*BlocksApi* | [**list_block_txs**](docs/BlocksApi.md#list_block_txs) | **GET** /{currency}/blocks/{height}/txs | Get block transactions
|
|
122
|
+
*BulkApi* | [**bulk_csv**](docs/BulkApi.md#bulk_csv) | **POST** /{currency}/bulk.csv/{operation} | Get data as CSV in bulk
|
|
123
|
+
*BulkApi* | [**bulk_json**](docs/BulkApi.md#bulk_json) | **POST** /{currency}/bulk.json/{operation} | Get data as JSON in bulk
|
|
124
|
+
*EntitiesApi* | [**get_entity**](docs/EntitiesApi.md#get_entity) | **GET** /{currency}/entities/{entity} | Get an entity
|
|
125
|
+
*EntitiesApi* | [**list_address_tags_by_entity**](docs/EntitiesApi.md#list_address_tags_by_entity) | **GET** /{currency}/entities/{entity}/tags | Get address tags for a given entity
|
|
126
|
+
*EntitiesApi* | [**list_entity_addresses**](docs/EntitiesApi.md#list_entity_addresses) | **GET** /{currency}/entities/{entity}/addresses | Get an entity's addresses
|
|
127
|
+
*EntitiesApi* | [**list_entity_links**](docs/EntitiesApi.md#list_entity_links) | **GET** /{currency}/entities/{entity}/links | Get transactions between two entities
|
|
128
|
+
*EntitiesApi* | [**list_entity_neighbors**](docs/EntitiesApi.md#list_entity_neighbors) | **GET** /{currency}/entities/{entity}/neighbors | Get an entity's direct neighbors
|
|
129
|
+
*EntitiesApi* | [**list_entity_txs**](docs/EntitiesApi.md#list_entity_txs) | **GET** /{currency}/entities/{entity}/txs | Get all transactions an entity has been involved in
|
|
130
|
+
*EntitiesApi* | [**search_entity_neighbors**](docs/EntitiesApi.md#search_entity_neighbors) | **GET** /{currency}/entities/{entity}/search | Search deeply for matching neighbors
|
|
131
|
+
*GeneralApi* | [**get_statistics**](docs/GeneralApi.md#get_statistics) | **GET** /stats | Get statistics of supported currencies
|
|
132
|
+
*GeneralApi* | [**search**](docs/GeneralApi.md#search) | **GET** /search | Returns matching addresses, transactions and labels
|
|
133
|
+
*RatesApi* | [**get_exchange_rates**](docs/RatesApi.md#get_exchange_rates) | **GET** /{currency}/rates/{height} | Returns exchange rate for a given height
|
|
134
|
+
*TagsApi* | [**get_actor**](docs/TagsApi.md#get_actor) | **GET** /tags/actors/{actor} | Returns an actor given its unique id or (unique) label
|
|
135
|
+
*TagsApi* | [**get_actor_tags**](docs/TagsApi.md#get_actor_tags) | **GET** /tags/actors/{actor}/tags | Returns the address tags for a given actor
|
|
136
|
+
*TagsApi* | [**list_address_tags**](docs/TagsApi.md#list_address_tags) | **GET** /tags | Returns address tags associated with a given label
|
|
137
|
+
*TagsApi* | [**list_concepts**](docs/TagsApi.md#list_concepts) | **GET** /tags/taxonomies/{taxonomy}/concepts | Returns the supported concepts of a taxonomy
|
|
138
|
+
*TagsApi* | [**list_taxonomies**](docs/TagsApi.md#list_taxonomies) | **GET** /tags/taxonomies | Returns the supported taxonomies
|
|
139
|
+
*TokensApi* | [**list_supported_tokens**](docs/TokensApi.md#list_supported_tokens) | **GET** /{currency}/supported_tokens | Returns a list of supported token (sub)currencies.
|
|
140
|
+
*TxsApi* | [**get_spending_txs**](docs/TxsApi.md#get_spending_txs) | **GET** /{currency}/txs/{tx_hash}/spending | Returns in which other transaction's outputs the asked transaction spent. Think backwards references is the transaction graph. This endpoint is only available for utxo like currencies.
|
|
141
|
+
*TxsApi* | [**get_spent_in_txs**](docs/TxsApi.md#get_spent_in_txs) | **GET** /{currency}/txs/{tx_hash}/spent_in | Returns in which other transactions, outputs from the asked transaction are spent. Think forward references in the transaction graph. This endpoint is only available for utxo like currencies.
|
|
142
|
+
*TxsApi* | [**get_tx**](docs/TxsApi.md#get_tx) | **GET** /{currency}/txs/{tx_hash} | Returns details of a specific transaction identified by its hash.
|
|
143
|
+
*TxsApi* | [**get_tx_io**](docs/TxsApi.md#get_tx_io) | **GET** /{currency}/txs/{tx_hash}/{io} | Returns input/output values of a specific transaction identified by its hash.
|
|
144
|
+
*TxsApi* | [**list_token_txs**](docs/TxsApi.md#list_token_txs) | **GET** /{currency}/token_txs/{tx_hash} | Returns all token transactions in a given transaction
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
## Documentation For Models
|
|
148
|
+
|
|
149
|
+
- [Actor](docs/Actor.md)
|
|
150
|
+
- [ActorContext](docs/ActorContext.md)
|
|
151
|
+
- [Actors](docs/Actors.md)
|
|
152
|
+
- [Address](docs/Address.md)
|
|
153
|
+
- [AddressTag](docs/AddressTag.md)
|
|
154
|
+
- [AddressTagAllOf](docs/AddressTagAllOf.md)
|
|
155
|
+
- [AddressTags](docs/AddressTags.md)
|
|
156
|
+
- [AddressTx](docs/AddressTx.md)
|
|
157
|
+
- [AddressTxUtxo](docs/AddressTxUtxo.md)
|
|
158
|
+
- [AddressTxs](docs/AddressTxs.md)
|
|
159
|
+
- [Block](docs/Block.md)
|
|
160
|
+
- [Concept](docs/Concept.md)
|
|
161
|
+
- [CurrencyStats](docs/CurrencyStats.md)
|
|
162
|
+
- [Entity](docs/Entity.md)
|
|
163
|
+
- [EntityAddresses](docs/EntityAddresses.md)
|
|
164
|
+
- [Height](docs/Height.md)
|
|
165
|
+
- [LabeledItemRef](docs/LabeledItemRef.md)
|
|
166
|
+
- [LabeledItemRefs](docs/LabeledItemRefs.md)
|
|
167
|
+
- [Link](docs/Link.md)
|
|
168
|
+
- [LinkUtxo](docs/LinkUtxo.md)
|
|
169
|
+
- [Links](docs/Links.md)
|
|
170
|
+
- [NeighborAddress](docs/NeighborAddress.md)
|
|
171
|
+
- [NeighborAddresses](docs/NeighborAddresses.md)
|
|
172
|
+
- [NeighborEntities](docs/NeighborEntities.md)
|
|
173
|
+
- [NeighborEntity](docs/NeighborEntity.md)
|
|
174
|
+
- [Rate](docs/Rate.md)
|
|
175
|
+
- [Rates](docs/Rates.md)
|
|
176
|
+
- [SearchResult](docs/SearchResult.md)
|
|
177
|
+
- [SearchResultByCurrency](docs/SearchResultByCurrency.md)
|
|
178
|
+
- [SearchResultLabels](docs/SearchResultLabels.md)
|
|
179
|
+
- [SearchResultLeaf](docs/SearchResultLeaf.md)
|
|
180
|
+
- [SearchResultLevel1](docs/SearchResultLevel1.md)
|
|
181
|
+
- [SearchResultLevel2](docs/SearchResultLevel2.md)
|
|
182
|
+
- [SearchResultLevel3](docs/SearchResultLevel3.md)
|
|
183
|
+
- [SearchResultLevel4](docs/SearchResultLevel4.md)
|
|
184
|
+
- [SearchResultLevel5](docs/SearchResultLevel5.md)
|
|
185
|
+
- [SearchResultLevel6](docs/SearchResultLevel6.md)
|
|
186
|
+
- [Stats](docs/Stats.md)
|
|
187
|
+
- [Tag](docs/Tag.md)
|
|
188
|
+
- [Taxonomy](docs/Taxonomy.md)
|
|
189
|
+
- [TokenConfig](docs/TokenConfig.md)
|
|
190
|
+
- [TokenConfigs](docs/TokenConfigs.md)
|
|
191
|
+
- [TokenValues](docs/TokenValues.md)
|
|
192
|
+
- [Tx](docs/Tx.md)
|
|
193
|
+
- [TxAccount](docs/TxAccount.md)
|
|
194
|
+
- [TxRef](docs/TxRef.md)
|
|
195
|
+
- [TxSummary](docs/TxSummary.md)
|
|
196
|
+
- [TxUtxo](docs/TxUtxo.md)
|
|
197
|
+
- [TxValue](docs/TxValue.md)
|
|
198
|
+
- [TxValues](docs/TxValues.md)
|
|
199
|
+
- [TxsAccount](docs/TxsAccount.md)
|
|
200
|
+
- [Values](docs/Values.md)
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
## Documentation For Authorization
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
## api_key
|
|
207
|
+
|
|
208
|
+
- **Type**: API key
|
|
209
|
+
- **API key parameter name**: Authorization
|
|
210
|
+
- **Location**: HTTP header
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
## Examples
|
|
214
|
+
|
|
215
|
+
In `./examples` you can find example Python scripts and [Jupyter](https://jupyter.org/) notebooks demonstrating how to use the GraphSense Python API. Please Follow these setup instructions to run them:
|
|
216
|
+
|
|
217
|
+
Setup a Python environment with [Anaconda](https://www.anaconda.com/products/distribution):
|
|
218
|
+
|
|
219
|
+
conda env create -f environment.yml
|
|
220
|
+
conda activate graphsense-python
|
|
221
|
+
|
|
222
|
+
Copy the config temp file and enter your Iknaio API key
|
|
223
|
+
|
|
224
|
+
cp config.json.tmp config.json
|
|
225
|
+
vi config.json
|
|
226
|
+
|
|
227
|
+
Run the jupyter notebooks
|
|
228
|
+
|
|
229
|
+
jupyter notebook
|
|
230
|
+
|
|
231
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# flake8: noqa
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
GraphSense API
|
|
5
|
+
|
|
6
|
+
GraphSense API provides programmatic access to various ledgers' addresses, entities, blocks, transactions and tags for automated and highly efficient forensics tasks. # noqa: E501
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.4.0
|
|
9
|
+
Contact: contact@ikna.io
|
|
10
|
+
Generated by: https://openapi-generator.tech
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
__version__ = "1.4.0"
|
|
15
|
+
|
|
16
|
+
# import ApiClient
|
|
17
|
+
from graphsense.api_client import ApiClient
|
|
18
|
+
|
|
19
|
+
# import Configuration
|
|
20
|
+
from graphsense.configuration import Configuration
|
|
21
|
+
|
|
22
|
+
# import exceptions
|
|
23
|
+
from graphsense.exceptions import OpenApiException
|
|
24
|
+
from graphsense.exceptions import ApiAttributeError
|
|
25
|
+
from graphsense.exceptions import ApiTypeError
|
|
26
|
+
from graphsense.exceptions import ApiValueError
|
|
27
|
+
from graphsense.exceptions import ApiKeyError
|
|
28
|
+
from graphsense.exceptions import ApiException
|