Indexer API

Table of Contents

Methods

Method NameRequest TypeResponse TypeDescription

getShardedNodes

-

ShardedNodes

This gets all the storage nodes whether it's trusted or discovered

getNodeLocations

-

map[string]*IPLocation

This gets the locations of storage nodes

getFileLocations

String

[]*shard.ShardedNode

This gets the locations of a data identified by its root

Data Structure

ShardedNodes

FieldTypeDescription

Trusted

[]*ShardedNode

Trusted storage nodes that are live and serving

Discovered

[]*ShardedNode

Discovered storage nodes in the storage network

ShardedNode

FieldTypeDescription

URL

String

The endpoint of the node

Config

ShardConfig

The sharding config of the node

Latency

int64

The latency of the node in ms

Since

int64

The timestamp when last updated

ShardConfig

FieldTypeDescription

ShardId

uint64

The id of the shard in <id>/<num>

NumShard

uint64

The num of the shard in <id>/<num>

IPLocation

FieldTypeDescription

City

string

The city of the node

Region

string

The region of the node

Country

string

The country of the node

Location

string

The latitude/longitude of the node

Timezone

string

The timezone of the node

Last updated