fynd 0.50.0

High-performance DeFi route-finding engine — embeddable library and CLI
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
{
  "openapi": "3.1.0",
  "info": {
    "title": "fynd-rpc",
    "description": "HTTP RPC server for Fynd DEX router",
    "license": {
      "name": "MIT",
      "identifier": "MIT"
    },
    "version": "0.49.1"
  },
  "paths": {
    "/v1/health": {
      "get": {
        "tags": [
          "health"
        ],
        "summary": "GET /v1/health - Health check endpoint.",
        "description": "Returns the current health status of the service.",
        "operationId": "health",
        "responses": {
          "200": {
            "description": "Service healthy",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HealthStatus"
                }
              }
            }
          },
          "503": {
            "description": "Data stale",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HealthStatus"
                }
              }
            }
          }
        }
      }
    },
    "/v1/info": {
      "get": {
        "tags": [
          "solver"
        ],
        "summary": "GET /v1/info - Return static metadata about this Fynd instance.",
        "operationId": "info",
        "responses": {
          "200": {
            "description": "Instance info",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InstanceInfo"
                }
              }
            }
          }
        }
      }
    },
    "/v1/quote": {
      "post": {
        "tags": [
          "solver"
        ],
        "summary": "POST /v1/quote - Request a quote.",
        "description": "Accepts a `QuoteRequest` and returns a `Quote` with the best routes found, or an error\nif the request could not be filled.\n\n# Errors\n\n- 400 Bad Request: Invalid request format\n- 422 Unprocessable Entity: No routes found\n- 503 Service Unavailable: Queue full or service overloaded\n- 503 Service Unavailable: Queue full, service overloaded, or quote timeout",
        "operationId": "quote",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QuoteRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Quote completed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Quote"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "No route found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Queue full, overloaded, stale data, or timeout",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "BlockInfo": {
        "type": "object",
        "description": "Block information at which a quote was computed.\n\nQuotes are only valid for the block at which they were computed. Market\nconditions may change in subsequent blocks.",
        "required": [
          "number",
          "hash",
          "timestamp"
        ],
        "properties": {
          "hash": {
            "type": "string",
            "description": "Block hash as a hex string.",
            "example": "0xabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcd"
          },
          "number": {
            "type": "integer",
            "format": "int64",
            "description": "Block number.",
            "example": 21000000,
            "minimum": 0
          },
          "timestamp": {
            "type": "integer",
            "format": "int64",
            "description": "Block timestamp in Unix seconds.",
            "example": 1730000000,
            "minimum": 0
          }
        }
      },
      "ClientFeeParams": {
        "type": "object",
        "description": "Client fee configuration for the Tycho Router.\n\nWhen provided, the router charges a client fee on the swap output. The `signature`\nmust be an EIP-712 signature by the `receiver` over the `ClientFee` typed data.",
        "required": [
          "bps",
          "receiver",
          "max_contribution",
          "deadline",
          "signature"
        ],
        "properties": {
          "bps": {
            "type": "integer",
            "format": "int32",
            "description": "Fee in basis points (0–10,000). 100 = 1%.",
            "example": 100,
            "minimum": 0
          },
          "deadline": {
            "type": "integer",
            "format": "int64",
            "description": "Unix timestamp after which the signature is invalid.",
            "example": 1893456000,
            "minimum": 0
          },
          "max_contribution": {
            "type": "string",
            "description": "Maximum subsidy from the client's vault balance.",
            "example": "0"
          },
          "receiver": {
            "type": "string",
            "description": "Address that receives the fee (also the required EIP-712 signer).",
            "example": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
          },
          "signature": {
            "type": "string",
            "description": "65-byte EIP-712 ECDSA signature by `receiver` (hex-encoded).",
            "example": "0xabcd..."
          }
        }
      },
      "EncodingOptions": {
        "type": "object",
        "description": "Options to customize the encoding behavior.",
        "required": [
          "slippage"
        ],
        "properties": {
          "client_fee_params": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ClientFeeParams",
                "description": "Client fee configuration. When absent, no fee is charged."
              }
            ]
          },
          "permit": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/PermitSingle",
                "description": "Permit2 single-token authorization. Required when using `transfer_from_permit2`."
              }
            ]
          },
          "permit2_signature": {
            "type": [
              "string",
              "null"
            ],
            "description": "Permit2 signature (65 bytes, hex-encoded). Required when `permit` is set.",
            "example": "0xabcd..."
          },
          "price_guard": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/PriceGuardConfig",
                "description": "Per-request price guard overrides. If `None`, uses server defaults."
              }
            ]
          },
          "slippage": {
            "type": "number",
            "format": "double",
            "example": "0.001"
          },
          "transfer_type": {
            "$ref": "#/components/schemas/UserTransferType",
            "description": "Token transfer method. Defaults to `transfer_from`."
          }
        }
      },
      "ErrorResponse": {
        "type": "object",
        "description": "Error response body.",
        "required": [
          "error",
          "code"
        ],
        "properties": {
          "code": {
            "type": "string",
            "example": "BAD_REQUEST"
          },
          "details": {},
          "error": {
            "type": "string",
            "example": "bad request: no orders provided"
          }
        }
      },
      "FeeBreakdown": {
        "type": "object",
        "description": "Breakdown of fees applied to the swap output by the on-chain FeeCalculator.\n\nAll amounts are absolute values in output token units.",
        "required": [
          "router_fee",
          "client_fee",
          "max_slippage",
          "min_amount_received"
        ],
        "properties": {
          "client_fee": {
            "type": "string",
            "description": "Client's portion of the fee (after the router takes its share).",
            "example": "2800000"
          },
          "max_slippage": {
            "type": "string",
            "description": "Maximum slippage: (amount_out - router_fee - client_fee) * slippage.",
            "example": "3496850"
          },
          "min_amount_received": {
            "type": "string",
            "description": "Minimum amount the user receives on-chain.\nEqual to amount_out - router_fee - client_fee - max_slippage.",
            "example": "3493353150"
          },
          "router_fee": {
            "type": "string",
            "description": "Router protocol fee (fee on output + router's share of client fee).",
            "example": "350000"
          }
        }
      },
      "HealthStatus": {
        "type": "object",
        "description": "Health check response.",
        "required": [
          "healthy",
          "last_update_ms",
          "num_solver_pools"
        ],
        "properties": {
          "derived_data_ready": {
            "type": "boolean",
            "description": "Whether derived data has been computed at least once.\n\nThis indicates overall readiness, not per-block freshness. Some algorithms\nrequire fresh derived data for each block — they are ready to receive orders\nbut will wait for recomputation before solving.",
            "example": true
          },
          "gas_price_age_ms": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Time since last gas price update in milliseconds, if available.",
            "example": 12000,
            "minimum": 0
          },
          "healthy": {
            "type": "boolean",
            "description": "Whether the service is healthy.",
            "example": true
          },
          "last_update_ms": {
            "type": "integer",
            "format": "int64",
            "description": "Time since last market update in milliseconds.",
            "example": 1250,
            "minimum": 0
          },
          "num_solver_pools": {
            "type": "integer",
            "description": "Number of active solver pools.",
            "example": 2,
            "minimum": 0
          }
        }
      },
      "InstanceInfo": {
        "type": "object",
        "description": "Static metadata about this Fynd instance, returned by `GET /v1/info`.",
        "required": [
          "chain_id",
          "router_address",
          "permit2_address"
        ],
        "properties": {
          "chain_id": {
            "type": "integer",
            "format": "int64",
            "description": "EIP-155 chain ID (e.g. 1 for Ethereum mainnet).",
            "example": 1,
            "minimum": 0
          },
          "permit2_address": {
            "type": "string",
            "description": "Address of the canonical Permit2 contract (same on all EVM chains).",
            "example": "0x000000000022D473030F116dDEE9F6B43aC78BA3"
          },
          "router_address": {
            "type": "string",
            "description": "Address of the Tycho Router contract on this chain.",
            "example": "0xfD0b31d2E955fA55e3fa641Fe90e08b677188d35"
          }
        }
      },
      "Order": {
        "type": "object",
        "description": "A single swap order to be solved.\n\nAn order specifies an intent to swap one token for another.",
        "required": [
          "token_in",
          "token_out",
          "amount",
          "side",
          "sender"
        ],
        "properties": {
          "amount": {
            "type": "string",
            "description": "Amount to swap, interpreted according to `side` (in token units, as decimal string).",
            "example": "1000000000000000000"
          },
          "receiver": {
            "type": [
              "string",
              "null"
            ],
            "description": "Address that will receive the output tokens.\n\nDefaults to `sender` if not specified.",
            "example": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
          },
          "sender": {
            "type": "string",
            "description": "Address that will send the input tokens.",
            "example": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
          },
          "side": {
            "$ref": "#/components/schemas/OrderSide",
            "description": "Whether this is a sell (exact input) or buy (exact output) order."
          },
          "token_in": {
            "type": "string",
            "description": "Input token address (the token being sold).",
            "example": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
          },
          "token_out": {
            "type": "string",
            "description": "Output token address (the token being bought).",
            "example": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
          }
        }
      },
      "OrderQuote": {
        "type": "object",
        "description": "Quote for a single [`Order`].\n\nContains the route to execute (if found), along with expected amounts,\ngas estimates, and status information.",
        "required": [
          "order_id",
          "status",
          "amount_in",
          "amount_out",
          "gas_estimate",
          "amount_out_net_gas",
          "block"
        ],
        "properties": {
          "amount_in": {
            "type": "string",
            "description": "Amount of input token (in token units, as decimal string).",
            "example": "1000000000000000000"
          },
          "amount_out": {
            "type": "string",
            "description": "Amount of output token (in token units, as decimal string).",
            "example": "3500000000"
          },
          "amount_out_net_gas": {
            "type": "string",
            "description": "Amount out minus gas cost in output token terms.\nUsed by WorkerPoolRouter to compare solutions from different solvers.",
            "example": "3498000000"
          },
          "block": {
            "$ref": "#/components/schemas/BlockInfo",
            "description": "Block at which this quote was computed."
          },
          "fee_breakdown": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/FeeBreakdown",
                "description": "Fee breakdown (populated when encoding options are provided)."
              }
            ]
          },
          "gas_estimate": {
            "type": "string",
            "description": "Estimated gas cost for executing this route (as decimal string).",
            "example": "150000"
          },
          "gas_price": {
            "type": [
              "string",
              "null"
            ],
            "description": "Effective gas price (in wei) at the time the route was computed.",
            "example": "20000000000"
          },
          "order_id": {
            "type": "string",
            "description": "ID of the order this solution corresponds to.",
            "example": "f47ac10b-58cc-4372-a567-0e02b2c3d479"
          },
          "price_impact_bps": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int32",
            "description": "Price impact in basis points (1 bip = 0.01%)."
          },
          "route": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/Route",
                "description": "The route to execute, if a valid route was found."
              }
            ]
          },
          "status": {
            "$ref": "#/components/schemas/QuoteStatus",
            "description": "Status indicating whether a route was found."
          },
          "transaction": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/Transaction",
                "description": "An encoded EVM transaction ready to be submitted on-chain."
              }
            ]
          }
        }
      },
      "OrderSide": {
        "type": "string",
        "description": "Specifies the side of an order: sell (exact input) or buy (exact output).\n\nCurrently only `Sell` is supported. `Buy` will be added in a future version.",
        "enum": [
          "sell"
        ]
      },
      "PermitDetails": {
        "type": "object",
        "description": "Details for a permit2 single-token permit.",
        "required": [
          "token",
          "amount",
          "expiration",
          "nonce"
        ],
        "properties": {
          "amount": {
            "type": "string",
            "description": "Amount of tokens approved.",
            "example": "1000000000000000000"
          },
          "expiration": {
            "type": "string",
            "description": "Expiration timestamp for the permit.",
            "example": "1893456000"
          },
          "nonce": {
            "type": "string",
            "description": "Nonce to prevent replay attacks.",
            "example": "0"
          },
          "token": {
            "type": "string",
            "description": "Token address for which the permit is granted.",
            "example": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
          }
        }
      },
      "PermitSingle": {
        "type": "object",
        "description": "A single permit for permit2 token transfer authorization.",
        "required": [
          "details",
          "spender",
          "sig_deadline"
        ],
        "properties": {
          "details": {
            "$ref": "#/components/schemas/PermitDetails",
            "description": "The permit details (token, amount, expiration, nonce)."
          },
          "sig_deadline": {
            "type": "string",
            "description": "Deadline timestamp for the permit signature.",
            "example": "1893456000"
          },
          "spender": {
            "type": "string",
            "description": "Address authorized to spend the tokens (typically the router).",
            "example": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
          }
        }
      },
      "PriceGuardConfig": {
        "type": "object",
        "description": "Per-request overrides for price guard validation.\n\nAll fields are optional. When `None`, the server's configured defaults are used.",
        "properties": {
          "enabled": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Whether price guard validation is enabled."
          },
          "fail_on_provider_error": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Whether to reject solutions when no provider can return a price."
          },
          "fail_on_token_price_not_found": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Whether to reject solutions when no provider returns price for token pair."
          },
          "lower_tolerance_bps": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int32",
            "description": "Maximum allowed deviation when `amount_out < expected`, in basis points.",
            "example": 300,
            "minimum": 0
          },
          "upper_tolerance_bps": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int32",
            "description": "Maximum allowed deviation when `amount_out >= expected`, in basis points.",
            "example": 10000,
            "minimum": 0
          }
        }
      },
      "Quote": {
        "type": "object",
        "description": "Complete solution for a [`QuoteRequest`].\n\nContains a solution for each order in the request, along with aggregate\ngas estimates and timing information.",
        "required": [
          "orders",
          "total_gas_estimate",
          "solve_time_ms"
        ],
        "properties": {
          "orders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OrderQuote"
            },
            "description": "Quotes for each order, in the same order as the request."
          },
          "solve_time_ms": {
            "type": "integer",
            "format": "int64",
            "description": "Time taken to compute this solution, in milliseconds.",
            "example": 12,
            "minimum": 0
          },
          "total_gas_estimate": {
            "type": "string",
            "description": "Total estimated gas for executing all swaps (as decimal string).",
            "example": "150000"
          }
        }
      },
      "QuoteOptions": {
        "type": "object",
        "description": "Options to customize the solving behavior.",
        "properties": {
          "encoding_options": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/EncodingOptions",
                "description": "Options during encoding. If None, quote will be returned without calldata."
              }
            ]
          },
          "max_gas": {
            "type": [
              "string",
              "null"
            ],
            "description": "Maximum gas cost allowed for a solution. Quotes exceeding this are filtered out.",
            "example": "500000"
          },
          "min_responses": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minimum number of solver responses to wait for before returning.\nIf `None` or `0`, waits for all solvers to respond (or timeout).\n\nUse the `/health` endpoint to check `num_solver_pools` before setting this value.\nValues exceeding the number of active solver pools are clamped internally.",
            "minimum": 0
          },
          "timeout_ms": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "description": "Timeout in milliseconds. If `None`, uses server default.",
            "example": 2000,
            "minimum": 0
          }
        }
      },
      "QuoteRequest": {
        "type": "object",
        "description": "Request to solve one or more swap orders.",
        "required": [
          "orders"
        ],
        "properties": {
          "options": {
            "$ref": "#/components/schemas/QuoteOptions",
            "description": "Optional solving parameters that apply to all orders."
          },
          "orders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Order"
            },
            "description": "Orders to solve."
          }
        }
      },
      "QuoteStatus": {
        "type": "string",
        "description": "Status of an order quote.",
        "enum": [
          "success",
          "no_route_found",
          "insufficient_liquidity",
          "timeout",
          "not_ready",
          "price_check_failed"
        ]
      },
      "Route": {
        "type": "object",
        "description": "A route consisting of one or more sequential swaps.\n\nA route describes the path through liquidity pools to execute a swap.\nFor multi-hop swaps, the output of each swap becomes the input of the next.",
        "required": [
          "swaps"
        ],
        "properties": {
          "swaps": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Swap"
            },
            "description": "Ordered sequence of swaps to execute."
          }
        }
      },
      "Swap": {
        "type": "object",
        "description": "A single swap within a route.\n\nRepresents an atomic swap on a specific liquidity pool (component).",
        "required": [
          "component_id",
          "protocol",
          "token_in",
          "token_out",
          "amount_in",
          "amount_out",
          "gas_estimate",
          "split"
        ],
        "properties": {
          "amount_in": {
            "type": "string",
            "description": "Amount of input token (in token units, as decimal string).",
            "example": "1000000000000000000"
          },
          "amount_out": {
            "type": "string",
            "description": "Amount of output token (in token units, as decimal string).",
            "example": "3500000000"
          },
          "component_id": {
            "type": "string",
            "description": "Identifier of the liquidity pool component.",
            "example": "0xb4e16d0168e52d35cacd2c6185b44281ec28c9dc"
          },
          "gas_estimate": {
            "type": "string",
            "description": "Estimated gas cost for this swap (as decimal string).",
            "example": "150000"
          },
          "protocol": {
            "type": "string",
            "description": "Protocol system identifier (e.g., \"uniswap_v2\", \"uniswap_v3\", \"vm:balancer\").",
            "example": "uniswap_v2"
          },
          "split": {
            "type": "number",
            "format": "double",
            "description": "Decimal of the amount to be swapped in this operation (for example, 0.5 means 50%)",
            "example": "0.0"
          },
          "token_in": {
            "type": "string",
            "description": "Input token address.",
            "example": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
          },
          "token_out": {
            "type": "string",
            "description": "Output token address.",
            "example": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
          }
        }
      },
      "Transaction": {
        "type": "object",
        "description": "An encoded EVM transaction ready to be submitted on-chain.",
        "required": [
          "to",
          "value",
          "data"
        ],
        "properties": {
          "data": {
            "type": "string",
            "description": "ABI-encoded calldata as hex string.",
            "example": "0x1234567890abcdef"
          },
          "to": {
            "type": "string",
            "description": "Contract address to call.",
            "example": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
          },
          "value": {
            "type": "string",
            "description": "Native token value to send with the transaction (as decimal string).",
            "example": "0"
          }
        }
      },
      "UserTransferType": {
        "type": "string",
        "description": "Token transfer method for moving funds into Tycho execution.",
        "enum": [
          "transfer_from_permit2",
          "transfer_from",
          "use_vaults_funds"
        ]
      }
    }
  }
}