The SDK’s type declarations are the complete reference: every export below has a doc comment in your editor. This page is the map.

Root: @c8ntinuum/infinity-interop-sdk

Browser-safe: runs in a browser and in Node 20+.

Client

Quotes and checks

Execution

Orders

Refunds

Wallets

Errors

InteropError, HubError (with status, isCredentialRefused and isClientBug), HubUnavailableError, ProxyError, WalletError, QuoteExpiredError, OutcomeUnknownError, RefundError, isAbortError, classifyHubCode, CLIENT_BUG_CODES, adviseError, adviseHubError and DEFAULT_ERROR_MESSAGES: see Errors.

Bytes, units and addresses

The wire contract

Server: @c8ntinuum/infinity-interop-sdk/server

For your backend: it holds your secret key.

EVM: @c8ntinuum/infinity-interop-sdk/evm

Needs viem (2.21 or later).

Solana: @c8ntinuum/infinity-interop-sdk/solana

No dependencies.

HubApi

client.api (or createHubApi(transport)) has one method per hub route. Answers come back as the hub sent them, and every method takes CallOptions last. call keeps the answer’s requestId, which the typed methods drop. Use it when you want to log it, for example next to a quote.

deriveHubOrderId

The hub files every submission under this id, and GET /order/{id}/status answers it like the aggregator’s order id. It is how you find an order whose submission answer was lost, without asking the user to sign again.