@n8n-dev/n8n-nodes-0x-cross-chain 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1302 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.crossChainDescription = void 0;
4
+ exports.crossChainDescription = [
5
+ {
6
+ "displayName": "Operation",
7
+ "name": "operation",
8
+ "type": "options",
9
+ "noDataExpression": true,
10
+ "displayOptions": {
11
+ "show": {
12
+ "resource": [
13
+ "Cross Chain"
14
+ ]
15
+ }
16
+ },
17
+ "options": [
18
+ {
19
+ "name": "Cross Chain Get Quotes",
20
+ "value": "Cross Chain Get Quotes",
21
+ "action": "getQuotes",
22
+ "description": "Get the quotes for a cross chain swap",
23
+ "routing": {
24
+ "request": {
25
+ "method": "GET",
26
+ "url": "=/cross-chain/quotes"
27
+ }
28
+ }
29
+ },
30
+ {
31
+ "name": "Cross Chain Get Status",
32
+ "value": "Cross Chain Get Status",
33
+ "action": "getStatus",
34
+ "description": "Get the status of a cross chain transaction",
35
+ "routing": {
36
+ "request": {
37
+ "method": "GET",
38
+ "url": "=/cross-chain/status"
39
+ }
40
+ }
41
+ },
42
+ {
43
+ "name": "Cross Chain List Sources",
44
+ "value": "Cross Chain List Sources",
45
+ "action": "listSources",
46
+ "description": "List available swap and bridge sources for a cross chain swap",
47
+ "routing": {
48
+ "request": {
49
+ "method": "GET",
50
+ "url": "=/cross-chain/sources"
51
+ }
52
+ }
53
+ },
54
+ {
55
+ "name": "Cross Chain Get Tx History",
56
+ "value": "Cross Chain Get Tx History",
57
+ "action": "getTxHistory",
58
+ "description": "Get cross-chain transaction history for a user wallet address. Note: this endpoint is in beta and still a work in progress — please reach out to the 0x team if you or your users run into any issues.",
59
+ "routing": {
60
+ "request": {
61
+ "method": "GET",
62
+ "url": "=/cross-chain/tx-history-beta"
63
+ }
64
+ }
65
+ },
66
+ {
67
+ "name": "Cross Chain Stream Quotes",
68
+ "value": "Cross Chain Stream Quotes",
69
+ "action": "streamQuotes",
70
+ "description": "Stream cross-chain quotes as they become available",
71
+ "routing": {
72
+ "request": {
73
+ "method": "GET",
74
+ "url": "=/cross-chain/quotes/stream"
75
+ }
76
+ }
77
+ }
78
+ ],
79
+ "default": ""
80
+ },
81
+ {
82
+ "displayName": "GET /cross-chain/quotes",
83
+ "name": "operation",
84
+ "type": "notice",
85
+ "typeOptions": {
86
+ "theme": "info"
87
+ },
88
+ "default": "",
89
+ "displayOptions": {
90
+ "show": {
91
+ "resource": [
92
+ "Cross Chain"
93
+ ],
94
+ "operation": [
95
+ "Cross Chain Get Quotes"
96
+ ]
97
+ }
98
+ }
99
+ },
100
+ {
101
+ "displayName": "0 X Api Key",
102
+ "name": "0x-api-key",
103
+ "required": true,
104
+ "description": "Visit dashboard.0x.org to get your API Key",
105
+ "default": "",
106
+ "type": "string",
107
+ "routing": {
108
+ "request": {
109
+ "headers": {
110
+ "0x-api-key": "={{ $value }}"
111
+ }
112
+ }
113
+ },
114
+ "displayOptions": {
115
+ "show": {
116
+ "resource": [
117
+ "Cross Chain"
118
+ ],
119
+ "operation": [
120
+ "Cross Chain Get Quotes"
121
+ ]
122
+ }
123
+ }
124
+ },
125
+ {
126
+ "displayName": "Origin Chain",
127
+ "name": "originChain",
128
+ "required": true,
129
+ "description": "The source chain from which the cross-chain swap will originate. Can be specified as chain ID or name. See [here](https://0x-docs.gitbook.io/0x-cross-chain-api-beta/developer-resources/supported-chains-and-providers) for the list of supported chains",
130
+ "default": 8453,
131
+ "type": "string",
132
+ "routing": {
133
+ "send": {
134
+ "type": "query",
135
+ "property": "originChain",
136
+ "value": "={{ $value }}",
137
+ "propertyInDotNotation": false
138
+ }
139
+ },
140
+ "displayOptions": {
141
+ "show": {
142
+ "resource": [
143
+ "Cross Chain"
144
+ ],
145
+ "operation": [
146
+ "Cross Chain Get Quotes"
147
+ ]
148
+ }
149
+ }
150
+ },
151
+ {
152
+ "displayName": "Destination Chain",
153
+ "name": "destinationChain",
154
+ "required": true,
155
+ "description": "The destination chain where tokens will be received after the cross-chain swap. Can be specified as chain ID or name. See [here](https://0x-docs.gitbook.io/0x-cross-chain-api-beta/developer-resources/supported-chains-and-providers) for the list of supported chains",
156
+ "default": 42161,
157
+ "type": "string",
158
+ "routing": {
159
+ "send": {
160
+ "type": "query",
161
+ "property": "destinationChain",
162
+ "value": "={{ $value }}",
163
+ "propertyInDotNotation": false
164
+ }
165
+ },
166
+ "displayOptions": {
167
+ "show": {
168
+ "resource": [
169
+ "Cross Chain"
170
+ ],
171
+ "operation": [
172
+ "Cross Chain Get Quotes"
173
+ ]
174
+ }
175
+ }
176
+ },
177
+ {
178
+ "displayName": "Sell Token",
179
+ "name": "sellToken",
180
+ "required": true,
181
+ "description": "The contract address of the token to sell on the origin chain. Format varies by chain type (EVM address for EVM/HyperCore chains, token mint address for Solana, base58check address for Tron)",
182
+ "default": "0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf",
183
+ "type": "string",
184
+ "routing": {
185
+ "send": {
186
+ "type": "query",
187
+ "property": "sellToken",
188
+ "value": "={{ $value }}",
189
+ "propertyInDotNotation": false
190
+ }
191
+ },
192
+ "displayOptions": {
193
+ "show": {
194
+ "resource": [
195
+ "Cross Chain"
196
+ ],
197
+ "operation": [
198
+ "Cross Chain Get Quotes"
199
+ ]
200
+ }
201
+ }
202
+ },
203
+ {
204
+ "displayName": "Buy Token",
205
+ "name": "buyToken",
206
+ "required": true,
207
+ "description": "The contract address of the token to buy on the destination chain. Format varies by chain type (EVM address for EVM/HyperCore chains, token mint address for Solana, base58check address for Tron)",
208
+ "default": "0xaf88d065e77c8cc2239327c5edb3a432268e5831",
209
+ "type": "string",
210
+ "routing": {
211
+ "send": {
212
+ "type": "query",
213
+ "property": "buyToken",
214
+ "value": "={{ $value }}",
215
+ "propertyInDotNotation": false
216
+ }
217
+ },
218
+ "displayOptions": {
219
+ "show": {
220
+ "resource": [
221
+ "Cross Chain"
222
+ ],
223
+ "operation": [
224
+ "Cross Chain Get Quotes"
225
+ ]
226
+ }
227
+ }
228
+ },
229
+ {
230
+ "displayName": "Sell Amount",
231
+ "name": "sellAmount",
232
+ "required": true,
233
+ "description": "The amount of `sellToken` (in `sellToken`'s base units) to sell on the origin chain",
234
+ "default": "2570",
235
+ "type": "string",
236
+ "routing": {
237
+ "send": {
238
+ "type": "query",
239
+ "property": "sellAmount",
240
+ "value": "={{ $value }}",
241
+ "propertyInDotNotation": false
242
+ }
243
+ },
244
+ "displayOptions": {
245
+ "show": {
246
+ "resource": [
247
+ "Cross Chain"
248
+ ],
249
+ "operation": [
250
+ "Cross Chain Get Quotes"
251
+ ]
252
+ }
253
+ }
254
+ },
255
+ {
256
+ "displayName": "Origin Address",
257
+ "name": "originAddress",
258
+ "required": true,
259
+ "description": "The wallet address on the origin chain that holds the sellToken balance and will initiate the cross-chain transaction",
260
+ "default": "0x56EB0aD2dC746540Fab5C02478B31e2AA9DdC38C",
261
+ "type": "string",
262
+ "routing": {
263
+ "send": {
264
+ "type": "query",
265
+ "property": "originAddress",
266
+ "value": "={{ $value }}",
267
+ "propertyInDotNotation": false
268
+ }
269
+ },
270
+ "displayOptions": {
271
+ "show": {
272
+ "resource": [
273
+ "Cross Chain"
274
+ ],
275
+ "operation": [
276
+ "Cross Chain Get Quotes"
277
+ ]
278
+ }
279
+ }
280
+ },
281
+ {
282
+ "displayName": "Destination Address",
283
+ "name": "destinationAddress",
284
+ "description": "The wallet address on the destination chain that will receive the buyToken. If not specified, defaults to originAddress on the destination chain",
285
+ "default": "0x56EB0aD2dC746540Fab5C02478B31e2AA9DdC38C",
286
+ "type": "string",
287
+ "routing": {
288
+ "send": {
289
+ "type": "query",
290
+ "property": "destinationAddress",
291
+ "value": "={{ $value }}",
292
+ "propertyInDotNotation": false
293
+ }
294
+ },
295
+ "displayOptions": {
296
+ "show": {
297
+ "resource": [
298
+ "Cross Chain"
299
+ ],
300
+ "operation": [
301
+ "Cross Chain Get Quotes"
302
+ ]
303
+ }
304
+ }
305
+ },
306
+ {
307
+ "displayName": "Gas Payer",
308
+ "name": "gasPayer",
309
+ "description": "The Solana address that will pay for transaction fees when the origin chain is Solana. Only applicable for Solana origin chains",
310
+ "default": "",
311
+ "type": "string",
312
+ "routing": {
313
+ "send": {
314
+ "type": "query",
315
+ "property": "gasPayer",
316
+ "value": "={{ $value }}",
317
+ "propertyInDotNotation": false
318
+ }
319
+ },
320
+ "displayOptions": {
321
+ "show": {
322
+ "resource": [
323
+ "Cross Chain"
324
+ ],
325
+ "operation": [
326
+ "Cross Chain Get Quotes"
327
+ ]
328
+ }
329
+ }
330
+ },
331
+ {
332
+ "displayName": "Slippage Bps",
333
+ "name": "slippageBps",
334
+ "description": "The maximum acceptable slippage for each swap or bridge step of the cross-chain swap in basis points (100 = 1%)",
335
+ "default": 100,
336
+ "type": "number",
337
+ "routing": {
338
+ "send": {
339
+ "type": "query",
340
+ "property": "slippageBps",
341
+ "value": "={{ $value }}",
342
+ "propertyInDotNotation": false
343
+ }
344
+ },
345
+ "displayOptions": {
346
+ "show": {
347
+ "resource": [
348
+ "Cross Chain"
349
+ ],
350
+ "operation": [
351
+ "Cross Chain Get Quotes"
352
+ ]
353
+ }
354
+ }
355
+ },
356
+ {
357
+ "displayName": "Excluded Bridges",
358
+ "name": "excludedBridges",
359
+ "description": "Comma-separated list of bridge providers to exclude from routing",
360
+ "default": "",
361
+ "type": "string",
362
+ "routing": {
363
+ "send": {
364
+ "type": "query",
365
+ "property": "excludedBridges",
366
+ "value": "={{ $value }}",
367
+ "propertyInDotNotation": false
368
+ }
369
+ },
370
+ "displayOptions": {
371
+ "show": {
372
+ "resource": [
373
+ "Cross Chain"
374
+ ],
375
+ "operation": [
376
+ "Cross Chain Get Quotes"
377
+ ]
378
+ }
379
+ }
380
+ },
381
+ {
382
+ "displayName": "Included Bridges",
383
+ "name": "includedBridges",
384
+ "description": "Comma-separated list of bridge providers to include in routing. Mutually exclusive with excludedBridges",
385
+ "default": "",
386
+ "type": "string",
387
+ "routing": {
388
+ "send": {
389
+ "type": "query",
390
+ "property": "includedBridges",
391
+ "value": "={{ $value }}",
392
+ "propertyInDotNotation": false
393
+ }
394
+ },
395
+ "displayOptions": {
396
+ "show": {
397
+ "resource": [
398
+ "Cross Chain"
399
+ ],
400
+ "operation": [
401
+ "Cross Chain Get Quotes"
402
+ ]
403
+ }
404
+ }
405
+ },
406
+ {
407
+ "displayName": "Excluded Swap Sources",
408
+ "name": "excludedSwapSources",
409
+ "description": "Comma-separated list of DEX sources to exclude from routing on both chains",
410
+ "default": "",
411
+ "type": "string",
412
+ "routing": {
413
+ "send": {
414
+ "type": "query",
415
+ "property": "excludedSwapSources",
416
+ "value": "={{ $value }}",
417
+ "propertyInDotNotation": false
418
+ }
419
+ },
420
+ "displayOptions": {
421
+ "show": {
422
+ "resource": [
423
+ "Cross Chain"
424
+ ],
425
+ "operation": [
426
+ "Cross Chain Get Quotes"
427
+ ]
428
+ }
429
+ }
430
+ },
431
+ {
432
+ "displayName": "Fee Bps",
433
+ "name": "feeBps",
434
+ "description": "The trading fee amounts in basis points to charge on the origin chain (supports single or comma-separated values). Must be used together with feeRecipient. When multiple values are provided, must match the length of feeRecipient. Note: integrator fee collection is not yet supported for Tron-originated routes.",
435
+ "default": "",
436
+ "type": "string",
437
+ "routing": {
438
+ "send": {
439
+ "type": "query",
440
+ "property": "feeBps",
441
+ "value": "={{ $value }}",
442
+ "propertyInDotNotation": false
443
+ }
444
+ },
445
+ "displayOptions": {
446
+ "show": {
447
+ "resource": [
448
+ "Cross Chain"
449
+ ],
450
+ "operation": [
451
+ "Cross Chain Get Quotes"
452
+ ]
453
+ }
454
+ }
455
+ },
456
+ {
457
+ "displayName": "Fee Recipient",
458
+ "name": "feeRecipient",
459
+ "description": "The wallet addresses to receive trading fees on the origin chain (supports single or comma-separated values). Must be used together with feeBps. When multiple values are provided, must match the length of feeBps. Note: integrator fee collection is not yet supported for Tron-originated routes.",
460
+ "default": "",
461
+ "type": "string",
462
+ "routing": {
463
+ "send": {
464
+ "type": "query",
465
+ "property": "feeRecipient",
466
+ "value": "={{ $value }}",
467
+ "propertyInDotNotation": false
468
+ }
469
+ },
470
+ "displayOptions": {
471
+ "show": {
472
+ "resource": [
473
+ "Cross Chain"
474
+ ],
475
+ "operation": [
476
+ "Cross Chain Get Quotes"
477
+ ]
478
+ }
479
+ }
480
+ },
481
+ {
482
+ "displayName": "Fee Token",
483
+ "name": "feeToken",
484
+ "description": "The token addresses for fee collection on the origin chain (supports single or comma-separated values). Must be the same as sellToken. When multiple values are provided, must match the length of feeBps. If omitted, defaults to sellToken. Note: integrator fee collection is not yet supported for Tron-originated routes.",
485
+ "default": "",
486
+ "type": "string",
487
+ "routing": {
488
+ "send": {
489
+ "type": "query",
490
+ "property": "feeToken",
491
+ "value": "={{ $value }}",
492
+ "propertyInDotNotation": false
493
+ }
494
+ },
495
+ "displayOptions": {
496
+ "show": {
497
+ "resource": [
498
+ "Cross Chain"
499
+ ],
500
+ "operation": [
501
+ "Cross Chain Get Quotes"
502
+ ]
503
+ }
504
+ }
505
+ },
506
+ {
507
+ "displayName": "Sort Quotes By",
508
+ "name": "sortQuotesBy",
509
+ "required": true,
510
+ "description": "How to sort the returned quotes - either by speed (fastest execution time) or price (best exchange rate)",
511
+ "default": "speed",
512
+ "type": "options",
513
+ "options": [
514
+ {
515
+ "name": "Speed",
516
+ "value": "speed"
517
+ },
518
+ {
519
+ "name": "Price",
520
+ "value": "price"
521
+ }
522
+ ],
523
+ "routing": {
524
+ "send": {
525
+ "type": "query",
526
+ "property": "sortQuotesBy",
527
+ "value": "={{ $value }}",
528
+ "propertyInDotNotation": false
529
+ }
530
+ },
531
+ "displayOptions": {
532
+ "show": {
533
+ "resource": [
534
+ "Cross Chain"
535
+ ],
536
+ "operation": [
537
+ "Cross Chain Get Quotes"
538
+ ]
539
+ }
540
+ }
541
+ },
542
+ {
543
+ "displayName": "Max Num Quotes",
544
+ "name": "maxNumQuotes",
545
+ "description": "The maximum number of cross-chain quotes to return, between 1 and 10. Each quote represents a different combination of bridges and DEXs",
546
+ "default": 3,
547
+ "type": "number",
548
+ "routing": {
549
+ "send": {
550
+ "type": "query",
551
+ "property": "maxNumQuotes",
552
+ "value": "={{ $value }}",
553
+ "propertyInDotNotation": false
554
+ }
555
+ },
556
+ "displayOptions": {
557
+ "show": {
558
+ "resource": [
559
+ "Cross Chain"
560
+ ],
561
+ "operation": [
562
+ "Cross Chain Get Quotes"
563
+ ]
564
+ }
565
+ }
566
+ },
567
+ {
568
+ "displayName": "GET /cross-chain/status",
569
+ "name": "operation",
570
+ "type": "notice",
571
+ "typeOptions": {
572
+ "theme": "info"
573
+ },
574
+ "default": "",
575
+ "displayOptions": {
576
+ "show": {
577
+ "resource": [
578
+ "Cross Chain"
579
+ ],
580
+ "operation": [
581
+ "Cross Chain Get Status"
582
+ ]
583
+ }
584
+ }
585
+ },
586
+ {
587
+ "displayName": "0 X Api Key",
588
+ "name": "0x-api-key",
589
+ "required": true,
590
+ "description": "Visit dashboard.0x.org to get your API Key",
591
+ "default": "",
592
+ "type": "string",
593
+ "routing": {
594
+ "request": {
595
+ "headers": {
596
+ "0x-api-key": "={{ $value }}"
597
+ }
598
+ }
599
+ },
600
+ "displayOptions": {
601
+ "show": {
602
+ "resource": [
603
+ "Cross Chain"
604
+ ],
605
+ "operation": [
606
+ "Cross Chain Get Status"
607
+ ]
608
+ }
609
+ }
610
+ },
611
+ {
612
+ "displayName": "Origin Chain",
613
+ "name": "originChain",
614
+ "required": true,
615
+ "description": "The origin chain where the cross-chain transaction was initiated",
616
+ "default": 8453,
617
+ "type": "string",
618
+ "routing": {
619
+ "send": {
620
+ "type": "query",
621
+ "property": "originChain",
622
+ "value": "={{ $value }}",
623
+ "propertyInDotNotation": false
624
+ }
625
+ },
626
+ "displayOptions": {
627
+ "show": {
628
+ "resource": [
629
+ "Cross Chain"
630
+ ],
631
+ "operation": [
632
+ "Cross Chain Get Status"
633
+ ]
634
+ }
635
+ }
636
+ },
637
+ {
638
+ "displayName": "Origin Tx Hash",
639
+ "name": "originTxHash",
640
+ "required": true,
641
+ "description": "The transaction hash on the origin chain to track. Format varies by chain type (32-byte hex for EVM/HyperCore, base58 signature for Solana, 64-char hex for Tron)",
642
+ "default": "0xe347e66b1d9793a11a962c1483f9eef03272c362c41dc1f21c87577ef5ec1a7c",
643
+ "type": "string",
644
+ "routing": {
645
+ "send": {
646
+ "type": "query",
647
+ "property": "originTxHash",
648
+ "value": "={{ $value }}",
649
+ "propertyInDotNotation": false
650
+ }
651
+ },
652
+ "displayOptions": {
653
+ "show": {
654
+ "resource": [
655
+ "Cross Chain"
656
+ ],
657
+ "operation": [
658
+ "Cross Chain Get Status"
659
+ ]
660
+ }
661
+ }
662
+ },
663
+ {
664
+ "displayName": "Quote Id",
665
+ "name": "quoteId",
666
+ "description": "The quote ID associated with the cross-chain transaction",
667
+ "default": "",
668
+ "type": "string",
669
+ "routing": {
670
+ "send": {
671
+ "type": "query",
672
+ "property": "quoteId",
673
+ "value": "={{ $value }}",
674
+ "propertyInDotNotation": false
675
+ }
676
+ },
677
+ "displayOptions": {
678
+ "show": {
679
+ "resource": [
680
+ "Cross Chain"
681
+ ],
682
+ "operation": [
683
+ "Cross Chain Get Status"
684
+ ]
685
+ }
686
+ }
687
+ },
688
+ {
689
+ "displayName": "GET /cross-chain/sources",
690
+ "name": "operation",
691
+ "type": "notice",
692
+ "typeOptions": {
693
+ "theme": "info"
694
+ },
695
+ "default": "",
696
+ "displayOptions": {
697
+ "show": {
698
+ "resource": [
699
+ "Cross Chain"
700
+ ],
701
+ "operation": [
702
+ "Cross Chain List Sources"
703
+ ]
704
+ }
705
+ }
706
+ },
707
+ {
708
+ "displayName": "0 X Api Key",
709
+ "name": "0x-api-key",
710
+ "required": true,
711
+ "description": "Visit dashboard.0x.org to get your API Key",
712
+ "default": "",
713
+ "type": "string",
714
+ "routing": {
715
+ "request": {
716
+ "headers": {
717
+ "0x-api-key": "={{ $value }}"
718
+ }
719
+ }
720
+ },
721
+ "displayOptions": {
722
+ "show": {
723
+ "resource": [
724
+ "Cross Chain"
725
+ ],
726
+ "operation": [
727
+ "Cross Chain List Sources"
728
+ ]
729
+ }
730
+ }
731
+ },
732
+ {
733
+ "displayName": "GET /cross-chain/tx-history-beta",
734
+ "name": "operation",
735
+ "type": "notice",
736
+ "typeOptions": {
737
+ "theme": "info"
738
+ },
739
+ "default": "",
740
+ "displayOptions": {
741
+ "show": {
742
+ "resource": [
743
+ "Cross Chain"
744
+ ],
745
+ "operation": [
746
+ "Cross Chain Get Tx History"
747
+ ]
748
+ }
749
+ }
750
+ },
751
+ {
752
+ "displayName": "0 X Api Key",
753
+ "name": "0x-api-key",
754
+ "required": true,
755
+ "description": "Visit dashboard.0x.org to get your API Key",
756
+ "default": "",
757
+ "type": "string",
758
+ "routing": {
759
+ "request": {
760
+ "headers": {
761
+ "0x-api-key": "={{ $value }}"
762
+ }
763
+ }
764
+ },
765
+ "displayOptions": {
766
+ "show": {
767
+ "resource": [
768
+ "Cross Chain"
769
+ ],
770
+ "operation": [
771
+ "Cross Chain Get Tx History"
772
+ ]
773
+ }
774
+ }
775
+ },
776
+ {
777
+ "displayName": "User",
778
+ "name": "user",
779
+ "required": true,
780
+ "description": "The wallet address of the user to get transaction history for. Accepts EVM (0x...), Solana, and Tron addresses",
781
+ "default": "",
782
+ "type": "string",
783
+ "routing": {
784
+ "send": {
785
+ "type": "query",
786
+ "property": "user",
787
+ "value": "={{ $value }}",
788
+ "propertyInDotNotation": false
789
+ }
790
+ },
791
+ "displayOptions": {
792
+ "show": {
793
+ "resource": [
794
+ "Cross Chain"
795
+ ],
796
+ "operation": [
797
+ "Cross Chain Get Tx History"
798
+ ]
799
+ }
800
+ }
801
+ },
802
+ {
803
+ "displayName": "Limit",
804
+ "name": "limit",
805
+ "description": "Maximum number of transactions to return",
806
+ "default": 20,
807
+ "type": "number",
808
+ "routing": {
809
+ "send": {
810
+ "type": "query",
811
+ "property": "limit",
812
+ "value": "={{ $value }}",
813
+ "propertyInDotNotation": false
814
+ }
815
+ },
816
+ "displayOptions": {
817
+ "show": {
818
+ "resource": [
819
+ "Cross Chain"
820
+ ],
821
+ "operation": [
822
+ "Cross Chain Get Tx History"
823
+ ]
824
+ }
825
+ }
826
+ },
827
+ {
828
+ "displayName": "Cursor",
829
+ "name": "cursor",
830
+ "default": "",
831
+ "type": "string",
832
+ "routing": {
833
+ "send": {
834
+ "type": "query",
835
+ "property": "cursor",
836
+ "value": "={{ $value }}",
837
+ "propertyInDotNotation": false
838
+ }
839
+ },
840
+ "displayOptions": {
841
+ "show": {
842
+ "resource": [
843
+ "Cross Chain"
844
+ ],
845
+ "operation": [
846
+ "Cross Chain Get Tx History"
847
+ ]
848
+ }
849
+ }
850
+ },
851
+ {
852
+ "displayName": "GET /cross-chain/quotes/stream",
853
+ "name": "operation",
854
+ "type": "notice",
855
+ "typeOptions": {
856
+ "theme": "info"
857
+ },
858
+ "default": "",
859
+ "displayOptions": {
860
+ "show": {
861
+ "resource": [
862
+ "Cross Chain"
863
+ ],
864
+ "operation": [
865
+ "Cross Chain Stream Quotes"
866
+ ]
867
+ }
868
+ }
869
+ },
870
+ {
871
+ "displayName": "0 X Api Key",
872
+ "name": "0x-api-key",
873
+ "required": true,
874
+ "description": "Visit dashboard.0x.org to get your API Key",
875
+ "default": "",
876
+ "type": "string",
877
+ "routing": {
878
+ "request": {
879
+ "headers": {
880
+ "0x-api-key": "={{ $value }}"
881
+ }
882
+ }
883
+ },
884
+ "displayOptions": {
885
+ "show": {
886
+ "resource": [
887
+ "Cross Chain"
888
+ ],
889
+ "operation": [
890
+ "Cross Chain Stream Quotes"
891
+ ]
892
+ }
893
+ }
894
+ },
895
+ {
896
+ "displayName": "Origin Chain",
897
+ "name": "originChain",
898
+ "required": true,
899
+ "description": "The source chain from which the cross-chain swap will originate. Can be specified as chain ID or name. See [here](https://0x-docs.gitbook.io/0x-cross-chain-api-beta/developer-resources/supported-chains-and-providers) for the list of supported chains",
900
+ "default": 8453,
901
+ "type": "string",
902
+ "routing": {
903
+ "send": {
904
+ "type": "query",
905
+ "property": "originChain",
906
+ "value": "={{ $value }}",
907
+ "propertyInDotNotation": false
908
+ }
909
+ },
910
+ "displayOptions": {
911
+ "show": {
912
+ "resource": [
913
+ "Cross Chain"
914
+ ],
915
+ "operation": [
916
+ "Cross Chain Stream Quotes"
917
+ ]
918
+ }
919
+ }
920
+ },
921
+ {
922
+ "displayName": "Destination Chain",
923
+ "name": "destinationChain",
924
+ "required": true,
925
+ "description": "The destination chain where tokens will be received after the cross-chain swap. Can be specified as chain ID or name. See [here](https://0x-docs.gitbook.io/0x-cross-chain-api-beta/developer-resources/supported-chains-and-providers) for the list of supported chains",
926
+ "default": 42161,
927
+ "type": "string",
928
+ "routing": {
929
+ "send": {
930
+ "type": "query",
931
+ "property": "destinationChain",
932
+ "value": "={{ $value }}",
933
+ "propertyInDotNotation": false
934
+ }
935
+ },
936
+ "displayOptions": {
937
+ "show": {
938
+ "resource": [
939
+ "Cross Chain"
940
+ ],
941
+ "operation": [
942
+ "Cross Chain Stream Quotes"
943
+ ]
944
+ }
945
+ }
946
+ },
947
+ {
948
+ "displayName": "Sell Token",
949
+ "name": "sellToken",
950
+ "required": true,
951
+ "description": "The contract address of the token to sell on the origin chain. Format varies by chain type (EVM address for EVM/HyperCore chains, token mint address for Solana, base58check address for Tron)",
952
+ "default": "0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf",
953
+ "type": "string",
954
+ "routing": {
955
+ "send": {
956
+ "type": "query",
957
+ "property": "sellToken",
958
+ "value": "={{ $value }}",
959
+ "propertyInDotNotation": false
960
+ }
961
+ },
962
+ "displayOptions": {
963
+ "show": {
964
+ "resource": [
965
+ "Cross Chain"
966
+ ],
967
+ "operation": [
968
+ "Cross Chain Stream Quotes"
969
+ ]
970
+ }
971
+ }
972
+ },
973
+ {
974
+ "displayName": "Buy Token",
975
+ "name": "buyToken",
976
+ "required": true,
977
+ "description": "The contract address of the token to buy on the destination chain. Format varies by chain type (EVM address for EVM/HyperCore chains, token mint address for Solana, base58check address for Tron)",
978
+ "default": "0xaf88d065e77c8cc2239327c5edb3a432268e5831",
979
+ "type": "string",
980
+ "routing": {
981
+ "send": {
982
+ "type": "query",
983
+ "property": "buyToken",
984
+ "value": "={{ $value }}",
985
+ "propertyInDotNotation": false
986
+ }
987
+ },
988
+ "displayOptions": {
989
+ "show": {
990
+ "resource": [
991
+ "Cross Chain"
992
+ ],
993
+ "operation": [
994
+ "Cross Chain Stream Quotes"
995
+ ]
996
+ }
997
+ }
998
+ },
999
+ {
1000
+ "displayName": "Sell Amount",
1001
+ "name": "sellAmount",
1002
+ "required": true,
1003
+ "description": "The amount of `sellToken` (in `sellToken`'s base units) to sell on the origin chain",
1004
+ "default": "2570",
1005
+ "type": "string",
1006
+ "routing": {
1007
+ "send": {
1008
+ "type": "query",
1009
+ "property": "sellAmount",
1010
+ "value": "={{ $value }}",
1011
+ "propertyInDotNotation": false
1012
+ }
1013
+ },
1014
+ "displayOptions": {
1015
+ "show": {
1016
+ "resource": [
1017
+ "Cross Chain"
1018
+ ],
1019
+ "operation": [
1020
+ "Cross Chain Stream Quotes"
1021
+ ]
1022
+ }
1023
+ }
1024
+ },
1025
+ {
1026
+ "displayName": "Origin Address",
1027
+ "name": "originAddress",
1028
+ "required": true,
1029
+ "description": "The wallet address on the origin chain that holds the sellToken balance and will initiate the cross-chain transaction",
1030
+ "default": "0x56EB0aD2dC746540Fab5C02478B31e2AA9DdC38C",
1031
+ "type": "string",
1032
+ "routing": {
1033
+ "send": {
1034
+ "type": "query",
1035
+ "property": "originAddress",
1036
+ "value": "={{ $value }}",
1037
+ "propertyInDotNotation": false
1038
+ }
1039
+ },
1040
+ "displayOptions": {
1041
+ "show": {
1042
+ "resource": [
1043
+ "Cross Chain"
1044
+ ],
1045
+ "operation": [
1046
+ "Cross Chain Stream Quotes"
1047
+ ]
1048
+ }
1049
+ }
1050
+ },
1051
+ {
1052
+ "displayName": "Destination Address",
1053
+ "name": "destinationAddress",
1054
+ "description": "The wallet address on the destination chain that will receive the buyToken. If not specified, defaults to originAddress on the destination chain",
1055
+ "default": "0x56EB0aD2dC746540Fab5C02478B31e2AA9DdC38C",
1056
+ "type": "string",
1057
+ "routing": {
1058
+ "send": {
1059
+ "type": "query",
1060
+ "property": "destinationAddress",
1061
+ "value": "={{ $value }}",
1062
+ "propertyInDotNotation": false
1063
+ }
1064
+ },
1065
+ "displayOptions": {
1066
+ "show": {
1067
+ "resource": [
1068
+ "Cross Chain"
1069
+ ],
1070
+ "operation": [
1071
+ "Cross Chain Stream Quotes"
1072
+ ]
1073
+ }
1074
+ }
1075
+ },
1076
+ {
1077
+ "displayName": "Gas Payer",
1078
+ "name": "gasPayer",
1079
+ "description": "The Solana address that will pay for transaction fees when the origin chain is Solana. Only applicable for Solana origin chains",
1080
+ "default": "",
1081
+ "type": "string",
1082
+ "routing": {
1083
+ "send": {
1084
+ "type": "query",
1085
+ "property": "gasPayer",
1086
+ "value": "={{ $value }}",
1087
+ "propertyInDotNotation": false
1088
+ }
1089
+ },
1090
+ "displayOptions": {
1091
+ "show": {
1092
+ "resource": [
1093
+ "Cross Chain"
1094
+ ],
1095
+ "operation": [
1096
+ "Cross Chain Stream Quotes"
1097
+ ]
1098
+ }
1099
+ }
1100
+ },
1101
+ {
1102
+ "displayName": "Slippage Bps",
1103
+ "name": "slippageBps",
1104
+ "description": "The maximum acceptable slippage for each swap or bridge step of the cross-chain swap in basis points (100 = 1%)",
1105
+ "default": 100,
1106
+ "type": "number",
1107
+ "routing": {
1108
+ "send": {
1109
+ "type": "query",
1110
+ "property": "slippageBps",
1111
+ "value": "={{ $value }}",
1112
+ "propertyInDotNotation": false
1113
+ }
1114
+ },
1115
+ "displayOptions": {
1116
+ "show": {
1117
+ "resource": [
1118
+ "Cross Chain"
1119
+ ],
1120
+ "operation": [
1121
+ "Cross Chain Stream Quotes"
1122
+ ]
1123
+ }
1124
+ }
1125
+ },
1126
+ {
1127
+ "displayName": "Excluded Bridges",
1128
+ "name": "excludedBridges",
1129
+ "description": "Comma-separated list of bridge providers to exclude from routing",
1130
+ "default": "",
1131
+ "type": "string",
1132
+ "routing": {
1133
+ "send": {
1134
+ "type": "query",
1135
+ "property": "excludedBridges",
1136
+ "value": "={{ $value }}",
1137
+ "propertyInDotNotation": false
1138
+ }
1139
+ },
1140
+ "displayOptions": {
1141
+ "show": {
1142
+ "resource": [
1143
+ "Cross Chain"
1144
+ ],
1145
+ "operation": [
1146
+ "Cross Chain Stream Quotes"
1147
+ ]
1148
+ }
1149
+ }
1150
+ },
1151
+ {
1152
+ "displayName": "Included Bridges",
1153
+ "name": "includedBridges",
1154
+ "description": "Comma-separated list of bridge providers to include in routing. Mutually exclusive with excludedBridges",
1155
+ "default": "",
1156
+ "type": "string",
1157
+ "routing": {
1158
+ "send": {
1159
+ "type": "query",
1160
+ "property": "includedBridges",
1161
+ "value": "={{ $value }}",
1162
+ "propertyInDotNotation": false
1163
+ }
1164
+ },
1165
+ "displayOptions": {
1166
+ "show": {
1167
+ "resource": [
1168
+ "Cross Chain"
1169
+ ],
1170
+ "operation": [
1171
+ "Cross Chain Stream Quotes"
1172
+ ]
1173
+ }
1174
+ }
1175
+ },
1176
+ {
1177
+ "displayName": "Excluded Swap Sources",
1178
+ "name": "excludedSwapSources",
1179
+ "description": "Comma-separated list of DEX sources to exclude from routing on both chains",
1180
+ "default": "",
1181
+ "type": "string",
1182
+ "routing": {
1183
+ "send": {
1184
+ "type": "query",
1185
+ "property": "excludedSwapSources",
1186
+ "value": "={{ $value }}",
1187
+ "propertyInDotNotation": false
1188
+ }
1189
+ },
1190
+ "displayOptions": {
1191
+ "show": {
1192
+ "resource": [
1193
+ "Cross Chain"
1194
+ ],
1195
+ "operation": [
1196
+ "Cross Chain Stream Quotes"
1197
+ ]
1198
+ }
1199
+ }
1200
+ },
1201
+ {
1202
+ "displayName": "Fee Bps",
1203
+ "name": "feeBps",
1204
+ "description": "The trading fee amounts in basis points to charge on the origin chain (supports single or comma-separated values). Must be used together with feeRecipient. When multiple values are provided, must match the length of feeRecipient. Note: integrator fee collection is not yet supported for Tron-originated routes.",
1205
+ "default": "",
1206
+ "type": "string",
1207
+ "routing": {
1208
+ "send": {
1209
+ "type": "query",
1210
+ "property": "feeBps",
1211
+ "value": "={{ $value }}",
1212
+ "propertyInDotNotation": false
1213
+ }
1214
+ },
1215
+ "displayOptions": {
1216
+ "show": {
1217
+ "resource": [
1218
+ "Cross Chain"
1219
+ ],
1220
+ "operation": [
1221
+ "Cross Chain Stream Quotes"
1222
+ ]
1223
+ }
1224
+ }
1225
+ },
1226
+ {
1227
+ "displayName": "Fee Recipient",
1228
+ "name": "feeRecipient",
1229
+ "description": "The wallet addresses to receive trading fees on the origin chain (supports single or comma-separated values). Must be used together with feeBps. When multiple values are provided, must match the length of feeBps. Note: integrator fee collection is not yet supported for Tron-originated routes.",
1230
+ "default": "",
1231
+ "type": "string",
1232
+ "routing": {
1233
+ "send": {
1234
+ "type": "query",
1235
+ "property": "feeRecipient",
1236
+ "value": "={{ $value }}",
1237
+ "propertyInDotNotation": false
1238
+ }
1239
+ },
1240
+ "displayOptions": {
1241
+ "show": {
1242
+ "resource": [
1243
+ "Cross Chain"
1244
+ ],
1245
+ "operation": [
1246
+ "Cross Chain Stream Quotes"
1247
+ ]
1248
+ }
1249
+ }
1250
+ },
1251
+ {
1252
+ "displayName": "Fee Token",
1253
+ "name": "feeToken",
1254
+ "description": "The token addresses for fee collection on the origin chain (supports single or comma-separated values). Must be the same as sellToken. When multiple values are provided, must match the length of feeBps. If omitted, defaults to sellToken. Note: integrator fee collection is not yet supported for Tron-originated routes.",
1255
+ "default": "",
1256
+ "type": "string",
1257
+ "routing": {
1258
+ "send": {
1259
+ "type": "query",
1260
+ "property": "feeToken",
1261
+ "value": "={{ $value }}",
1262
+ "propertyInDotNotation": false
1263
+ }
1264
+ },
1265
+ "displayOptions": {
1266
+ "show": {
1267
+ "resource": [
1268
+ "Cross Chain"
1269
+ ],
1270
+ "operation": [
1271
+ "Cross Chain Stream Quotes"
1272
+ ]
1273
+ }
1274
+ }
1275
+ },
1276
+ {
1277
+ "displayName": "Max Num Quotes",
1278
+ "name": "maxNumQuotes",
1279
+ "description": "The maximum number of cross-chain quotes to return, between 1 and 10. Each quote represents a different combination of bridges and DEXs",
1280
+ "default": 5,
1281
+ "type": "number",
1282
+ "routing": {
1283
+ "send": {
1284
+ "type": "query",
1285
+ "property": "maxNumQuotes",
1286
+ "value": "={{ $value }}",
1287
+ "propertyInDotNotation": false
1288
+ }
1289
+ },
1290
+ "displayOptions": {
1291
+ "show": {
1292
+ "resource": [
1293
+ "Cross Chain"
1294
+ ],
1295
+ "operation": [
1296
+ "Cross Chain Stream Quotes"
1297
+ ]
1298
+ }
1299
+ }
1300
+ },
1301
+ ];
1302
+ //# sourceMappingURL=index.js.map