Skip to content

/tokentoken Endpoints

Base URL: /tokentoken

Available Endpoints

/pool/active?<token_a>&<token_b>

Endpoint: GET /pool/active

Status: Unstable

Description: List active TokenToken pools that trade the given token pair.

The query is order-insensitive: a pool containing both tokens is returned regardless of which token is held in the main vs storage UTXO. Each pool's response labels which token is a (main) vs b (storage) so the caller can build the correct swap direction.

Both token_a and token_b are required (token ids in display hex).

Example URI: /pool/active

/pools

Endpoint: GET /pools

Status: Unstable

Description: List ALL active TokenToken pools, regardless of pair — every pool at its latest state. Drives the frontend pooled-pair selector, so it can present the token pairs that have liquidity (with which token is A/main vs B/storage) without probing each candidate pair individually.

Example URI: /pools

/tokens

Endpoint: GET /tokens

Status: Unstable

Description: List the token ids that appear in at least one active TokenToken pool. Drives the frontend token selector and the "no route" decision.

Example URI: /tokens


← Back to Index