# EVE Frontier Hauling API

> EVE Frontier hauling agreements: search, claimable jobs for a player, hauler reputation and protocol stats. 9 endpoints with CU costs.

Hauling agreements: search agreements, protocol config and stats, a single agreement, and an organization's or player's agreements, open jobs, to-do list and record.

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/hauling
- Full API overview: https://voidwire.xyz/docs.md

## Endpoints

### GET /hauling/v1/agreements

Search hauling agreements.

Cost: 50 CU per call.

The job board: open agreements by default, newest first. Filter by status, currency, minimum reward, source or destination hub, cargo or wanted items, lister, hauler and whether a claim gate applies; pass `claimable_by` to learn whether an address can accept each one. Fillers who hold the wanted items search accepted jobs by `want_collection_id`/`want_asset_id`. Each side of the haul names its trade hub and whether its collection is a known warehouse vault. Paged with a self-contained `cursor` (it carries the filters). `lapsed` and `overdue` are derived from wall-clock time, which the response returns as `evaluated_at`; events still reach the index with its delay (see `X-Indexer-Checkpoint`).

| 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. |
| `status` | query | no | `string` | Comma-separated statuses (default `open`): `open`, `lapsed`, `accepted`, `overdue`, `delivered`, `defaulted`, `forfeited`, `cancelled`, `closed_lapsed`. Ignored on a `cursor` request: the cursor carries the original filters. |
| `currency` | query | no | `string` | Only agreements paid in this coin type. |
| `min_reward` | query | no | `string` | Only agreements whose reward is at least this, in the smallest unit of their currency (u64 decimal). Combine with `currency`. |
| `source_hub_id` | query | no | `string` | Only cargo picked up at this trade hub. |
| `destination_hub_id` | query | no | `string` | Only deliveries handed in at this trade hub. |
| `cargo_collection_id` | query | no | `string` | Only cargo of this warehouse-receipt collection. |
| `want_collection_id` | query | no | `string` | Only agreements that want items of this collection delivered (for fillers who already hold them). |
| `cargo_asset_id` | query | no | `string` | Only cargo of this item type ID. |
| `want_asset_id` | query | no | `string` | Only agreements that want this item type ID delivered. |
| `lister` | query | no | `string` | Only agreements posted by this address. |
| `hauler` | query | no | `string` | Only agreements accepted by this address. |
| `org_id` | query | no | `string` | Only agreements posted on behalf of this organization by a trusted wrapper. No wrapper is trusted yet, so this matches nothing. |
| `gated` | query | no | `boolean` | `true`: only agreements with a claim gate (limited to listed players, machine keys or organizations); `false`: only agreements anyone can accept. |
| `claimable_by` | query | no | `string` | Add `eligibility` to each row: whether this address can accept it. |
| `accept_deadline_before` | query | no | `integer (int64)` | Only agreements whose accept deadline is before this time (Unix epoch milliseconds). With `status=lapsed`, the listings lapsed long enough for the config admin to close. |
| `sort` | query | no | `"posted_desc" \| "reward_desc" \| "accept_deadline_asc" \| "delivery_deadline_asc"` | Order (default `posted_desc`, newest first). `reward_desc` compares raw amounts, so filter by `currency` with it. Ties break on `agreement_id`. |
| `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`: `HaulingAgreementPage`

- `data`: `HaulingAgreementResponse[]`
- `next_cursor`: `string` — Opaque cursor for the next page. Pass it back as `cursor`; `null` when there are no further results.
- `evaluated_at`: `integer (int64)` — Wall-clock time each row’s `status` was derived at. Unix epoch milliseconds.

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

### GET /hauling/v1/agreements/{agreement_id}

Get a hauling agreement.

Cost: 30 CU per call.

One agreement in full: parties, cargo and wanted items with their hubs, payment and deadlines, its accept requirements (claim gates with their players, machine keys and organizations; other rules raw), observer, lister cap holder, proceeds, fees, claims and event timeline. With `viewer`, adds the roles that address plays and, while the agreement is open, whether and how it can accept: the claim plan names the call for each requirement in order. `lapsed` and `overdue` are derived from wall-clock time, which the response returns as `evaluated_at`; events still reach the index with its delay (see `X-Indexer-Checkpoint`).

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `agreement_id` | path | yes | `string` | Object ID of the hauling agreement. |
| `viewer` | query | no | `string` | Add `viewer`: the roles this address plays, and while the agreement is open its eligibility and claim plan. |
| `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`: `HaulingAgreementDetailResponse`

