tari_indexer (0.25.3)

Download OpenAPI specification:

License: BSD-3-Clause

The Tari indexer implementation

handlers::misc

get_epoch_manager_stats

Get epoch manager stats

Responses

Response samples

Content type
application/json
{
  • "current_block_hash": "string",
  • "current_block_height": 0,
  • "current_epoch": 0
}

get_identity

Get indexer network identity information

Responses

Response samples

Content type
application/json
{
  • "peer_id": "string",
  • "public_addresses": [
    ],
  • "public_key": "string"
}

wait_until_ready

Request will return an empty result when the indexer is ready to serve requests. This may take an indefinite amount of time after startup.

handlers::indexer_events

sse_events

SSE events

handlers::network

get

Get network info

get_connections

Get active peer connections

Responses

Response samples

Content type
application/json
{
  • "connections": [
    ]
}

get_network_sync_stats

Get network sync stats

Responses

Response samples

Content type
application/json
{
  • "network_desc": {
    },
  • "sync_progress": { }
}

handlers::nfts

get_non_fungibles

Get non-fungibles by resource address

Request Body schema: application/json
required
address
required
string
end_index
required
integer <int64> >= 0
start_index
required
integer <int64> >= 0

Responses

Request samples

Content type
application/json
{
  • "address": "string",
  • "end_index": 0,
  • "start_index": 0
}

Response samples

Content type
application/json
{
  • "non_fungibles": [
    ]
}

handlers::resources

get_resource

Fetches a resource by ID

Responses

Response samples

Content type
application/json
{
  • "resource": { },
  • "total_supply": "string",
  • "version": 0
}

handlers::substates

fetch_substates

Fetches several substates by their IDs

Responses

Response samples

Content type
application/json
{
  • "substates": {
    }
}

get_substate

Fetches a substate by ID

path Parameters
substate_id
required
string

The substate ID to fetch

query Parameters
local_search_only
required
boolean

If true, only search local storage for the substate

version
integer <int32> >= 0

Minimum version of the substate to fetch

Responses

Response samples

Content type
application/json
{
  • "substate": { },
  • "version": 0
}

handlers::templates

list_cached_templates

List all template cached by this indexer

query Parameters
limit
integer <int32> >= 0

Limit the number of results returned

Responses

Response samples

Content type
application/json
{
  • "templates": [
    ]
}

get_template_definition

Fetch a template definition by its address

Responses

Response samples

Content type
application/json
{
  • "code_size": 0,
  • "definition": { },
  • "name": "string"
}

handlers::transaction_receipts

get_transaction_receipt

Get the transaction receipt by transaction ID

Responses

Response samples

Content type
application/json
{
  • "receipt": { }
}

list_transaction_receipts

List transaction receipts

Responses

Response samples

Content type
application/json
{
  • "receipts": [
    ]
}

handlers::transactions

submit_transaction

Submit a transaction to validators responsible for the involved shards

Responses

Response samples

Content type
application/json
{
  • "transaction_id": "string"
}

submit_transaction_dry_run

Submit a transaction as a dry-run

Responses

Response samples

Content type
application/json
{
  • "result": { },
  • "transaction_id": "string"
}

list_recent_transactions

List recent transactions

Responses

Response samples

Content type
application/json
{
  • "transactions": [
    ]
}

get_transaction_result

Get the result of a submitted transaction (by transaction ID)

Responses

Response samples

Content type
application/json
{
  • "result": { }
}

handlers::utxos

list_utxos

List full UTXO data

Responses

Response samples

Content type
application/json
{
  • "utxos": [
    ]
}

fetch_utxos

Gets full UTXO data for a list of UTXO IDs

Request Body schema: application/json
required
resource_address
required
string
required
Array of items

Responses

Request samples

Content type
application/json
{
  • "resource_address": "string",
  • "tag_and_nonce_pairs": [
    ]
}

Response samples

Content type
application/json
{
  • "utxos": [
    ]
}

stream_utxo_updates

Streams UTXO updates

Request Body schema: application/json
required
from_epoch
integer <int64> >= 0
per_shard_limit
required
integer <int32> >= 0
resource_address
required
string
required
Array of items
unspent_only
boolean

Responses

Request samples

Content type
application/json
{
  • "from_epoch": 0,
  • "per_shard_limit": 0,
  • "resource_address": "string",
  • "shard_state_versions": [
    ],
  • "unspent_only": true
}

Response samples

Content type
application/json
{
  • "error": "string"
}