# EVE Frontier Trade Hub & Smart Storage Unit API

> Trade hubs (Smart Storage Units): locations, nearby hubs, vaults, top items, assembly owners and inventory balances. 15 endpoints with CU costs.

Trinary Exchange trade hubs (smart storage units): locations and nearby hubs, enriched hub and assembly data, vaults, the items listed at a hub, its most-traded items, and authoritative hub inventory balances.

Part of the Voidwire API. Voidwire is a metered REST API for EVE Frontier data: markets, characters, tribes, hauling and the star map.

- Base URL: `https://api.voidwire.xyz`
- Authentication: `x-api-key` header (create keys at https://voidwire.xyz)
- HTML version: https://voidwire.xyz/docs/hubs
- Full API overview: https://voidwire.xyz/docs.md

## Endpoints

### GET /hubs/v1/assemblies/enriched

Get enriched assembly data (owner + character name) for a list of object IDs.

Cost: 50 CU per call.

Resolves assembly object IDs to their owner wallet address and character name via on-chain lookup. Results are cached for 5 minutes. Pass a comma-separated list of Sui object IDs (max 200).

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `ids` | query | yes | `string[]` | Comma-separated Sui object IDs (max 200) |

Response `200`: `AssemblyEnrichedResponse[]`

- `assembly_id`: `string` — Assembly Sui object ID.
- `owner`: `string` — Wallet address that owns the assembly (resolved on-chain).
- `owner_character_name`: `string` — Character name associated with the owner address.
- `owner_character_id`: `string` — Character object ID.
- `assembly_name`: `string` — Human-readable assembly name from on-chain metadata (null if metadata not set).

```sh
curl "https://api.voidwire.xyz/hubs/v1/assemblies/enriched?ids=<ids>" \
  -H "x-api-key: $VOIDWIRE_KEY"
```

### GET /hubs/v1/assemblies/owners

Get owner wallet addresses for a list of assembly object IDs.

Cost: 50 CU per call.

Resolves assembly object IDs to their owner wallet addresses via on-chain lookup. Results are cached for 5 minutes. Pass a comma-separated list of Sui object IDs (max 200).

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `ids` | query | yes | `string[]` | Comma-separated Sui object IDs (max 200) |

Response `200`: `AssemblyOwnerResponse[]`

- `assembly_id`: `string` — Assembly Sui object ID.
- `owner`: `string` — Wallet address that owns the assembly, or null if unresolved.

```sh
curl "https://api.voidwire.xyz/hubs/v1/assemblies/owners?ids=<ids>" \
  -H "x-api-key: $VOIDWIRE_KEY"
```

### GET /hubs/v1/collections/{collection_id}/hub

Find the trade hub that owns an item collection.

Cost: 20 CU per call.

Reverse lookup: returns the trade hub (`hub_id`) that owns the given item collection. Each collection belongs to exactly one hub.

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `collection_id` | path | yes | `string` | Sui object ID of the item collection |

Response `200`: `HubSummary`

- `hub_id`: `string` — Sui object ID of the trade hub.
- `collection_id`: `string` — Sui object ID of the item collection owned by the hub.

```sh
curl "https://api.voidwire.xyz/hubs/v1/collections/<collection_id>/hub" \
  -H "x-api-key: $VOIDWIRE_KEY"
```

### GET /hubs/v1/hubs/{hub_id}/dao-vaults

List organization receipt vaults registered at a trade hub.

Cost: 30 CU per call.

Returns every active organization (DAO) receipt vault registered at the given trade hub, each with its current member set per role (`deposit` / `withdraw` / `edit`). Results are cached for 30 seconds.

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `hub_id` | path | yes | `string` | Sui object ID of the trade hub |
| `min_checkpoint` | query | no | `string` | Serve data that includes at least this indexer checkpoint (e.g. the checkpoint of your transaction). A cached copy older than this is rebuilt. Every response carries `X-Indexer-Checkpoint`: the checkpoint it includes. If the indexer has not reached this checkpoint yet, the response waits briefly, then returns current data with a lower checkpoint header — retry later. |

Response `200`: `HubDaoVault[]`

- `vault_id`: `string` — Sui object ID of the receipt vault.
- `registrant_dao_id`: `string` — Organization (DAO) ID that registered the vault.
- `hub_id`: `string` — Sui object ID of the trade hub.
- `collection_id`: `string` — Item collection the vault holds receipts for.
- `status`: `string` — Vault lifecycle status. Only `active` vaults are returned.
- `acl`: `HubDaoVaultAclEntry[]` — Current access grants, one entry per member per role.

```sh
curl "https://api.voidwire.xyz/hubs/v1/hubs/<hub_id>/dao-vaults" \
  -H "x-api-key: $VOIDWIRE_KEY"
```

### GET /hubs/v1/hubs/{hub_id}/items

List item types with active orders at a trade hub.

Cost: 20 CU per call.

Returns the item types (`asset_id`) that currently have open orders at the given trade hub, with flags indicating whether buy orders (bids) and/or sell orders (asks) exist. The full set is always returned in a single page — `next_cursor` is always `null`. Results are cached for 30 seconds.

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `hub_id` | path | yes | `string` | Sui object ID of the trade hub |

Response `200`: `HubItemPage`

- `data`: `HubItem[]` — One page of results, in the requested order.
- `next_cursor`: `string` — Opaque cursor for the next page. Pass it back as the `cursor` query parameter to continue; `null` when there are no further results.

```sh
curl "https://api.voidwire.xyz/hubs/v1/hubs/<hub_id>/items" \
  -H "x-api-key: $VOIDWIRE_KEY"
```

### GET /hubs/v1/hubs/{hub_id}/location

Get the current location of a trade hub.

Cost: 20 CU per call.

Returns coordinates, tenant, and visibility metadata (is_public, region_id) for a single trade hub, identified by its Sui object ID.

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `hub_id` | path | yes | `string` | Sui object ID of the trade hub (hex, e.g. 0x...) |

Response `200`: `LocationResponse`

- `hub_id`: `string` — Sui object ID of the trade hub.
- `assembly_item_id`: `string` — Numeric in-game item ID of the hub structure, as a string; null for a hub with no reported location (a private hub).
- `assembly_tenant`: `string` — Tenant (shard) the hub is deployed on; null for a hub with no reported location (a private hub).
- `type_id`: `string` — Numeric structure type ID, as a string; null for a hub with no reported location (a private hub).
- `owner_cap_id`: `string` — Owner capability object ID for the hub. Read on-chain for hubs with no reported location; null only if that lookup fails.
- `owner`: `string` — Wallet address that owns the hub's owner capability (resolved on-chain).
- `solar_system`: `string` — Numeric solar system ID the hub is located in, as a string; null for a hub with no reported location (a private hub).
- `x`: `string` — X coordinate (meters); null for a hub with no reported location (a private hub).
- `y`: `string` — Y coordinate (meters); null for a hub with no reported location (a private hub).
- `z`: `string` — Z coordinate (meters); null for a hub with no reported location (a private hub).
- `updated_at`: `integer (int64)` — When the location was last updated. Unix epoch milliseconds.
- `tx_digest`: `string` — Digest of the transaction that produced the location update.
- `is_public`: `boolean` — True when the hub location has been publicly revealed.
- `region_id`: `number` — Region ID of the solar system, when known.
- `solar_system_name`: `string` — Human-readable solar system name, when resolved.

```sh
curl "https://api.voidwire.xyz/hubs/v1/hubs/<hub_id>/location" \
  -H "x-api-key: $VOIDWIRE_KEY"
```

### GET /hubs/v1/hubs/{hub_id}/nearby

Find trade hubs near a given hub.

Cost: 50 CU per call.

Returns hubs within a light-year radius of the specified hub. Optionally filter to hubs that have open orders for a specific item type.

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `hub_id` | path | yes | `string` | Sui object ID of the trade hub (hex, e.g. 0x...) |
| `range` | query | no | `number` | Search radius in light years (default 3500, max 3500) |
| `type_id` | query | no | `string` | Filter to hubs with open orders for this item type (e.g. 70810) |

Response `200`: `NearbyHubResponse[]`

- `hub_id`: `string` — Sui object ID of the trade hub.
- `assembly_item_id`: `string` — Numeric in-game item ID of the hub structure, as a string; null for a hub with no reported location (a private hub).
- `assembly_tenant`: `string` — Tenant (shard) the hub is deployed on; null for a hub with no reported location (a private hub).
- `type_id`: `string` — Numeric structure type ID, as a string; null for a hub with no reported location (a private hub).
- `owner_cap_id`: `string` — Owner capability object ID for the hub. Read on-chain for hubs with no reported location; null only if that lookup fails.
- `owner`: `string` — Wallet address that owns the hub's owner capability (resolved on-chain).
- `solar_system`: `string` — Numeric solar system ID the hub is located in, as a string; null for a hub with no reported location (a private hub).
- `x`: `string` — X coordinate (meters); null for a hub with no reported location (a private hub).
- `y`: `string` — Y coordinate (meters); null for a hub with no reported location (a private hub).
- `z`: `string` — Z coordinate (meters); null for a hub with no reported location (a private hub).
- `updated_at`: `integer (int64)` — When the location was last updated. Unix epoch milliseconds.
- `tx_digest`: `string` — Digest of the transaction that produced the location update.
- `is_public`: `boolean` — True when the hub location has been publicly revealed.
- `region_id`: `number` — Region ID of the solar system, when known.
- `solar_system_name`: `string` — Human-readable solar system name, when resolved.
- `hub_name`: `string` — Hub display name from its on-chain metadata; null when it hasn't set one.
- `distance_ly`: `string` — Distance from the search origin, in light years.

```sh
curl "https://api.voidwire.xyz/hubs/v1/hubs/<hub_id>/nearby" \
  -H "x-api-key: $VOIDWIRE_KEY"
```

### GET /hubs/v1/hubs/{hub_id}/top-items

List the most-traded items at a trade hub.

Cost: 30 CU per call.

Returns the items traded at the given hub over the last `days` days (default 7), ranked by quote (CRED) volume. Amounts are returned both raw and human-readable. Results are cached for 30 seconds.

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `hub_id` | path | yes | `string` | Sui object ID of the trade hub |
| `days` | query | no | `integer` | Look-back window in days (1–90). |
| `limit` | query | no | `integer` | Maximum number of items to return (1–50). |

Response `200`: `HubTopItem[]`

- `asset_id`: `string` — Numeric item type ID (asset_id), as a string.
- `trades`: `integer` — Number of fills.
- `units`: `string` — Item units traded (sum of base quantity).
- `volume_raw`: `string` — Quote volume, raw on-chain integer as a string.
- `volume`: `string` — Quote volume, human-readable (raw / 10^quote_decimals).
- `quote_type`: `string` — Coin type of the quote currency.
- `quote_symbol`: `string`
- `quote_decimals`: `integer`
- `last_traded_at`: `integer (int64)` — When the item last traded at this hub. Unix epoch milliseconds.

```sh
curl "https://api.voidwire.xyz/hubs/v1/hubs/<hub_id>/top-items" \
  -H "x-api-key: $VOIDWIRE_KEY"
```

### GET /hubs/v1/hubs/{hub_id}/vault

Get vault configuration for a trade hub.

Cost: 20 CU per call.

Returns the item collection (`collection_id`) backing the hub and the hub vault's configuration object (`vault_config_id`).

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `hub_id` | path | yes | `string` | Sui object ID of the trade hub |
| `min_checkpoint` | query | no | `string` | Serve data that includes at least this indexer checkpoint (e.g. the checkpoint of your transaction). A cached copy older than this is rebuilt. Every response carries `X-Indexer-Checkpoint`: the checkpoint it includes. If the indexer has not reached this checkpoint yet, the response waits briefly, then returns current data with a lower checkpoint header — retry later. |

Response `200`: `HubVaultInfo`

- `hub_id`: `string` — Sui object ID of the trade hub.
- `collection_id`: `string` — Sui object ID of the item collection owned by the hub.
- `vault_config_id`: `string` — Sui object ID of the hub vault's configuration.

```sh
curl "https://api.voidwire.xyz/hubs/v1/hubs/<hub_id>/vault" \
  -H "x-api-key: $VOIDWIRE_KEY"
```

### GET /hubs/v1/hubs/economics

Get fee reserve and liquidity depth for a list of trade hubs.

Cost: 50 CU per call.

Returns aggregated fee reserve (fees deposited minus fees withdrawn) and total open-order liquidity depth across all markets at each hub. Amounts are raw integers encoded as strings. Hubs that no longer exist are omitted from the result. Results are cached for 30 seconds. Maximum 200 IDs per request.

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `ids` | query | yes | `string` | Comma-separated hub Sui object IDs (max 200) |

Response `200`: `HubEconomics[]`

- `hub_id`: `string` — Sui object ID of the trade hub.
- `fee_reserve`: `string` — Accumulated fee reserve (fees deposited minus fees withdrawn) across all markets at the hub. Raw integer amount as a string.
- `liquidity_depth`: `string` — Total remaining quantity across all open orders at the hub. Raw integer amount as a string.
- `unique_items`: `integer` — Number of distinct item types with open orders at the hub.

```sh
curl "https://api.voidwire.xyz/hubs/v1/hubs/economics?ids=<ids>" \
  -H "x-api-key: $VOIDWIRE_KEY"
```

### GET /hubs/v1/hubs/enriched

Get enriched trade hub data for a list of object IDs.

Cost: 50 CU per call.

Returns location, region, market count, and last storage activity for up to 200 trade hubs. Pass a comma-separated list of Sui object IDs via the ids query parameter.

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `ids` | query | yes | `string[]` | Comma-separated Sui object IDs (max 200) |

Response `200`: `HubEnrichedResponse[]`

- `hub_id`: `string` — Sui object ID of the trade hub.
- `assembly_item_id`: `string` — Numeric in-game item ID of the hub structure, as a string; null for a hub with no reported location (a private hub).
- `assembly_tenant`: `string` — Tenant (shard) the hub is deployed on; null for a hub with no reported location (a private hub).
- `type_id`: `string` — Numeric structure type ID, as a string; null for a hub with no reported location (a private hub).
- `owner_cap_id`: `string` — Owner capability object ID for the hub. Read on-chain for hubs with no reported location; null only if that lookup fails.
- `owner`: `string` — Wallet address that owns the hub's owner capability (resolved on-chain).
- `solar_system`: `string` — Numeric solar system ID the hub is located in, as a string; null for a hub with no reported location (a private hub).
- `x`: `string` — X coordinate (meters); null for a hub with no reported location (a private hub).
- `y`: `string` — Y coordinate (meters); null for a hub with no reported location (a private hub).
- `z`: `string` — Z coordinate (meters); null for a hub with no reported location (a private hub).
- `updated_at`: `integer (int64)` — When the location was last updated. Unix epoch milliseconds.
- `tx_digest`: `string` — Digest of the transaction that produced the location update.
- `pool_count`: `integer` — Number of markets (pools) attached to the hub.
- `last_activity_at`: `integer (int64)` — When the hub last saw deposit/withdraw activity. Unix epoch milliseconds.
- `is_public`: `boolean` — True when the hub location has been publicly revealed.
- `region_id`: `number` — Region ID of the solar system, when known.
- `state`: `"online" | "offline" | "unanchored"` — The hub's power state from its last indexed status change: `online`, `offline` (a freshly anchored hub starts offline) or `unanchored`; null when no status change has been indexed for it.

```sh
curl "https://api.voidwire.xyz/hubs/v1/hubs/enriched?ids=<ids>" \
  -H "x-api-key: $VOIDWIRE_KEY"
```

### GET /hubs/v1/hubs/locations

List all known trade hub locations.

Cost: 50 CU per call.

Returns current locations for all indexed trade hubs, with location and visibility metadata. Optionally filter by solar_system or tenant. Paginated: pass back `next_cursor` as `cursor` to fetch the next page.

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `limit` | query | no | `integer` | Maximum number of results to return (1–100). |
| `cursor` | query | no | `string` | Opaque cursor from a previous response’s `next_cursor`. Omit for the first page. |
| `solar_system` | query | no | `integer` | Filter to hubs in a specific solar system ID |
| `tenant` | query | no | `string` | Filter to hubs owned by a specific tenant |
| `has_vault` | query | no | `boolean` | When true, only return hubs that have trading initialised (a vault exists) |

Response `200`: `LocationResponsePage`

- `data`: `LocationResponse[]` — One page of results, in the requested order.
- `next_cursor`: `string` — Opaque cursor for the next page. Pass it back as the `cursor` query parameter to continue; `null` when there are no further results.

```sh
curl "https://api.voidwire.xyz/hubs/v1/hubs/locations" \
  -H "x-api-key: $VOIDWIRE_KEY"
```

### GET /hubs/v1/hubs/nearby-by-system

Find trade hubs near a given solar system.

Cost: 50 CU per call.

Same as /hubs/{hub_id}/nearby but accepts a solar system ID or name directly. Useful when the requesting hub is private and has no published location. Returns `null` when `system_id` is a name that could not be resolved; `[]` means the system resolved but no hubs are in range.

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `system_id` | query | yes | `string` | Solar system ID or name to search from |
| `range` | query | no | `number` | Search radius in light years (default 3500, max 3500) |
| `type_id` | query | no | `string` | Filter to hubs with open orders for this item type |

Response `200`: `NearbyHubResponse[]`

- `hub_id`: `string` — Sui object ID of the trade hub.
- `assembly_item_id`: `string` — Numeric in-game item ID of the hub structure, as a string; null for a hub with no reported location (a private hub).
- `assembly_tenant`: `string` — Tenant (shard) the hub is deployed on; null for a hub with no reported location (a private hub).
- `type_id`: `string` — Numeric structure type ID, as a string; null for a hub with no reported location (a private hub).
- `owner_cap_id`: `string` — Owner capability object ID for the hub. Read on-chain for hubs with no reported location; null only if that lookup fails.
- `owner`: `string` — Wallet address that owns the hub's owner capability (resolved on-chain).
- `solar_system`: `string` — Numeric solar system ID the hub is located in, as a string; null for a hub with no reported location (a private hub).
- `x`: `string` — X coordinate (meters); null for a hub with no reported location (a private hub).
- `y`: `string` — Y coordinate (meters); null for a hub with no reported location (a private hub).
- `z`: `string` — Z coordinate (meters); null for a hub with no reported location (a private hub).
- `updated_at`: `integer (int64)` — When the location was last updated. Unix epoch milliseconds.
- `tx_digest`: `string` — Digest of the transaction that produced the location update.
- `is_public`: `boolean` — True when the hub location has been publicly revealed.
- `region_id`: `number` — Region ID of the solar system, when known.
- `solar_system_name`: `string` — Human-readable solar system name, when resolved.
- `hub_name`: `string` — Hub display name from its on-chain metadata; null when it hasn't set one.
- `distance_ly`: `string` — Distance from the search origin, in light years.

```sh
curl "https://api.voidwire.xyz/hubs/v1/hubs/nearby-by-system?system_id=<system_id>" \
  -H "x-api-key: $VOIDWIRE_KEY"
```

### GET /hubs/v1/inventory/balances

Get authoritative inventory balances at a trade hub.

Cost: 50 CU per call.

Authoritative current contents per storage, straight from the chain indexer — the spendable truth that overlay containers merely arrange. The whole read is scoped by `storage_unit_id`; the item collection is derived from it server-side. One call can read several storages at once: pass `owner_address` for the wallet warehouse, `trading_account_id` for marketplace (trading account) holdings, `vault_ids` for organization (DAO) receipt vaults, and/or `inventory_key` for the trade hub hangar (keyed by game `type_id`, not collection-scoped). Sections whose selector was not passed come back empty. All amounts are raw integers as decimal strings.

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `storage_unit_id` | query | yes | `string` | Trade hub scoping the whole read. The item collection is derived from it server-side (each hub backs exactly one collection), so no collection id is passed. A hub with no known collection fails with `404 not_found`. |
| `owner_address` | query | no | `string` | Holder wallet — returns warehouse balances. |
| `trading_account_id` | query | no | `string` | Trading account — returns marketplace balances. |
| `vault_ids` | query | no | `string` | Comma-separated organization (DAO) receipt vault ids — returns per-vault balances. |
| `inventory_key` | query | no | `string` | Inventory field key (hub or character `owner_cap_id`) selecting which hangar — when passed, returns hangar contents (by type_id). |

Response `200`: `InventoryBalancesResponse`

- `storage_unit_id`: `string` — The trade hub that was queried.
- `collection_id`: `string` — The item collection backing the trade hub (derived server-side) — the collection all non-hangar sections are scoped to. Feed it into reconcile balance entries.
- `warehouse`: `AssetBalance[]` — Wallet-held (warehouse) balances for owner_address; empty when owner_address was not passed.
- `marketplace`: `AssetBalance[]` — TradingAccount-held (marketplace) balances for trading_account_id; empty when trading_account_id was not passed.
- `hangar`: `AssetBalance[]` — Trade hub hangar contents (by game type_id, not collection-scoped) for the queried storage_unit_id; empty when inventory_key was not passed.
- `org_vaults`: `object` — Per-vault balances keyed by vault id, for each id in vault_ids; empty object when vault_ids was not passed.

```sh
curl "https://api.voidwire.xyz/hubs/v1/inventory/balances?storage_unit_id=<storage_unit_id>" \
  -H "x-api-key: $VOIDWIRE_KEY"
```

### GET /hubs/v1/items/{item_id}/locations

List locations that have a specific item for sale.

Cost: 50 CU per call.

Returns the location of every located hub with a live sell order for the given item (type_id), newest location first. Hubs without a reported location are not listed. Paginated: pass back `next_cursor` as `cursor` to fetch the next page.

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `item_id` | path | yes | `string` | The type_id of the tradeable item to filter by |
| `limit` | query | no | `integer` | Maximum number of results to return (1–100). |
| `cursor` | query | no | `string` | Opaque cursor from a previous response’s `next_cursor`. Omit for the first page. |

Response `200`: `LocationResponsePage`

- `data`: `LocationResponse[]` — One page of results, in the requested order.
- `next_cursor`: `string` — Opaque cursor for the next page. Pass it back as the `cursor` query parameter to continue; `null` when there are no further results.

```sh
curl "https://api.voidwire.xyz/hubs/v1/items/<item_id>/locations" \
  -H "x-api-key: $VOIDWIRE_KEY"
```