- `agreement_id`: `string` — Object ID of the shared `HaulingAgreement<T>`.
- `status`: `"open" | "lapsed" | "accepted" | "overdue" | …` — `open` (accepting until `accept_deadline_at`), `lapsed` (open past it), `accepted` (in progress), `overdue` (accepted, past `delivery_deadline_at`: anyone may default it), or how it ended: `delivered`, `defaulted`, `forfeited`, `cancelled`, `closed_lapsed`. `lapsed` and `overdue` are derived from the clock at `evaluated_at`.
- `posted_at`: `integer (int64)` — When the agreement was drafted. Unix epoch milliseconds.
- `accept_deadline_at`: `integer (int64)` — Accepts must land before this time (exclusive; `accept_by_ms`). Unix epoch milliseconds.
- `haul_duration_ms`: `integer (int64)` — Time a hauler has to deliver after accepting, in milliseconds.
- `lister`: `HaulingPartyResponse` — Signer of the draft.
- `beneficiary`: `HaulingPartyResponse` — Paid on delivery or default. With `pays_cap_holder` this is the lister cap’s own address, and whoever holds the cap is paid.
- `pays_cap_holder`: `boolean` — Lister-side payouts go to the lister cap as `Proceeds`, collected by its holder.
- `on_behalf_of`: `HaulingEntityResponse` — Who the agreement was posted for, when a wrapper set it.
- `cargo`: `HaulingItemsResponse[]` — Cargo escrowed by the lister, picked up by the hauler: one entry per item, in the agreement’s order. Empty for an agreement that only pays for delivery.
- `want`: `HaulingItemsResponse[]` — Exactly what must be handed in to deliver: one entry per item. A delivery hands in one balance per entry, in this order.
- `currency`: `CoinRef` — Coin type `T` of reward, collateral and delivery fee.
- `reward`: `string` — Escrowed reward, before any delivery fee. In the smallest unit of the currency (u64 decimal string).
- `collateral`: `string` — Collateral a hauler locks on accept. In the smallest unit of the currency (u64 decimal string).
- `delivery_fee_bps`: `integer` — Delivery fee on the reward, in basis points, fixed at posting.
- `claim_gated`: `boolean` — Accepting is limited to listed players, machine keys or organizations.
- `has_other_rules`: `boolean` — Accepting needs requirements this API cannot evaluate (including any identity rule).
- `hauler`: `HaulingPartyResponse`
- `hauler_identity`: `HaulingIdentityResponse`
- `accepted_at`: `integer (int64)` — When it was accepted. Unix epoch milliseconds.
- `delivery_deadline_at`: `integer (int64)` — Delivery must land before this time (exclusive; `deadline_ms`). After it, anyone may default the agreement. Unix epoch milliseconds.
- `closed_at`: `integer (int64)` — When it ended. Unix epoch milliseconds.
- `closed_by`: `HaulingPartyResponse` — Sender of the transaction that ended it.
- `hauler_reward`: `string` — Delivered: the reward paid to the hauler, net of the fee. In the smallest unit of the currency (u64 decimal string).
- `delivery_fee`: `string` — Delivered: the fee sent to the treasury. In the smallest unit of the currency (u64 decimal string).
- `refunded_to`: `string` — `closed_lapsed`: where the escrow went (the lister, or the cap’s address when it pays the cap holder).
- `cap_id`: `string` — The agreement’s `ListerCap`.
- `posted_tx_digest`: `string` — Digest of the posting transaction.
- `accepted_tx_digest`: `string`
- `closed_tx_digest`: `string`
- `eligibility`: `"eligible" | "ineligible" | "unknown"` (optional) — With a viewer address: `eligible`, `ineligible` (a claim gate lists nothing the address satisfies) or `unknown` (other rules apply).
- `viewer_roles`: `"lister" | "cap_holder" | "beneficiary" | "hauler" | …[]` (optional) — With a viewer address: the roles it plays.
- `requirements`: `HaulingRequirementResponse[]`
- `observer`: `HaulingObserverResponse`
- `cap`: `HaulingCapResponse`
- `proceeds`: `HaulingProceedsResponse` — Set when the ending sent proceeds to the cap.
- `fees`: `HaulingFeesResponse`
- `claims`: `HaulingClaimResponse[]`
- `timeline`: `HaulingTimelineEventResponse[]` — Every indexed event, oldest first.
- `viewer`: `HaulingViewerResponse`
- `evaluated_at`: `integer (int64)` — Wall-clock time `status` was derived at. Unix epoch milliseconds.

