All URIs are relative to http://localhost
Method | HTTP request | Description ------------- | ------------- | ------------- GetStatistics | GET /stats | Get statistics of supported currencies Search | GET /search | Returns matching addresses, transactions and labels
Stats GetStatistics()
Get statistics of supported currencies
library(graphsense)
#Get statistics of supported currencies
api.instance <- GeneralApi$new()
api.instance$apiClient$basePath <- 'http://localhost';
result <- api.instance$GetStatistics()
dput(result)
This endpoint does not need any parameter.
No authorization required
| Status code | Description | Response headers | |-------------|-------------|------------------| | 200 | OK | - |
SearchResult Search(q, currency=var.currency, limit=10)
Returns matching addresses, transactions and labels
library(graphsense)
var.q <- 'foo' # character | It can be (the beginning of) an address, a transaction or a label
var.currency <- 'btc' # character | The cryptocurrency (e.g., btc)
var.limit <- 10 # integer | Maximum number of search results
#Returns matching addresses, transactions and labels
api.instance <- GeneralApi$new()
api.instance$apiClient$basePath <- 'http://localhost';
# Configure API key authorization: api_key
api.instance$apiClient$apiKeys['Authorization'] <- 'WRITE_YOUR_API_KEY_HERE';
result <- api.instance$Search(var.q, currency=var.currency, limit=var.limit)
dput(result)
Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- q | character| It can be (the beginning of) an address, a transaction or a label | currency | character| The cryptocurrency (e.g., btc) | [optional] limit | integer| Maximum number of search results | [optional] [default to 10]
| Status code | Description | Response headers | |-------------|-------------|------------------| | 200 | OK | - |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.