All URIs are relative to http://localhost
Method | HTTP request | Description ------------- | ------------- | ------------- GetBlock | GET /{currency}/blocks/{height} | Get a block by its height ListBlockTxs | GET /{currency}/blocks/{height}/txs | Get block transactions
Block GetBlock(currency, height)
Get a block by its height
library(graphsense)
var.currency <- 'btc' # character | The cryptocurrency code (e.g., btc)
var.height <- 1 # integer | The block height
#Get a block by its height
api.instance <- BlocksApi$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$GetBlock(var.currency, var.height)
dput(result)
Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- currency | character| The cryptocurrency code (e.g., btc) | height | integer| The block height |
| Status code | Description | Response headers | |-------------|-------------|------------------| | 200 | OK | - |
array[Tx] ListBlockTxs(currency, height)
Get block transactions
library(graphsense)
var.currency <- 'btc' # character | The cryptocurrency code (e.g., btc)
var.height <- 1 # integer | The block height
#Get block transactions
api.instance <- BlocksApi$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$ListBlockTxs(var.currency, var.height)
dput(result)
Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- currency | character| The cryptocurrency code (e.g., btc) | height | integer| The block height |
| 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.