```sh
curl "https://api.voidwire.xyz/hauling/v1/agreements/<agreement_id>" \
  -H "x-api-key: $VOIDWIRE_KEY"
```

### GET /hauling/v1/agreements/config

Get the hauling agreements protocol config.

Cost: 20 CU per call.

What posting an agreement costs and accepts: the approved currencies (with symbol and decimals), the flat posting fee, the delivery fee in basis points and the treasury, plus the most recent admin changes. Returns 503 until the indexer has seen the first config change.

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `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`: `HaulingConfigResponse`

- `config_id`: `string` — The shared hauling `Config` object.
- `currencies`: `CoinRef[]` — Coin types approved for reward and collateral.
- `post_fee`: `HaulingPostFeeResponse` — Flat fee charged to post, in its own coin; null for none.
- `delivery_fee_bps`: `integer` — Delivery fee on new agreements, in basis points of the reward.
- `treasury`: `string` — Fee recipient.
- `updated_at`: `integer (int64)` — When the config last changed. Unix epoch milliseconds.
- `history`: `HaulingConfigChangeResponse[]` — Most recent changes first (up to 20).

```sh
curl "https://api.voidwire.xyz/hauling/v1/agreements/config" \
  -H "x-api-key: $VOIDWIRE_KEY"
```

### GET /hauling/v1/agreements/stats

Hauling agreements protocol stats.

Cost: 50 CU per call.

Agreements by status, volume per currency (rewards escrowed and paid, delivery fees, collateral forfeited), posting fees per fee coin and the ten busiest hub-to-hub lanes. Cached for 30 seconds. `lapsed` and `overdue` are derived from wall-clock time, which the response returns as `evaluated_at`; events still reach the index with its delay (see `X-Indexer-Checkpoint`).

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `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`: `HaulingStatsResponse`

- `by_status`: `HaulingStatusCountsResponse`
- `by_currency`: `HaulingCurrencyStatsResponse[]`
- `post_fees`: `CurrencyAmountResponse[]` — Posting fees paid, per fee coin.
- `lanes`: `HaulingLaneResponse[]` — Busiest hub-to-hub lanes by agreements (top 10), counting only verified hubs.
- `evaluated_at`: `integer (int64)` — Wall-clock time the counts were derived at. Unix epoch milliseconds.

```sh
curl "https://api.voidwire.xyz/hauling/v1/agreements/stats" \
  -H "x-api-key: $VOIDWIRE_KEY"
```

### GET /hauling/v1/orgs/{org_id}/agreements

An organization’s hauling agreements.

Cost: 30 CU per call.

Agreements related to the organization (OU), newest first: `gated_to` (default) lists those its board members may claim, `claimed_via` those accepted through it, `posted_for` those posted on its behalf by a trusted wrapper (none is trusted yet). Only this exact OU counts: the chain checks its board, not its sub-units’. `lapsed` and `overdue` are derived from wall-clock time, which the response returns as `evaluated_at`; events still reach the index with its delay (see `X-Indexer-Checkpoint`).

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `org_id` | path | yes | `string` | Object ID of the organization (OU). |
| `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. |
| `relation` | query | no | `"posted_for" \| "gated_to" \| "claimed_via"` | How the agreements relate to the organization (default `gated_to`): `gated_to` = its board members may claim them; `claimed_via` = they were accepted through it; `posted_for` = posted on its behalf by a trusted wrapper (none is trusted yet, so this is empty). Ignored on a `cursor` request: the cursor carries the original filters. |
| `status` | query | no | `string` | Comma-separated statuses (default: all). Ignored on a `cursor` request: the cursor carries the original filters. |
| `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`: `HaulingAgreementPage`

- `data`: `HaulingAgreementResponse[]`
- `next_cursor`: `string` — Opaque cursor for the next page. Pass it back as `cursor`; `null` when there are no further results.
- `evaluated_at`: `integer (int64)` — Wall-clock time each row’s `status` was derived at. Unix epoch milliseconds.

```sh
curl "https://api.voidwire.xyz/hauling/v1/orgs/<org_id>/agreements" \
  -H "x-api-key: $VOIDWIRE_KEY"
