Skip to main content

Crate fynd_rpc_types

Crate fynd_rpc_types 

Source
Expand description

Wire-format types for the Fynd RPC HTTP API.

This crate contains only the serialisation types shared between the Fynd RPC server (fynd-rpc) and its clients (fynd-client). It has no server-side infrastructure dependencies (no actix-web, no server logic).

For documentation and API reference see https://docs.fynd.xyz/.

§Features

  • openapi — derives utoipa::ToSchema on all types for OpenAPI spec generation.
  • core — enables Into conversions between wire DTOs and fynd-core domain types.

Structs§

BlockInfo
Block information at which a quote was computed.
Bytes
A byte sequence that serializes as "0x{lowercase hex}" in JSON.
ClientFeeParams
Client fee configuration for the Tycho Router.
EncodingOptions
Options to customize the encoding behavior.
ErrorResponse
Error response body.
FeeBreakdown
Breakdown of fees applied to the swap output by the on-chain FeeCalculator.
HealthStatus
Health check response.
InstanceInfo
Static metadata about this Fynd instance, returned by GET /v1/info.
Order
A single swap order to be solved.
OrderQuote
Quote for a single Order.
PermitDetails
Details for a permit2 single-token permit.
PermitSingle
A single permit for permit2 token transfer authorization.
PriceGuardConfig
Per-request overrides for price guard validation.
Quote
Complete solution for a QuoteRequest.
QuoteOptions
Options to customize the solving behavior.
QuoteRequest
Request to solve one or more swap orders.
Route
A route consisting of one or more sequential swaps.
Swap
A single swap within a route.
Transaction
An encoded EVM transaction ready to be submitted on-chain.

Enums§

OrderSide
Specifies the side of an order: sell (exact input) or buy (exact output).
QuoteStatus
Status of an order quote.
UserTransferType
Token transfer method for moving funds into Tycho execution.

Type Aliases§

Address
An EVM address — 20 bytes, same wire format as Bytes.