```

### GET /hauling/v1/players/{address}/agreements

A player’s hauling agreements.

Cost: 50 CU per call.

Agreements the address plays a part in, newest first: as `lister`, `cap_holder`, `beneficiary`, `hauler`, or `claimed_via_org` (accepted through an organization whose board it sits on). Each row lists the roles in `viewer_roles`. Filter with `role` and `status`. `lapsed` and `overdue` are derived from wall-clock time, which the response returns as `evaluated_at`; events still reach the index with its delay (see `X-Indexer-Checkpoint`).

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `address` | path | yes | `string` | Player wallet address. |
| `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. |
| `role` | query | no | `string` | Comma-separated roles (default: all): `lister`, `cap_holder`, `beneficiary`, `hauler`, `claimed_via_org`. Ignored on a `cursor` request: the cursor carries the original filters. |
| `status` | query | no | `string` | Comma-separated statuses (default: all). Ignored on a `cursor` request: the cursor carries the original filters. |
| `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`: `HaulingAgreementPage`

- `data`: `HaulingAgreementResponse[]`
- `next_cursor`: `string` — Opaque cursor for the next page. Pass it back as `cursor`; `null` when there are no further results.
- `evaluated_at`: `integer (int64)` — Wall-clock time each row’s `status` was derived at. Unix epoch milliseconds.

```sh
curl "https://api.voidwire.xyz/hauling/v1/players/<address>/agreements" \
  -H "x-api-key: $VOIDWIRE_KEY"
```

### GET /hauling/v1/players/{address}/agreements/actions

A player’s hauling to-do list.

Cost: 30 CU per call.

What the address can do next: collect proceeds its lister cap received, delete a spent cap, cancel its listing that nobody accepted in time, deliver a job before the deadline (soonest first) or default an overdue job it is owed. Each item names the Move call, its type argument and the object IDs to build the transaction from. `lapsed` and `overdue` are derived from wall-clock time, which the response returns as `evaluated_at`; events still reach the index with its delay (see `X-Indexer-Checkpoint`).

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `address` | path | yes | `string` | Player wallet address. |
| `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`: `HaulingActionPage`

- `data`: `HaulingActionResponse[]` — Deliveries soonest-due first, then the rest newest first.
- `next_cursor`: `string` — Always null: the list is returned whole (up to 200 items).
- `evaluated_at`: `integer (int64)` — Wall-clock time the actions were derived at. Unix epoch milliseconds.

```sh
curl "https://api.voidwire.xyz/hauling/v1/players/<address>/agreements/actions" \
  -H "x-api-key: $VOIDWIRE_KEY"
```

### GET /hauling/v1/players/{address}/agreements/claimable

Hauling agreements a player can accept.

Cost: 50 CU per call.

Open agreements, before their accept deadline, that the address can accept: no claim gate, or every gate lists the address (as a player or machine key) or an organization whose board it sits on. Each comes with its claim plan, the call to make for each requirement. Soonest accept deadline first. `include_unknown=true` adds agreements with rules this API cannot evaluate. Membership is read live, so a board change shows up as soon as the indexer has it.

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `address` | path | yes | `string` | Player wallet address. |
| `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. |
| `include_unknown` | query | no | `boolean` | Also return agreements whose every claim gate passes but which have rules this API cannot evaluate (`eligibility: unknown`). |
| `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`: `ClaimableHaulingAgreementPage`

- `data`: `ClaimableHaulingAgreementResponse[]`
- `next_cursor`: `string`
- `evaluated_at`: `integer (int64)` — Wall-clock time each row’s `status` was derived at. Unix epoch milliseconds.

```sh
curl "https://api.voidwire.xyz/hauling/v1/players/<address>/agreements/claimable" \
  -H "x-api-key: $VOIDWIRE_KEY"
```

### GET /hauling/v1/players/{address}/agreements/reputation

A player’s hauling record.

Cost: 30 CU per call.

As hauler: jobs accepted, in progress, overdue, delivered, defaulted and forfeited, the completion rate, and net rewards and collateral lost per currency. As lister: agreements posted and how they went. Counts are by wallet address. `lapsed` and `overdue` are derived from wall-clock time, which the response returns as `evaluated_at`; events still reach the index with its delay (see `X-Indexer-Checkpoint`).

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `address` | path | yes | `string` | Player wallet address. |
| `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`: `HaulingReputationResponse`

- `address`: `string` — Sui address (0x-prefixed, 64 hex characters).
- `as_hauler`: `HaulerRecordResponse`
- `as_lister`: `ListerRecordResponse`
- `evaluated_at`: `integer (int64)` — Wall-clock time the counts were derived at. Unix epoch milliseconds.

```sh
curl "https://api.voidwire.xyz/hauling/v1/players/<address>/agreements/reputation" \
  -H "x-api-key: $VOIDWIRE_KEY"
```
