@mobula_labs/types 0.1.10 → 0.1.11

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.
Files changed (77) hide show
  1. package/dist/cjs/index.cjs +4973 -3931
  2. package/dist/cjs/index.cjs.map +58 -52
  3. package/dist/esm/index.js +4973 -3931
  4. package/dist/esm/index.js.map +58 -52
  5. package/dist/index.d.ts +6 -0
  6. package/dist/misc/ApiKeysQueries.d.ts +1 -1
  7. package/dist/utils/functions/openAPIHelpers.d.ts +41 -0
  8. package/dist/utils/schemas/BaseMessage.d.ts +2 -0
  9. package/dist/utils/schemas/EnrichedMarketData.d.ts +138 -1
  10. package/dist/utils/schemas/MarketDetailsOutput.d.ts +169 -0
  11. package/dist/utils/schemas/SecuritySchemas.d.ts +9 -0
  12. package/dist/utils/schemas/TokenDetailsOutput.d.ts +32 -0
  13. package/dist/utils/schemas/WalletDeployerSchema.d.ts +124 -12
  14. package/dist/utils/schemas/WalletMetadataOutput.d.ts +21 -0
  15. package/dist/v1/market/FundingRateSchema.d.ts +3 -0
  16. package/dist/v1/market/HoldersSchema.d.ts +5 -0
  17. package/dist/v1/market/MarketBlockchainPairsSchema.d.ts +59 -0
  18. package/dist/v1/market/MarketDataSchema.d.ts +5 -0
  19. package/dist/v1/market/MarketHistoryPairSchema.d.ts +5 -0
  20. package/dist/v1/market/MarketLighthouseSchema.d.ts +2734 -0
  21. package/dist/v1/market/MarketMultiDataSchema.d.ts +9 -4
  22. package/dist/v1/market/MarketMultiHistorySchema.d.ts +5 -0
  23. package/dist/v1/market/MarketMultiPricesSchema.d.ts +4 -4
  24. package/dist/v1/market/MarketPairSchema.d.ts +54 -0
  25. package/dist/v1/market/MarketPairsSchema.d.ts +68 -0
  26. package/dist/v1/market/MarketQuerySchema.d.ts +5 -0
  27. package/dist/v1/market/MarketTokenVsMarketSchema.d.ts +4 -4
  28. package/dist/v1/metadata/MetadataSchema.d.ts +10 -0
  29. package/dist/v1/pulse/PulseSchema.d.ts +616 -0
  30. package/dist/v1/search/SearchSchema.d.ts +112 -0
  31. package/dist/v1/wallet/DeployerSchema.d.ts +72 -8
  32. package/dist/v1/wallet/HistorySchema.d.ts +5 -0
  33. package/dist/v1/wallet/WalletLabelSchema.d.ts +550 -0
  34. package/dist/v1/wallet/WalletNFTSchema.d.ts +5 -0
  35. package/dist/v1/wallet/WalletPortfolioSchema.d.ts +32 -0
  36. package/dist/v1/wallet/WalletTradesSchema.d.ts +133 -20
  37. package/dist/v1/wallet/WalletTransactionSchema.d.ts +12 -2
  38. package/dist/v2/asset/AssetDetailsSchema.d.ts +217 -1
  39. package/dist/v2/market/MarketDetailsSchema.d.ts +454 -0
  40. package/dist/v2/market/MarketOHLCVHistorySchema.d.ts +3 -3
  41. package/dist/v2/swap/SwapQuotingBatchOutput.d.ts +1647 -257
  42. package/dist/v2/swap/SwapQuotingBatchSchema.d.ts +12 -12
  43. package/dist/v2/swap/SwapQuotingOutput.d.ts +1396 -274
  44. package/dist/v2/swap/SwapQuotingSchema.d.ts +26 -3
  45. package/dist/v2/swap/SwapSendOutput.d.ts +105 -0
  46. package/dist/v2/swap/SwapSendSchema.d.ts +77 -4
  47. package/dist/v2/token/TokenAthSchema.d.ts +29 -1
  48. package/dist/v2/token/TokenDetailsSchema.d.ts +124 -1
  49. package/dist/v2/token/TokenMarketsSchema.d.ts +396 -0
  50. package/dist/v2/token/TokenOHLCVHistorySchema.d.ts +3 -3
  51. package/dist/v2/token/TokenPositionsSchema.d.ts +119 -12
  52. package/dist/v2/token/TokenPriceAtSchema.d.ts +131 -0
  53. package/dist/v2/token/TokenPriceHistorySchema.d.ts +13 -13
  54. package/dist/v2/token/TokenSecurityOutput.d.ts +192 -0
  55. package/dist/v2/token/TokenSecurityQuery.d.ts +13 -1
  56. package/dist/v2/token/TokenTradesSchema.d.ts +572 -3
  57. package/dist/v2/trades/EnrichedSwapsSchema.d.ts +15994 -0
  58. package/dist/v2/trades/TradesFiltersSchema.d.ts +49 -0
  59. package/dist/v2/wallet/WalletActivityV2Schema.d.ts +53 -0
  60. package/dist/v2/wallet/WalletAnalysisQuerySchema.d.ts +114 -18
  61. package/dist/v2/wallet/WalletDeployerSchema.d.ts +72 -8
  62. package/dist/v2/wallet/WalletPerpsPositionsSchema.d.ts +24 -24
  63. package/dist/v2/wallet/WalletPositionsSchema.d.ts +5979 -33
  64. package/dist/v2/wallet/WalletTokenBalancesSchema.d.ts +16 -0
  65. package/dist/v2/wallet/WalletTradesSchema.d.ts +446 -0
  66. package/dist/wss/FastTradePayloadSchema.d.ts +12 -1
  67. package/dist/wss/FundingPayloadSchema.d.ts +3 -0
  68. package/dist/wss/HoldersV2PayloadSchema.d.ts +30 -0
  69. package/dist/wss/MarketDetailsPayloadSchema.d.ts +3 -0
  70. package/dist/wss/OhlcvPayloadSchema.d.ts +3 -0
  71. package/dist/wss/TokenDetailsPayloadSchema.d.ts +3 -0
  72. package/dist/x402/X402AgentSchemas.d.ts +62 -0
  73. package/package.json +2 -2
  74. package/dist/v2/explorer/BlockDataQuerySchema.d.ts +0 -33
  75. package/dist/v2/explorer/ContractVerifyQuerySchema.ts +0 -27
  76. package/dist/v2/wallet/WalleAnalysisQuerySchema.d.ts +0 -1135
  77. package/dist/v2/wallet/WalleFundingQuerySchema.d.ts +0 -57
@@ -730,6 +730,19 @@ export declare const SwapQuotingDataSchema: z.ZodUnion<[z.ZodObject<{
730
730
  maxPriorityFeePerGas: z.ZodOptional<z.ZodString>;
731
731
  nonce: z.ZodOptional<z.ZodNumber>;
732
732
  chainId: z.ZodNumber;
733
+ /** Address the user must approve the sell token to (defaults to `to` if not set) */
734
+ approvalAddress: z.ZodOptional<z.ZodString>;
735
+ /** List of token approvals the user must execute before the swap */
736
+ approvals: z.ZodOptional<z.ZodArray<z.ZodObject<{
737
+ token: z.ZodString;
738
+ spender: z.ZodString;
739
+ }, "strip", z.ZodTypeAny, {
740
+ token: string;
741
+ spender: string;
742
+ }, {
743
+ token: string;
744
+ spender: string;
745
+ }>, "many">>;
733
746
  }, "strip", z.ZodTypeAny, {
734
747
  value: string;
735
748
  chainId: number;
@@ -741,6 +754,11 @@ export declare const SwapQuotingDataSchema: z.ZodUnion<[z.ZodObject<{
741
754
  maxFeePerGas?: string | undefined;
742
755
  maxPriorityFeePerGas?: string | undefined;
743
756
  nonce?: number | undefined;
757
+ approvalAddress?: string | undefined;
758
+ approvals?: {
759
+ token: string;
760
+ spender: string;
761
+ }[] | undefined;
744
762
  }, {
745
763
  value: string;
746
764
  chainId: number;
@@ -752,6 +770,11 @@ export declare const SwapQuotingDataSchema: z.ZodUnion<[z.ZodObject<{
752
770
  maxFeePerGas?: string | undefined;
753
771
  maxPriorityFeePerGas?: string | undefined;
754
772
  nonce?: number | undefined;
773
+ approvalAddress?: string | undefined;
774
+ approvals?: {
775
+ token: string;
776
+ spender: string;
777
+ }[] | undefined;
755
778
  }>;
756
779
  }, "strip", z.ZodTypeAny, {
757
780
  transaction: {
@@ -765,6 +788,11 @@ export declare const SwapQuotingDataSchema: z.ZodUnion<[z.ZodObject<{
765
788
  maxFeePerGas?: string | undefined;
766
789
  maxPriorityFeePerGas?: string | undefined;
767
790
  nonce?: number | undefined;
791
+ approvalAddress?: string | undefined;
792
+ approvals?: {
793
+ token: string;
794
+ spender: string;
795
+ }[] | undefined;
768
796
  };
769
797
  }, {
770
798
  transaction: {
@@ -778,6 +806,11 @@ export declare const SwapQuotingDataSchema: z.ZodUnion<[z.ZodObject<{
778
806
  maxFeePerGas?: string | undefined;
779
807
  maxPriorityFeePerGas?: string | undefined;
780
808
  nonce?: number | undefined;
809
+ approvalAddress?: string | undefined;
810
+ approvals?: {
811
+ token: string;
812
+ spender: string;
813
+ }[] | undefined;
781
814
  };
782
815
  }>;
783
816
  solana: z.ZodOptional<z.ZodNull>;
@@ -795,6 +828,11 @@ export declare const SwapQuotingDataSchema: z.ZodUnion<[z.ZodObject<{
795
828
  maxFeePerGas?: string | undefined;
796
829
  maxPriorityFeePerGas?: string | undefined;
797
830
  nonce?: number | undefined;
831
+ approvalAddress?: string | undefined;
832
+ approvals?: {
833
+ token: string;
834
+ spender: string;
835
+ }[] | undefined;
798
836
  };
799
837
  };
800
838
  fee?: {
@@ -869,6 +907,11 @@ export declare const SwapQuotingDataSchema: z.ZodUnion<[z.ZodObject<{
869
907
  maxFeePerGas?: string | undefined;
870
908
  maxPriorityFeePerGas?: string | undefined;
871
909
  nonce?: number | undefined;
910
+ approvalAddress?: string | undefined;
911
+ approvals?: {
912
+ token: string;
913
+ spender: string;
914
+ }[] | undefined;
872
915
  };
873
916
  };
874
917
  fee?: {
@@ -1208,10 +1251,43 @@ export declare const SwapQuotingDataSchema: z.ZodUnion<[z.ZodObject<{
1208
1251
  deductedFrom: "input" | "output";
1209
1252
  }>>;
1210
1253
  } & {
1254
+ /** Multi-lander candidate transactions (Solana only) */
1255
+ candidates: z.ZodArray<z.ZodObject<{
1256
+ /** Lander ID (e.g., 'jito', 'nozomi', 'zeroslot') */
1257
+ lander: z.ZodString;
1258
+ /** Base64-encoded serialized VersionedTransaction (unsigned) */
1259
+ serialized: z.ZodString;
1260
+ /** Tip account used for this candidate */
1261
+ tipAccount: z.ZodString;
1262
+ /** Tip amount in lamports */
1263
+ tipLamports: z.ZodNumber;
1264
+ }, "strip", z.ZodTypeAny, {
1265
+ serialized: string;
1266
+ lander: string;
1267
+ tipAccount: string;
1268
+ tipLamports: number;
1269
+ }, {
1270
+ serialized: string;
1271
+ lander: string;
1272
+ tipAccount: string;
1273
+ tipLamports: number;
1274
+ }>, "many">;
1275
+ /** Durable nonce account public key */
1276
+ nonceAccount: z.ZodString;
1277
+ /** Nonce authority public key (must co-sign) */
1278
+ nonceAuthority: z.ZodString;
1211
1279
  solana: z.ZodOptional<z.ZodNull>;
1212
1280
  evm: z.ZodOptional<z.ZodNull>;
1213
1281
  }, "strip", z.ZodTypeAny, {
1214
1282
  requestId: string;
1283
+ candidates: {
1284
+ serialized: string;
1285
+ lander: string;
1286
+ tipAccount: string;
1287
+ tipLamports: number;
1288
+ }[];
1289
+ nonceAccount: string;
1290
+ nonceAuthority: string;
1215
1291
  fee?: {
1216
1292
  amount: string;
1217
1293
  percentage: number;
@@ -1273,6 +1349,14 @@ export declare const SwapQuotingDataSchema: z.ZodUnion<[z.ZodObject<{
1273
1349
  evm?: null | undefined;
1274
1350
  }, {
1275
1351
  requestId: string;
1352
+ candidates: {
1353
+ serialized: string;
1354
+ lander: string;
1355
+ tipAccount: string;
1356
+ tipLamports: number;
1357
+ }[];
1358
+ nonceAccount: string;
1359
+ nonceAuthority: string;
1276
1360
  fee?: {
1277
1361
  amount: string;
1278
1362
  percentage: number;
@@ -1332,169 +1416,1012 @@ export declare const SwapQuotingDataSchema: z.ZodUnion<[z.ZodObject<{
1332
1416
  poolFeesPercentage?: number | undefined;
1333
1417
  solana?: null | undefined;
1334
1418
  evm?: null | undefined;
1335
- }>]>;
1336
- export declare const SwapQuotingOutputSchema: z.ZodObject<{
1337
- data: z.ZodUnion<[z.ZodObject<{
1338
- amountOutTokens: z.ZodOptional<z.ZodString>;
1339
- slippagePercentage: z.ZodOptional<z.ZodNumber>;
1340
- amountInUSD: z.ZodOptional<z.ZodNumber>;
1341
- amountOutUSD: z.ZodOptional<z.ZodNumber>;
1342
- marketImpactPercentage: z.ZodOptional<z.ZodNumber>;
1343
- poolFeesPercentage: z.ZodOptional<z.ZodNumber>;
1344
- tokenIn: z.ZodOptional<z.ZodObject<{
1345
- address: z.ZodString;
1346
- name: z.ZodOptional<z.ZodString>;
1347
- symbol: z.ZodOptional<z.ZodString>;
1348
- decimals: z.ZodNumber;
1349
- logo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1350
- }, "strip", z.ZodTypeAny, {
1351
- address: string;
1352
- decimals: number;
1353
- symbol?: string | undefined;
1354
- name?: string | undefined;
1355
- logo?: string | null | undefined;
1356
- }, {
1357
- address: string;
1358
- decimals: number;
1359
- symbol?: string | undefined;
1360
- name?: string | undefined;
1361
- logo?: string | null | undefined;
1362
- }>>;
1363
- tokenOut: z.ZodOptional<z.ZodObject<{
1364
- address: z.ZodString;
1365
- name: z.ZodOptional<z.ZodString>;
1366
- symbol: z.ZodOptional<z.ZodString>;
1367
- decimals: z.ZodNumber;
1368
- logo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1369
- }, "strip", z.ZodTypeAny, {
1370
- address: string;
1371
- decimals: number;
1372
- symbol?: string | undefined;
1373
- name?: string | undefined;
1374
- logo?: string | null | undefined;
1375
- }, {
1376
- address: string;
1377
- decimals: number;
1378
- symbol?: string | undefined;
1379
- name?: string | undefined;
1380
- logo?: string | null | undefined;
1381
- }>>;
1382
- requestId: z.ZodString;
1383
- details: z.ZodOptional<z.ZodObject<{
1384
- route: z.ZodOptional<z.ZodObject<{
1385
- hops: z.ZodArray<z.ZodObject<{
1386
- poolAddress: z.ZodString;
1387
- tokenIn: z.ZodObject<{
1388
- address: z.ZodString;
1389
- name: z.ZodOptional<z.ZodString>;
1390
- symbol: z.ZodOptional<z.ZodString>;
1391
- decimals: z.ZodNumber;
1392
- logo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1393
- }, "strip", z.ZodTypeAny, {
1394
- address: string;
1395
- decimals: number;
1396
- symbol?: string | undefined;
1397
- name?: string | undefined;
1398
- logo?: string | null | undefined;
1399
- }, {
1400
- address: string;
1401
- decimals: number;
1402
- symbol?: string | undefined;
1403
- name?: string | undefined;
1404
- logo?: string | null | undefined;
1405
- }>;
1406
- tokenOut: z.ZodObject<{
1407
- address: z.ZodString;
1408
- name: z.ZodOptional<z.ZodString>;
1409
- symbol: z.ZodOptional<z.ZodString>;
1410
- decimals: z.ZodNumber;
1411
- logo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1412
- }, "strip", z.ZodTypeAny, {
1413
- address: string;
1414
- decimals: number;
1415
- symbol?: string | undefined;
1416
- name?: string | undefined;
1417
- logo?: string | null | undefined;
1418
- }, {
1419
- address: string;
1420
- decimals: number;
1421
- symbol?: string | undefined;
1422
- name?: string | undefined;
1423
- logo?: string | null | undefined;
1424
- }>;
1425
- amountInTokens: z.ZodString;
1426
- amountOutTokens: z.ZodString;
1427
- exchange: z.ZodOptional<z.ZodString>;
1428
- poolType: z.ZodOptional<z.ZodString>;
1429
- feePercentage: z.ZodOptional<z.ZodNumber>;
1430
- feeBps: z.ZodOptional<z.ZodNumber>;
1419
+ }>, z.ZodObject<{
1420
+ amountOutTokens: z.ZodOptional<z.ZodString>;
1421
+ slippagePercentage: z.ZodOptional<z.ZodNumber>;
1422
+ amountInUSD: z.ZodOptional<z.ZodNumber>;
1423
+ amountOutUSD: z.ZodOptional<z.ZodNumber>;
1424
+ marketImpactPercentage: z.ZodOptional<z.ZodNumber>;
1425
+ poolFeesPercentage: z.ZodOptional<z.ZodNumber>;
1426
+ tokenIn: z.ZodOptional<z.ZodObject<{
1427
+ address: z.ZodString;
1428
+ name: z.ZodOptional<z.ZodString>;
1429
+ symbol: z.ZodOptional<z.ZodString>;
1430
+ decimals: z.ZodNumber;
1431
+ logo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1432
+ }, "strip", z.ZodTypeAny, {
1433
+ address: string;
1434
+ decimals: number;
1435
+ symbol?: string | undefined;
1436
+ name?: string | undefined;
1437
+ logo?: string | null | undefined;
1438
+ }, {
1439
+ address: string;
1440
+ decimals: number;
1441
+ symbol?: string | undefined;
1442
+ name?: string | undefined;
1443
+ logo?: string | null | undefined;
1444
+ }>>;
1445
+ tokenOut: z.ZodOptional<z.ZodObject<{
1446
+ address: z.ZodString;
1447
+ name: z.ZodOptional<z.ZodString>;
1448
+ symbol: z.ZodOptional<z.ZodString>;
1449
+ decimals: z.ZodNumber;
1450
+ logo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1451
+ }, "strip", z.ZodTypeAny, {
1452
+ address: string;
1453
+ decimals: number;
1454
+ symbol?: string | undefined;
1455
+ name?: string | undefined;
1456
+ logo?: string | null | undefined;
1457
+ }, {
1458
+ address: string;
1459
+ decimals: number;
1460
+ symbol?: string | undefined;
1461
+ name?: string | undefined;
1462
+ logo?: string | null | undefined;
1463
+ }>>;
1464
+ requestId: z.ZodString;
1465
+ details: z.ZodOptional<z.ZodObject<{
1466
+ route: z.ZodOptional<z.ZodObject<{
1467
+ hops: z.ZodArray<z.ZodObject<{
1468
+ poolAddress: z.ZodString;
1469
+ tokenIn: z.ZodObject<{
1470
+ address: z.ZodString;
1471
+ name: z.ZodOptional<z.ZodString>;
1472
+ symbol: z.ZodOptional<z.ZodString>;
1473
+ decimals: z.ZodNumber;
1474
+ logo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1431
1475
  }, "strip", z.ZodTypeAny, {
1432
- poolAddress: string;
1433
- tokenIn: {
1434
- address: string;
1435
- decimals: number;
1436
- symbol?: string | undefined;
1437
- name?: string | undefined;
1438
- logo?: string | null | undefined;
1439
- };
1440
- tokenOut: {
1441
- address: string;
1442
- decimals: number;
1443
- symbol?: string | undefined;
1444
- name?: string | undefined;
1445
- logo?: string | null | undefined;
1446
- };
1447
- amountInTokens: string;
1448
- amountOutTokens: string;
1449
- exchange?: string | undefined;
1450
- poolType?: string | undefined;
1451
- feePercentage?: number | undefined;
1452
- feeBps?: number | undefined;
1476
+ address: string;
1477
+ decimals: number;
1478
+ symbol?: string | undefined;
1479
+ name?: string | undefined;
1480
+ logo?: string | null | undefined;
1453
1481
  }, {
1454
- poolAddress: string;
1455
- tokenIn: {
1456
- address: string;
1457
- decimals: number;
1458
- symbol?: string | undefined;
1459
- name?: string | undefined;
1460
- logo?: string | null | undefined;
1461
- };
1462
- tokenOut: {
1463
- address: string;
1464
- decimals: number;
1465
- symbol?: string | undefined;
1466
- name?: string | undefined;
1467
- logo?: string | null | undefined;
1468
- };
1469
- amountInTokens: string;
1470
- amountOutTokens: string;
1471
- exchange?: string | undefined;
1472
- poolType?: string | undefined;
1473
- feePercentage?: number | undefined;
1474
- feeBps?: number | undefined;
1475
- }>, "many">;
1476
- totalFeePercentage: z.ZodOptional<z.ZodNumber>;
1477
- aggregator: z.ZodOptional<z.ZodString>;
1482
+ address: string;
1483
+ decimals: number;
1484
+ symbol?: string | undefined;
1485
+ name?: string | undefined;
1486
+ logo?: string | null | undefined;
1487
+ }>;
1488
+ tokenOut: z.ZodObject<{
1489
+ address: z.ZodString;
1490
+ name: z.ZodOptional<z.ZodString>;
1491
+ symbol: z.ZodOptional<z.ZodString>;
1492
+ decimals: z.ZodNumber;
1493
+ logo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1494
+ }, "strip", z.ZodTypeAny, {
1495
+ address: string;
1496
+ decimals: number;
1497
+ symbol?: string | undefined;
1498
+ name?: string | undefined;
1499
+ logo?: string | null | undefined;
1500
+ }, {
1501
+ address: string;
1502
+ decimals: number;
1503
+ symbol?: string | undefined;
1504
+ name?: string | undefined;
1505
+ logo?: string | null | undefined;
1506
+ }>;
1507
+ amountInTokens: z.ZodString;
1508
+ amountOutTokens: z.ZodString;
1509
+ exchange: z.ZodOptional<z.ZodString>;
1510
+ poolType: z.ZodOptional<z.ZodString>;
1511
+ feePercentage: z.ZodOptional<z.ZodNumber>;
1512
+ feeBps: z.ZodOptional<z.ZodNumber>;
1478
1513
  }, "strip", z.ZodTypeAny, {
1479
- hops: {
1480
- poolAddress: string;
1481
- tokenIn: {
1482
- address: string;
1483
- decimals: number;
1484
- symbol?: string | undefined;
1485
- name?: string | undefined;
1486
- logo?: string | null | undefined;
1487
- };
1488
- tokenOut: {
1489
- address: string;
1490
- decimals: number;
1491
- symbol?: string | undefined;
1492
- name?: string | undefined;
1493
- logo?: string | null | undefined;
1494
- };
1495
- amountInTokens: string;
1496
- amountOutTokens: string;
1497
- exchange?: string | undefined;
1514
+ poolAddress: string;
1515
+ tokenIn: {
1516
+ address: string;
1517
+ decimals: number;
1518
+ symbol?: string | undefined;
1519
+ name?: string | undefined;
1520
+ logo?: string | null | undefined;
1521
+ };
1522
+ tokenOut: {
1523
+ address: string;
1524
+ decimals: number;
1525
+ symbol?: string | undefined;
1526
+ name?: string | undefined;
1527
+ logo?: string | null | undefined;
1528
+ };
1529
+ amountInTokens: string;
1530
+ amountOutTokens: string;
1531
+ exchange?: string | undefined;
1532
+ poolType?: string | undefined;
1533
+ feePercentage?: number | undefined;
1534
+ feeBps?: number | undefined;
1535
+ }, {
1536
+ poolAddress: string;
1537
+ tokenIn: {
1538
+ address: string;
1539
+ decimals: number;
1540
+ symbol?: string | undefined;
1541
+ name?: string | undefined;
1542
+ logo?: string | null | undefined;
1543
+ };
1544
+ tokenOut: {
1545
+ address: string;
1546
+ decimals: number;
1547
+ symbol?: string | undefined;
1548
+ name?: string | undefined;
1549
+ logo?: string | null | undefined;
1550
+ };
1551
+ amountInTokens: string;
1552
+ amountOutTokens: string;
1553
+ exchange?: string | undefined;
1554
+ poolType?: string | undefined;
1555
+ feePercentage?: number | undefined;
1556
+ feeBps?: number | undefined;
1557
+ }>, "many">;
1558
+ totalFeePercentage: z.ZodOptional<z.ZodNumber>;
1559
+ aggregator: z.ZodOptional<z.ZodString>;
1560
+ }, "strip", z.ZodTypeAny, {
1561
+ hops: {
1562
+ poolAddress: string;
1563
+ tokenIn: {
1564
+ address: string;
1565
+ decimals: number;
1566
+ symbol?: string | undefined;
1567
+ name?: string | undefined;
1568
+ logo?: string | null | undefined;
1569
+ };
1570
+ tokenOut: {
1571
+ address: string;
1572
+ decimals: number;
1573
+ symbol?: string | undefined;
1574
+ name?: string | undefined;
1575
+ logo?: string | null | undefined;
1576
+ };
1577
+ amountInTokens: string;
1578
+ amountOutTokens: string;
1579
+ exchange?: string | undefined;
1580
+ poolType?: string | undefined;
1581
+ feePercentage?: number | undefined;
1582
+ feeBps?: number | undefined;
1583
+ }[];
1584
+ totalFeePercentage?: number | undefined;
1585
+ aggregator?: string | undefined;
1586
+ }, {
1587
+ hops: {
1588
+ poolAddress: string;
1589
+ tokenIn: {
1590
+ address: string;
1591
+ decimals: number;
1592
+ symbol?: string | undefined;
1593
+ name?: string | undefined;
1594
+ logo?: string | null | undefined;
1595
+ };
1596
+ tokenOut: {
1597
+ address: string;
1598
+ decimals: number;
1599
+ symbol?: string | undefined;
1600
+ name?: string | undefined;
1601
+ logo?: string | null | undefined;
1602
+ };
1603
+ amountInTokens: string;
1604
+ amountOutTokens: string;
1605
+ exchange?: string | undefined;
1606
+ poolType?: string | undefined;
1607
+ feePercentage?: number | undefined;
1608
+ feeBps?: number | undefined;
1609
+ }[];
1610
+ totalFeePercentage?: number | undefined;
1611
+ aggregator?: string | undefined;
1612
+ }>>;
1613
+ aggregator: z.ZodOptional<z.ZodString>;
1614
+ raw: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1615
+ }, "strip", z.ZodTypeAny, {
1616
+ raw?: Record<string, unknown> | undefined;
1617
+ aggregator?: string | undefined;
1618
+ route?: {
1619
+ hops: {
1620
+ poolAddress: string;
1621
+ tokenIn: {
1622
+ address: string;
1623
+ decimals: number;
1624
+ symbol?: string | undefined;
1625
+ name?: string | undefined;
1626
+ logo?: string | null | undefined;
1627
+ };
1628
+ tokenOut: {
1629
+ address: string;
1630
+ decimals: number;
1631
+ symbol?: string | undefined;
1632
+ name?: string | undefined;
1633
+ logo?: string | null | undefined;
1634
+ };
1635
+ amountInTokens: string;
1636
+ amountOutTokens: string;
1637
+ exchange?: string | undefined;
1638
+ poolType?: string | undefined;
1639
+ feePercentage?: number | undefined;
1640
+ feeBps?: number | undefined;
1641
+ }[];
1642
+ totalFeePercentage?: number | undefined;
1643
+ aggregator?: string | undefined;
1644
+ } | undefined;
1645
+ }, {
1646
+ raw?: Record<string, unknown> | undefined;
1647
+ aggregator?: string | undefined;
1648
+ route?: {
1649
+ hops: {
1650
+ poolAddress: string;
1651
+ tokenIn: {
1652
+ address: string;
1653
+ decimals: number;
1654
+ symbol?: string | undefined;
1655
+ name?: string | undefined;
1656
+ logo?: string | null | undefined;
1657
+ };
1658
+ tokenOut: {
1659
+ address: string;
1660
+ decimals: number;
1661
+ symbol?: string | undefined;
1662
+ name?: string | undefined;
1663
+ logo?: string | null | undefined;
1664
+ };
1665
+ amountInTokens: string;
1666
+ amountOutTokens: string;
1667
+ exchange?: string | undefined;
1668
+ poolType?: string | undefined;
1669
+ feePercentage?: number | undefined;
1670
+ feeBps?: number | undefined;
1671
+ }[];
1672
+ totalFeePercentage?: number | undefined;
1673
+ aggregator?: string | undefined;
1674
+ } | undefined;
1675
+ }>>;
1676
+ /** Integration fee details (if feePercentage and feeWallet were provided) */
1677
+ fee: z.ZodOptional<z.ZodObject<{
1678
+ /** Fee amount in human-readable format (e.g., "0.01" for 0.01 SOL) */
1679
+ amount: z.ZodString;
1680
+ /** Fee percentage applied (0.01 to 99) */
1681
+ percentage: z.ZodNumber;
1682
+ /** Wallet address receiving the fee */
1683
+ wallet: z.ZodString;
1684
+ /** Whether fee is deducted from input (SOL→token) or output (token→SOL) */
1685
+ deductedFrom: z.ZodEnum<["input", "output"]>;
1686
+ }, "strip", z.ZodTypeAny, {
1687
+ amount: string;
1688
+ percentage: number;
1689
+ wallet: string;
1690
+ deductedFrom: "input" | "output";
1691
+ }, {
1692
+ amount: string;
1693
+ percentage: number;
1694
+ wallet: string;
1695
+ deductedFrom: "input" | "output";
1696
+ }>>;
1697
+ } & {
1698
+ solana: z.ZodOptional<z.ZodNull>;
1699
+ evm: z.ZodOptional<z.ZodNull>;
1700
+ }, "strip", z.ZodTypeAny, {
1701
+ requestId: string;
1702
+ fee?: {
1703
+ amount: string;
1704
+ percentage: number;
1705
+ wallet: string;
1706
+ deductedFrom: "input" | "output";
1707
+ } | undefined;
1708
+ details?: {
1709
+ raw?: Record<string, unknown> | undefined;
1710
+ aggregator?: string | undefined;
1711
+ route?: {
1712
+ hops: {
1713
+ poolAddress: string;
1714
+ tokenIn: {
1715
+ address: string;
1716
+ decimals: number;
1717
+ symbol?: string | undefined;
1718
+ name?: string | undefined;
1719
+ logo?: string | null | undefined;
1720
+ };
1721
+ tokenOut: {
1722
+ address: string;
1723
+ decimals: number;
1724
+ symbol?: string | undefined;
1725
+ name?: string | undefined;
1726
+ logo?: string | null | undefined;
1727
+ };
1728
+ amountInTokens: string;
1729
+ amountOutTokens: string;
1730
+ exchange?: string | undefined;
1731
+ poolType?: string | undefined;
1732
+ feePercentage?: number | undefined;
1733
+ feeBps?: number | undefined;
1734
+ }[];
1735
+ totalFeePercentage?: number | undefined;
1736
+ aggregator?: string | undefined;
1737
+ } | undefined;
1738
+ } | undefined;
1739
+ tokenIn?: {
1740
+ address: string;
1741
+ decimals: number;
1742
+ symbol?: string | undefined;
1743
+ name?: string | undefined;
1744
+ logo?: string | null | undefined;
1745
+ } | undefined;
1746
+ tokenOut?: {
1747
+ address: string;
1748
+ decimals: number;
1749
+ symbol?: string | undefined;
1750
+ name?: string | undefined;
1751
+ logo?: string | null | undefined;
1752
+ } | undefined;
1753
+ amountOutTokens?: string | undefined;
1754
+ slippagePercentage?: number | undefined;
1755
+ amountInUSD?: number | undefined;
1756
+ amountOutUSD?: number | undefined;
1757
+ marketImpactPercentage?: number | undefined;
1758
+ poolFeesPercentage?: number | undefined;
1759
+ solana?: null | undefined;
1760
+ evm?: null | undefined;
1761
+ }, {
1762
+ requestId: string;
1763
+ fee?: {
1764
+ amount: string;
1765
+ percentage: number;
1766
+ wallet: string;
1767
+ deductedFrom: "input" | "output";
1768
+ } | undefined;
1769
+ details?: {
1770
+ raw?: Record<string, unknown> | undefined;
1771
+ aggregator?: string | undefined;
1772
+ route?: {
1773
+ hops: {
1774
+ poolAddress: string;
1775
+ tokenIn: {
1776
+ address: string;
1777
+ decimals: number;
1778
+ symbol?: string | undefined;
1779
+ name?: string | undefined;
1780
+ logo?: string | null | undefined;
1781
+ };
1782
+ tokenOut: {
1783
+ address: string;
1784
+ decimals: number;
1785
+ symbol?: string | undefined;
1786
+ name?: string | undefined;
1787
+ logo?: string | null | undefined;
1788
+ };
1789
+ amountInTokens: string;
1790
+ amountOutTokens: string;
1791
+ exchange?: string | undefined;
1792
+ poolType?: string | undefined;
1793
+ feePercentage?: number | undefined;
1794
+ feeBps?: number | undefined;
1795
+ }[];
1796
+ totalFeePercentage?: number | undefined;
1797
+ aggregator?: string | undefined;
1798
+ } | undefined;
1799
+ } | undefined;
1800
+ tokenIn?: {
1801
+ address: string;
1802
+ decimals: number;
1803
+ symbol?: string | undefined;
1804
+ name?: string | undefined;
1805
+ logo?: string | null | undefined;
1806
+ } | undefined;
1807
+ tokenOut?: {
1808
+ address: string;
1809
+ decimals: number;
1810
+ symbol?: string | undefined;
1811
+ name?: string | undefined;
1812
+ logo?: string | null | undefined;
1813
+ } | undefined;
1814
+ amountOutTokens?: string | undefined;
1815
+ slippagePercentage?: number | undefined;
1816
+ amountInUSD?: number | undefined;
1817
+ amountOutUSD?: number | undefined;
1818
+ marketImpactPercentage?: number | undefined;
1819
+ poolFeesPercentage?: number | undefined;
1820
+ solana?: null | undefined;
1821
+ evm?: null | undefined;
1822
+ }>]>;
1823
+ export declare const SwapQuotingOutputSchema: z.ZodObject<{
1824
+ data: z.ZodUnion<[z.ZodObject<{
1825
+ amountOutTokens: z.ZodOptional<z.ZodString>;
1826
+ slippagePercentage: z.ZodOptional<z.ZodNumber>;
1827
+ amountInUSD: z.ZodOptional<z.ZodNumber>;
1828
+ amountOutUSD: z.ZodOptional<z.ZodNumber>;
1829
+ marketImpactPercentage: z.ZodOptional<z.ZodNumber>;
1830
+ poolFeesPercentage: z.ZodOptional<z.ZodNumber>;
1831
+ tokenIn: z.ZodOptional<z.ZodObject<{
1832
+ address: z.ZodString;
1833
+ name: z.ZodOptional<z.ZodString>;
1834
+ symbol: z.ZodOptional<z.ZodString>;
1835
+ decimals: z.ZodNumber;
1836
+ logo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1837
+ }, "strip", z.ZodTypeAny, {
1838
+ address: string;
1839
+ decimals: number;
1840
+ symbol?: string | undefined;
1841
+ name?: string | undefined;
1842
+ logo?: string | null | undefined;
1843
+ }, {
1844
+ address: string;
1845
+ decimals: number;
1846
+ symbol?: string | undefined;
1847
+ name?: string | undefined;
1848
+ logo?: string | null | undefined;
1849
+ }>>;
1850
+ tokenOut: z.ZodOptional<z.ZodObject<{
1851
+ address: z.ZodString;
1852
+ name: z.ZodOptional<z.ZodString>;
1853
+ symbol: z.ZodOptional<z.ZodString>;
1854
+ decimals: z.ZodNumber;
1855
+ logo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1856
+ }, "strip", z.ZodTypeAny, {
1857
+ address: string;
1858
+ decimals: number;
1859
+ symbol?: string | undefined;
1860
+ name?: string | undefined;
1861
+ logo?: string | null | undefined;
1862
+ }, {
1863
+ address: string;
1864
+ decimals: number;
1865
+ symbol?: string | undefined;
1866
+ name?: string | undefined;
1867
+ logo?: string | null | undefined;
1868
+ }>>;
1869
+ requestId: z.ZodString;
1870
+ details: z.ZodOptional<z.ZodObject<{
1871
+ route: z.ZodOptional<z.ZodObject<{
1872
+ hops: z.ZodArray<z.ZodObject<{
1873
+ poolAddress: z.ZodString;
1874
+ tokenIn: z.ZodObject<{
1875
+ address: z.ZodString;
1876
+ name: z.ZodOptional<z.ZodString>;
1877
+ symbol: z.ZodOptional<z.ZodString>;
1878
+ decimals: z.ZodNumber;
1879
+ logo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1880
+ }, "strip", z.ZodTypeAny, {
1881
+ address: string;
1882
+ decimals: number;
1883
+ symbol?: string | undefined;
1884
+ name?: string | undefined;
1885
+ logo?: string | null | undefined;
1886
+ }, {
1887
+ address: string;
1888
+ decimals: number;
1889
+ symbol?: string | undefined;
1890
+ name?: string | undefined;
1891
+ logo?: string | null | undefined;
1892
+ }>;
1893
+ tokenOut: z.ZodObject<{
1894
+ address: z.ZodString;
1895
+ name: z.ZodOptional<z.ZodString>;
1896
+ symbol: z.ZodOptional<z.ZodString>;
1897
+ decimals: z.ZodNumber;
1898
+ logo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1899
+ }, "strip", z.ZodTypeAny, {
1900
+ address: string;
1901
+ decimals: number;
1902
+ symbol?: string | undefined;
1903
+ name?: string | undefined;
1904
+ logo?: string | null | undefined;
1905
+ }, {
1906
+ address: string;
1907
+ decimals: number;
1908
+ symbol?: string | undefined;
1909
+ name?: string | undefined;
1910
+ logo?: string | null | undefined;
1911
+ }>;
1912
+ amountInTokens: z.ZodString;
1913
+ amountOutTokens: z.ZodString;
1914
+ exchange: z.ZodOptional<z.ZodString>;
1915
+ poolType: z.ZodOptional<z.ZodString>;
1916
+ feePercentage: z.ZodOptional<z.ZodNumber>;
1917
+ feeBps: z.ZodOptional<z.ZodNumber>;
1918
+ }, "strip", z.ZodTypeAny, {
1919
+ poolAddress: string;
1920
+ tokenIn: {
1921
+ address: string;
1922
+ decimals: number;
1923
+ symbol?: string | undefined;
1924
+ name?: string | undefined;
1925
+ logo?: string | null | undefined;
1926
+ };
1927
+ tokenOut: {
1928
+ address: string;
1929
+ decimals: number;
1930
+ symbol?: string | undefined;
1931
+ name?: string | undefined;
1932
+ logo?: string | null | undefined;
1933
+ };
1934
+ amountInTokens: string;
1935
+ amountOutTokens: string;
1936
+ exchange?: string | undefined;
1937
+ poolType?: string | undefined;
1938
+ feePercentage?: number | undefined;
1939
+ feeBps?: number | undefined;
1940
+ }, {
1941
+ poolAddress: string;
1942
+ tokenIn: {
1943
+ address: string;
1944
+ decimals: number;
1945
+ symbol?: string | undefined;
1946
+ name?: string | undefined;
1947
+ logo?: string | null | undefined;
1948
+ };
1949
+ tokenOut: {
1950
+ address: string;
1951
+ decimals: number;
1952
+ symbol?: string | undefined;
1953
+ name?: string | undefined;
1954
+ logo?: string | null | undefined;
1955
+ };
1956
+ amountInTokens: string;
1957
+ amountOutTokens: string;
1958
+ exchange?: string | undefined;
1959
+ poolType?: string | undefined;
1960
+ feePercentage?: number | undefined;
1961
+ feeBps?: number | undefined;
1962
+ }>, "many">;
1963
+ totalFeePercentage: z.ZodOptional<z.ZodNumber>;
1964
+ aggregator: z.ZodOptional<z.ZodString>;
1965
+ }, "strip", z.ZodTypeAny, {
1966
+ hops: {
1967
+ poolAddress: string;
1968
+ tokenIn: {
1969
+ address: string;
1970
+ decimals: number;
1971
+ symbol?: string | undefined;
1972
+ name?: string | undefined;
1973
+ logo?: string | null | undefined;
1974
+ };
1975
+ tokenOut: {
1976
+ address: string;
1977
+ decimals: number;
1978
+ symbol?: string | undefined;
1979
+ name?: string | undefined;
1980
+ logo?: string | null | undefined;
1981
+ };
1982
+ amountInTokens: string;
1983
+ amountOutTokens: string;
1984
+ exchange?: string | undefined;
1985
+ poolType?: string | undefined;
1986
+ feePercentage?: number | undefined;
1987
+ feeBps?: number | undefined;
1988
+ }[];
1989
+ totalFeePercentage?: number | undefined;
1990
+ aggregator?: string | undefined;
1991
+ }, {
1992
+ hops: {
1993
+ poolAddress: string;
1994
+ tokenIn: {
1995
+ address: string;
1996
+ decimals: number;
1997
+ symbol?: string | undefined;
1998
+ name?: string | undefined;
1999
+ logo?: string | null | undefined;
2000
+ };
2001
+ tokenOut: {
2002
+ address: string;
2003
+ decimals: number;
2004
+ symbol?: string | undefined;
2005
+ name?: string | undefined;
2006
+ logo?: string | null | undefined;
2007
+ };
2008
+ amountInTokens: string;
2009
+ amountOutTokens: string;
2010
+ exchange?: string | undefined;
2011
+ poolType?: string | undefined;
2012
+ feePercentage?: number | undefined;
2013
+ feeBps?: number | undefined;
2014
+ }[];
2015
+ totalFeePercentage?: number | undefined;
2016
+ aggregator?: string | undefined;
2017
+ }>>;
2018
+ aggregator: z.ZodOptional<z.ZodString>;
2019
+ raw: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2020
+ }, "strip", z.ZodTypeAny, {
2021
+ raw?: Record<string, unknown> | undefined;
2022
+ aggregator?: string | undefined;
2023
+ route?: {
2024
+ hops: {
2025
+ poolAddress: string;
2026
+ tokenIn: {
2027
+ address: string;
2028
+ decimals: number;
2029
+ symbol?: string | undefined;
2030
+ name?: string | undefined;
2031
+ logo?: string | null | undefined;
2032
+ };
2033
+ tokenOut: {
2034
+ address: string;
2035
+ decimals: number;
2036
+ symbol?: string | undefined;
2037
+ name?: string | undefined;
2038
+ logo?: string | null | undefined;
2039
+ };
2040
+ amountInTokens: string;
2041
+ amountOutTokens: string;
2042
+ exchange?: string | undefined;
2043
+ poolType?: string | undefined;
2044
+ feePercentage?: number | undefined;
2045
+ feeBps?: number | undefined;
2046
+ }[];
2047
+ totalFeePercentage?: number | undefined;
2048
+ aggregator?: string | undefined;
2049
+ } | undefined;
2050
+ }, {
2051
+ raw?: Record<string, unknown> | undefined;
2052
+ aggregator?: string | undefined;
2053
+ route?: {
2054
+ hops: {
2055
+ poolAddress: string;
2056
+ tokenIn: {
2057
+ address: string;
2058
+ decimals: number;
2059
+ symbol?: string | undefined;
2060
+ name?: string | undefined;
2061
+ logo?: string | null | undefined;
2062
+ };
2063
+ tokenOut: {
2064
+ address: string;
2065
+ decimals: number;
2066
+ symbol?: string | undefined;
2067
+ name?: string | undefined;
2068
+ logo?: string | null | undefined;
2069
+ };
2070
+ amountInTokens: string;
2071
+ amountOutTokens: string;
2072
+ exchange?: string | undefined;
2073
+ poolType?: string | undefined;
2074
+ feePercentage?: number | undefined;
2075
+ feeBps?: number | undefined;
2076
+ }[];
2077
+ totalFeePercentage?: number | undefined;
2078
+ aggregator?: string | undefined;
2079
+ } | undefined;
2080
+ }>>;
2081
+ /** Integration fee details (if feePercentage and feeWallet were provided) */
2082
+ fee: z.ZodOptional<z.ZodObject<{
2083
+ /** Fee amount in human-readable format (e.g., "0.01" for 0.01 SOL) */
2084
+ amount: z.ZodString;
2085
+ /** Fee percentage applied (0.01 to 99) */
2086
+ percentage: z.ZodNumber;
2087
+ /** Wallet address receiving the fee */
2088
+ wallet: z.ZodString;
2089
+ /** Whether fee is deducted from input (SOL→token) or output (token→SOL) */
2090
+ deductedFrom: z.ZodEnum<["input", "output"]>;
2091
+ }, "strip", z.ZodTypeAny, {
2092
+ amount: string;
2093
+ percentage: number;
2094
+ wallet: string;
2095
+ deductedFrom: "input" | "output";
2096
+ }, {
2097
+ amount: string;
2098
+ percentage: number;
2099
+ wallet: string;
2100
+ deductedFrom: "input" | "output";
2101
+ }>>;
2102
+ } & {
2103
+ solana: z.ZodObject<{
2104
+ transaction: z.ZodObject<{
2105
+ serialized: z.ZodString;
2106
+ variant: z.ZodEnum<["legacy", "versioned"]>;
2107
+ }, "strip", z.ZodTypeAny, {
2108
+ serialized: string;
2109
+ variant: "legacy" | "versioned";
2110
+ }, {
2111
+ serialized: string;
2112
+ variant: "legacy" | "versioned";
2113
+ }>;
2114
+ /** The last block height at which the blockhash used in this transaction is valid */
2115
+ lastValidBlockHeight: z.ZodNumber;
2116
+ }, "strip", z.ZodTypeAny, {
2117
+ transaction: {
2118
+ serialized: string;
2119
+ variant: "legacy" | "versioned";
2120
+ };
2121
+ lastValidBlockHeight: number;
2122
+ }, {
2123
+ transaction: {
2124
+ serialized: string;
2125
+ variant: "legacy" | "versioned";
2126
+ };
2127
+ lastValidBlockHeight: number;
2128
+ }>;
2129
+ evm: z.ZodOptional<z.ZodNull>;
2130
+ }, "strip", z.ZodTypeAny, {
2131
+ requestId: string;
2132
+ solana: {
2133
+ transaction: {
2134
+ serialized: string;
2135
+ variant: "legacy" | "versioned";
2136
+ };
2137
+ lastValidBlockHeight: number;
2138
+ };
2139
+ fee?: {
2140
+ amount: string;
2141
+ percentage: number;
2142
+ wallet: string;
2143
+ deductedFrom: "input" | "output";
2144
+ } | undefined;
2145
+ details?: {
2146
+ raw?: Record<string, unknown> | undefined;
2147
+ aggregator?: string | undefined;
2148
+ route?: {
2149
+ hops: {
2150
+ poolAddress: string;
2151
+ tokenIn: {
2152
+ address: string;
2153
+ decimals: number;
2154
+ symbol?: string | undefined;
2155
+ name?: string | undefined;
2156
+ logo?: string | null | undefined;
2157
+ };
2158
+ tokenOut: {
2159
+ address: string;
2160
+ decimals: number;
2161
+ symbol?: string | undefined;
2162
+ name?: string | undefined;
2163
+ logo?: string | null | undefined;
2164
+ };
2165
+ amountInTokens: string;
2166
+ amountOutTokens: string;
2167
+ exchange?: string | undefined;
2168
+ poolType?: string | undefined;
2169
+ feePercentage?: number | undefined;
2170
+ feeBps?: number | undefined;
2171
+ }[];
2172
+ totalFeePercentage?: number | undefined;
2173
+ aggregator?: string | undefined;
2174
+ } | undefined;
2175
+ } | undefined;
2176
+ tokenIn?: {
2177
+ address: string;
2178
+ decimals: number;
2179
+ symbol?: string | undefined;
2180
+ name?: string | undefined;
2181
+ logo?: string | null | undefined;
2182
+ } | undefined;
2183
+ tokenOut?: {
2184
+ address: string;
2185
+ decimals: number;
2186
+ symbol?: string | undefined;
2187
+ name?: string | undefined;
2188
+ logo?: string | null | undefined;
2189
+ } | undefined;
2190
+ amountOutTokens?: string | undefined;
2191
+ slippagePercentage?: number | undefined;
2192
+ amountInUSD?: number | undefined;
2193
+ amountOutUSD?: number | undefined;
2194
+ marketImpactPercentage?: number | undefined;
2195
+ poolFeesPercentage?: number | undefined;
2196
+ evm?: null | undefined;
2197
+ }, {
2198
+ requestId: string;
2199
+ solana: {
2200
+ transaction: {
2201
+ serialized: string;
2202
+ variant: "legacy" | "versioned";
2203
+ };
2204
+ lastValidBlockHeight: number;
2205
+ };
2206
+ fee?: {
2207
+ amount: string;
2208
+ percentage: number;
2209
+ wallet: string;
2210
+ deductedFrom: "input" | "output";
2211
+ } | undefined;
2212
+ details?: {
2213
+ raw?: Record<string, unknown> | undefined;
2214
+ aggregator?: string | undefined;
2215
+ route?: {
2216
+ hops: {
2217
+ poolAddress: string;
2218
+ tokenIn: {
2219
+ address: string;
2220
+ decimals: number;
2221
+ symbol?: string | undefined;
2222
+ name?: string | undefined;
2223
+ logo?: string | null | undefined;
2224
+ };
2225
+ tokenOut: {
2226
+ address: string;
2227
+ decimals: number;
2228
+ symbol?: string | undefined;
2229
+ name?: string | undefined;
2230
+ logo?: string | null | undefined;
2231
+ };
2232
+ amountInTokens: string;
2233
+ amountOutTokens: string;
2234
+ exchange?: string | undefined;
2235
+ poolType?: string | undefined;
2236
+ feePercentage?: number | undefined;
2237
+ feeBps?: number | undefined;
2238
+ }[];
2239
+ totalFeePercentage?: number | undefined;
2240
+ aggregator?: string | undefined;
2241
+ } | undefined;
2242
+ } | undefined;
2243
+ tokenIn?: {
2244
+ address: string;
2245
+ decimals: number;
2246
+ symbol?: string | undefined;
2247
+ name?: string | undefined;
2248
+ logo?: string | null | undefined;
2249
+ } | undefined;
2250
+ tokenOut?: {
2251
+ address: string;
2252
+ decimals: number;
2253
+ symbol?: string | undefined;
2254
+ name?: string | undefined;
2255
+ logo?: string | null | undefined;
2256
+ } | undefined;
2257
+ amountOutTokens?: string | undefined;
2258
+ slippagePercentage?: number | undefined;
2259
+ amountInUSD?: number | undefined;
2260
+ amountOutUSD?: number | undefined;
2261
+ marketImpactPercentage?: number | undefined;
2262
+ poolFeesPercentage?: number | undefined;
2263
+ evm?: null | undefined;
2264
+ }>, z.ZodObject<{
2265
+ amountOutTokens: z.ZodOptional<z.ZodString>;
2266
+ slippagePercentage: z.ZodOptional<z.ZodNumber>;
2267
+ amountInUSD: z.ZodOptional<z.ZodNumber>;
2268
+ amountOutUSD: z.ZodOptional<z.ZodNumber>;
2269
+ marketImpactPercentage: z.ZodOptional<z.ZodNumber>;
2270
+ poolFeesPercentage: z.ZodOptional<z.ZodNumber>;
2271
+ tokenIn: z.ZodOptional<z.ZodObject<{
2272
+ address: z.ZodString;
2273
+ name: z.ZodOptional<z.ZodString>;
2274
+ symbol: z.ZodOptional<z.ZodString>;
2275
+ decimals: z.ZodNumber;
2276
+ logo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2277
+ }, "strip", z.ZodTypeAny, {
2278
+ address: string;
2279
+ decimals: number;
2280
+ symbol?: string | undefined;
2281
+ name?: string | undefined;
2282
+ logo?: string | null | undefined;
2283
+ }, {
2284
+ address: string;
2285
+ decimals: number;
2286
+ symbol?: string | undefined;
2287
+ name?: string | undefined;
2288
+ logo?: string | null | undefined;
2289
+ }>>;
2290
+ tokenOut: z.ZodOptional<z.ZodObject<{
2291
+ address: z.ZodString;
2292
+ name: z.ZodOptional<z.ZodString>;
2293
+ symbol: z.ZodOptional<z.ZodString>;
2294
+ decimals: z.ZodNumber;
2295
+ logo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2296
+ }, "strip", z.ZodTypeAny, {
2297
+ address: string;
2298
+ decimals: number;
2299
+ symbol?: string | undefined;
2300
+ name?: string | undefined;
2301
+ logo?: string | null | undefined;
2302
+ }, {
2303
+ address: string;
2304
+ decimals: number;
2305
+ symbol?: string | undefined;
2306
+ name?: string | undefined;
2307
+ logo?: string | null | undefined;
2308
+ }>>;
2309
+ requestId: z.ZodString;
2310
+ details: z.ZodOptional<z.ZodObject<{
2311
+ route: z.ZodOptional<z.ZodObject<{
2312
+ hops: z.ZodArray<z.ZodObject<{
2313
+ poolAddress: z.ZodString;
2314
+ tokenIn: z.ZodObject<{
2315
+ address: z.ZodString;
2316
+ name: z.ZodOptional<z.ZodString>;
2317
+ symbol: z.ZodOptional<z.ZodString>;
2318
+ decimals: z.ZodNumber;
2319
+ logo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2320
+ }, "strip", z.ZodTypeAny, {
2321
+ address: string;
2322
+ decimals: number;
2323
+ symbol?: string | undefined;
2324
+ name?: string | undefined;
2325
+ logo?: string | null | undefined;
2326
+ }, {
2327
+ address: string;
2328
+ decimals: number;
2329
+ symbol?: string | undefined;
2330
+ name?: string | undefined;
2331
+ logo?: string | null | undefined;
2332
+ }>;
2333
+ tokenOut: z.ZodObject<{
2334
+ address: z.ZodString;
2335
+ name: z.ZodOptional<z.ZodString>;
2336
+ symbol: z.ZodOptional<z.ZodString>;
2337
+ decimals: z.ZodNumber;
2338
+ logo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2339
+ }, "strip", z.ZodTypeAny, {
2340
+ address: string;
2341
+ decimals: number;
2342
+ symbol?: string | undefined;
2343
+ name?: string | undefined;
2344
+ logo?: string | null | undefined;
2345
+ }, {
2346
+ address: string;
2347
+ decimals: number;
2348
+ symbol?: string | undefined;
2349
+ name?: string | undefined;
2350
+ logo?: string | null | undefined;
2351
+ }>;
2352
+ amountInTokens: z.ZodString;
2353
+ amountOutTokens: z.ZodString;
2354
+ exchange: z.ZodOptional<z.ZodString>;
2355
+ poolType: z.ZodOptional<z.ZodString>;
2356
+ feePercentage: z.ZodOptional<z.ZodNumber>;
2357
+ feeBps: z.ZodOptional<z.ZodNumber>;
2358
+ }, "strip", z.ZodTypeAny, {
2359
+ poolAddress: string;
2360
+ tokenIn: {
2361
+ address: string;
2362
+ decimals: number;
2363
+ symbol?: string | undefined;
2364
+ name?: string | undefined;
2365
+ logo?: string | null | undefined;
2366
+ };
2367
+ tokenOut: {
2368
+ address: string;
2369
+ decimals: number;
2370
+ symbol?: string | undefined;
2371
+ name?: string | undefined;
2372
+ logo?: string | null | undefined;
2373
+ };
2374
+ amountInTokens: string;
2375
+ amountOutTokens: string;
2376
+ exchange?: string | undefined;
2377
+ poolType?: string | undefined;
2378
+ feePercentage?: number | undefined;
2379
+ feeBps?: number | undefined;
2380
+ }, {
2381
+ poolAddress: string;
2382
+ tokenIn: {
2383
+ address: string;
2384
+ decimals: number;
2385
+ symbol?: string | undefined;
2386
+ name?: string | undefined;
2387
+ logo?: string | null | undefined;
2388
+ };
2389
+ tokenOut: {
2390
+ address: string;
2391
+ decimals: number;
2392
+ symbol?: string | undefined;
2393
+ name?: string | undefined;
2394
+ logo?: string | null | undefined;
2395
+ };
2396
+ amountInTokens: string;
2397
+ amountOutTokens: string;
2398
+ exchange?: string | undefined;
2399
+ poolType?: string | undefined;
2400
+ feePercentage?: number | undefined;
2401
+ feeBps?: number | undefined;
2402
+ }>, "many">;
2403
+ totalFeePercentage: z.ZodOptional<z.ZodNumber>;
2404
+ aggregator: z.ZodOptional<z.ZodString>;
2405
+ }, "strip", z.ZodTypeAny, {
2406
+ hops: {
2407
+ poolAddress: string;
2408
+ tokenIn: {
2409
+ address: string;
2410
+ decimals: number;
2411
+ symbol?: string | undefined;
2412
+ name?: string | undefined;
2413
+ logo?: string | null | undefined;
2414
+ };
2415
+ tokenOut: {
2416
+ address: string;
2417
+ decimals: number;
2418
+ symbol?: string | undefined;
2419
+ name?: string | undefined;
2420
+ logo?: string | null | undefined;
2421
+ };
2422
+ amountInTokens: string;
2423
+ amountOutTokens: string;
2424
+ exchange?: string | undefined;
1498
2425
  poolType?: string | undefined;
1499
2426
  feePercentage?: number | undefined;
1500
2427
  feeBps?: number | undefined;
@@ -1613,41 +2540,122 @@ export declare const SwapQuotingOutputSchema: z.ZodObject<{
1613
2540
  deductedFrom: "input" | "output";
1614
2541
  }>>;
1615
2542
  } & {
1616
- solana: z.ZodObject<{
2543
+ evm: z.ZodObject<{
1617
2544
  transaction: z.ZodObject<{
1618
- serialized: z.ZodString;
1619
- variant: z.ZodEnum<["legacy", "versioned"]>;
2545
+ to: z.ZodString;
2546
+ from: z.ZodString;
2547
+ data: z.ZodString;
2548
+ value: z.ZodString;
2549
+ gasLimit: z.ZodOptional<z.ZodString>;
2550
+ gasPrice: z.ZodOptional<z.ZodString>;
2551
+ maxFeePerGas: z.ZodOptional<z.ZodString>;
2552
+ maxPriorityFeePerGas: z.ZodOptional<z.ZodString>;
2553
+ nonce: z.ZodOptional<z.ZodNumber>;
2554
+ chainId: z.ZodNumber;
2555
+ /** Address the user must approve the sell token to (defaults to `to` if not set) */
2556
+ approvalAddress: z.ZodOptional<z.ZodString>;
2557
+ /** List of token approvals the user must execute before the swap */
2558
+ approvals: z.ZodOptional<z.ZodArray<z.ZodObject<{
2559
+ token: z.ZodString;
2560
+ spender: z.ZodString;
2561
+ }, "strip", z.ZodTypeAny, {
2562
+ token: string;
2563
+ spender: string;
2564
+ }, {
2565
+ token: string;
2566
+ spender: string;
2567
+ }>, "many">>;
1620
2568
  }, "strip", z.ZodTypeAny, {
1621
- serialized: string;
1622
- variant: "legacy" | "versioned";
2569
+ value: string;
2570
+ chainId: number;
2571
+ data: string;
2572
+ from: string;
2573
+ to: string;
2574
+ gasLimit?: string | undefined;
2575
+ gasPrice?: string | undefined;
2576
+ maxFeePerGas?: string | undefined;
2577
+ maxPriorityFeePerGas?: string | undefined;
2578
+ nonce?: number | undefined;
2579
+ approvalAddress?: string | undefined;
2580
+ approvals?: {
2581
+ token: string;
2582
+ spender: string;
2583
+ }[] | undefined;
1623
2584
  }, {
1624
- serialized: string;
1625
- variant: "legacy" | "versioned";
2585
+ value: string;
2586
+ chainId: number;
2587
+ data: string;
2588
+ from: string;
2589
+ to: string;
2590
+ gasLimit?: string | undefined;
2591
+ gasPrice?: string | undefined;
2592
+ maxFeePerGas?: string | undefined;
2593
+ maxPriorityFeePerGas?: string | undefined;
2594
+ nonce?: number | undefined;
2595
+ approvalAddress?: string | undefined;
2596
+ approvals?: {
2597
+ token: string;
2598
+ spender: string;
2599
+ }[] | undefined;
1626
2600
  }>;
1627
- /** The last block height at which the blockhash used in this transaction is valid */
1628
- lastValidBlockHeight: z.ZodNumber;
1629
2601
  }, "strip", z.ZodTypeAny, {
1630
2602
  transaction: {
1631
- serialized: string;
1632
- variant: "legacy" | "versioned";
2603
+ value: string;
2604
+ chainId: number;
2605
+ data: string;
2606
+ from: string;
2607
+ to: string;
2608
+ gasLimit?: string | undefined;
2609
+ gasPrice?: string | undefined;
2610
+ maxFeePerGas?: string | undefined;
2611
+ maxPriorityFeePerGas?: string | undefined;
2612
+ nonce?: number | undefined;
2613
+ approvalAddress?: string | undefined;
2614
+ approvals?: {
2615
+ token: string;
2616
+ spender: string;
2617
+ }[] | undefined;
1633
2618
  };
1634
- lastValidBlockHeight: number;
1635
2619
  }, {
1636
2620
  transaction: {
1637
- serialized: string;
1638
- variant: "legacy" | "versioned";
2621
+ value: string;
2622
+ chainId: number;
2623
+ data: string;
2624
+ from: string;
2625
+ to: string;
2626
+ gasLimit?: string | undefined;
2627
+ gasPrice?: string | undefined;
2628
+ maxFeePerGas?: string | undefined;
2629
+ maxPriorityFeePerGas?: string | undefined;
2630
+ nonce?: number | undefined;
2631
+ approvalAddress?: string | undefined;
2632
+ approvals?: {
2633
+ token: string;
2634
+ spender: string;
2635
+ }[] | undefined;
1639
2636
  };
1640
- lastValidBlockHeight: number;
1641
2637
  }>;
1642
- evm: z.ZodOptional<z.ZodNull>;
2638
+ solana: z.ZodOptional<z.ZodNull>;
1643
2639
  }, "strip", z.ZodTypeAny, {
1644
2640
  requestId: string;
1645
- solana: {
2641
+ evm: {
1646
2642
  transaction: {
1647
- serialized: string;
1648
- variant: "legacy" | "versioned";
2643
+ value: string;
2644
+ chainId: number;
2645
+ data: string;
2646
+ from: string;
2647
+ to: string;
2648
+ gasLimit?: string | undefined;
2649
+ gasPrice?: string | undefined;
2650
+ maxFeePerGas?: string | undefined;
2651
+ maxPriorityFeePerGas?: string | undefined;
2652
+ nonce?: number | undefined;
2653
+ approvalAddress?: string | undefined;
2654
+ approvals?: {
2655
+ token: string;
2656
+ spender: string;
2657
+ }[] | undefined;
1649
2658
  };
1650
- lastValidBlockHeight: number;
1651
2659
  };
1652
2660
  fee?: {
1653
2661
  amount: string;
@@ -1706,15 +2714,27 @@ export declare const SwapQuotingOutputSchema: z.ZodObject<{
1706
2714
  amountOutUSD?: number | undefined;
1707
2715
  marketImpactPercentage?: number | undefined;
1708
2716
  poolFeesPercentage?: number | undefined;
1709
- evm?: null | undefined;
2717
+ solana?: null | undefined;
1710
2718
  }, {
1711
2719
  requestId: string;
1712
- solana: {
2720
+ evm: {
1713
2721
  transaction: {
1714
- serialized: string;
1715
- variant: "legacy" | "versioned";
2722
+ value: string;
2723
+ chainId: number;
2724
+ data: string;
2725
+ from: string;
2726
+ to: string;
2727
+ gasLimit?: string | undefined;
2728
+ gasPrice?: string | undefined;
2729
+ maxFeePerGas?: string | undefined;
2730
+ maxPriorityFeePerGas?: string | undefined;
2731
+ nonce?: number | undefined;
2732
+ approvalAddress?: string | undefined;
2733
+ approvals?: {
2734
+ token: string;
2735
+ spender: string;
2736
+ }[] | undefined;
1716
2737
  };
1717
- lastValidBlockHeight: number;
1718
2738
  };
1719
2739
  fee?: {
1720
2740
  amount: string;
@@ -1773,7 +2793,7 @@ export declare const SwapQuotingOutputSchema: z.ZodObject<{
1773
2793
  amountOutUSD?: number | undefined;
1774
2794
  marketImpactPercentage?: number | undefined;
1775
2795
  poolFeesPercentage?: number | undefined;
1776
- evm?: null | undefined;
2796
+ solana?: null | undefined;
1777
2797
  }>, z.ZodObject<{
1778
2798
  amountOutTokens: z.ZodOptional<z.ZodString>;
1779
2799
  slippagePercentage: z.ZodOptional<z.ZodNumber>;
@@ -2053,85 +3073,43 @@ export declare const SwapQuotingOutputSchema: z.ZodObject<{
2053
3073
  deductedFrom: "input" | "output";
2054
3074
  }>>;
2055
3075
  } & {
2056
- evm: z.ZodObject<{
2057
- transaction: z.ZodObject<{
2058
- to: z.ZodString;
2059
- from: z.ZodString;
2060
- data: z.ZodString;
2061
- value: z.ZodString;
2062
- gasLimit: z.ZodOptional<z.ZodString>;
2063
- gasPrice: z.ZodOptional<z.ZodString>;
2064
- maxFeePerGas: z.ZodOptional<z.ZodString>;
2065
- maxPriorityFeePerGas: z.ZodOptional<z.ZodString>;
2066
- nonce: z.ZodOptional<z.ZodNumber>;
2067
- chainId: z.ZodNumber;
2068
- }, "strip", z.ZodTypeAny, {
2069
- value: string;
2070
- chainId: number;
2071
- data: string;
2072
- from: string;
2073
- to: string;
2074
- gasLimit?: string | undefined;
2075
- gasPrice?: string | undefined;
2076
- maxFeePerGas?: string | undefined;
2077
- maxPriorityFeePerGas?: string | undefined;
2078
- nonce?: number | undefined;
2079
- }, {
2080
- value: string;
2081
- chainId: number;
2082
- data: string;
2083
- from: string;
2084
- to: string;
2085
- gasLimit?: string | undefined;
2086
- gasPrice?: string | undefined;
2087
- maxFeePerGas?: string | undefined;
2088
- maxPriorityFeePerGas?: string | undefined;
2089
- nonce?: number | undefined;
2090
- }>;
3076
+ /** Multi-lander candidate transactions (Solana only) */
3077
+ candidates: z.ZodArray<z.ZodObject<{
3078
+ /** Lander ID (e.g., 'jito', 'nozomi', 'zeroslot') */
3079
+ lander: z.ZodString;
3080
+ /** Base64-encoded serialized VersionedTransaction (unsigned) */
3081
+ serialized: z.ZodString;
3082
+ /** Tip account used for this candidate */
3083
+ tipAccount: z.ZodString;
3084
+ /** Tip amount in lamports */
3085
+ tipLamports: z.ZodNumber;
2091
3086
  }, "strip", z.ZodTypeAny, {
2092
- transaction: {
2093
- value: string;
2094
- chainId: number;
2095
- data: string;
2096
- from: string;
2097
- to: string;
2098
- gasLimit?: string | undefined;
2099
- gasPrice?: string | undefined;
2100
- maxFeePerGas?: string | undefined;
2101
- maxPriorityFeePerGas?: string | undefined;
2102
- nonce?: number | undefined;
2103
- };
3087
+ serialized: string;
3088
+ lander: string;
3089
+ tipAccount: string;
3090
+ tipLamports: number;
2104
3091
  }, {
2105
- transaction: {
2106
- value: string;
2107
- chainId: number;
2108
- data: string;
2109
- from: string;
2110
- to: string;
2111
- gasLimit?: string | undefined;
2112
- gasPrice?: string | undefined;
2113
- maxFeePerGas?: string | undefined;
2114
- maxPriorityFeePerGas?: string | undefined;
2115
- nonce?: number | undefined;
2116
- };
2117
- }>;
3092
+ serialized: string;
3093
+ lander: string;
3094
+ tipAccount: string;
3095
+ tipLamports: number;
3096
+ }>, "many">;
3097
+ /** Durable nonce account public key */
3098
+ nonceAccount: z.ZodString;
3099
+ /** Nonce authority public key (must co-sign) */
3100
+ nonceAuthority: z.ZodString;
2118
3101
  solana: z.ZodOptional<z.ZodNull>;
3102
+ evm: z.ZodOptional<z.ZodNull>;
2119
3103
  }, "strip", z.ZodTypeAny, {
2120
3104
  requestId: string;
2121
- evm: {
2122
- transaction: {
2123
- value: string;
2124
- chainId: number;
2125
- data: string;
2126
- from: string;
2127
- to: string;
2128
- gasLimit?: string | undefined;
2129
- gasPrice?: string | undefined;
2130
- maxFeePerGas?: string | undefined;
2131
- maxPriorityFeePerGas?: string | undefined;
2132
- nonce?: number | undefined;
2133
- };
2134
- };
3105
+ candidates: {
3106
+ serialized: string;
3107
+ lander: string;
3108
+ tipAccount: string;
3109
+ tipLamports: number;
3110
+ }[];
3111
+ nonceAccount: string;
3112
+ nonceAuthority: string;
2135
3113
  fee?: {
2136
3114
  amount: string;
2137
3115
  percentage: number;
@@ -2190,22 +3168,17 @@ export declare const SwapQuotingOutputSchema: z.ZodObject<{
2190
3168
  marketImpactPercentage?: number | undefined;
2191
3169
  poolFeesPercentage?: number | undefined;
2192
3170
  solana?: null | undefined;
3171
+ evm?: null | undefined;
2193
3172
  }, {
2194
3173
  requestId: string;
2195
- evm: {
2196
- transaction: {
2197
- value: string;
2198
- chainId: number;
2199
- data: string;
2200
- from: string;
2201
- to: string;
2202
- gasLimit?: string | undefined;
2203
- gasPrice?: string | undefined;
2204
- maxFeePerGas?: string | undefined;
2205
- maxPriorityFeePerGas?: string | undefined;
2206
- nonce?: number | undefined;
2207
- };
2208
- };
3174
+ candidates: {
3175
+ serialized: string;
3176
+ lander: string;
3177
+ tipAccount: string;
3178
+ tipLamports: number;
3179
+ }[];
3180
+ nonceAccount: string;
3181
+ nonceAuthority: string;
2209
3182
  fee?: {
2210
3183
  amount: string;
2211
3184
  percentage: number;
@@ -2264,6 +3237,7 @@ export declare const SwapQuotingOutputSchema: z.ZodObject<{
2264
3237
  marketImpactPercentage?: number | undefined;
2265
3238
  poolFeesPercentage?: number | undefined;
2266
3239
  solana?: null | undefined;
3240
+ evm?: null | undefined;
2267
3241
  }>, z.ZodObject<{
2268
3242
  amountOutTokens: z.ZodOptional<z.ZodString>;
2269
3243
  slippagePercentage: z.ZodOptional<z.ZodNumber>;
@@ -2751,6 +3725,11 @@ export declare const SwapQuotingOutputSchema: z.ZodObject<{
2751
3725
  maxFeePerGas?: string | undefined;
2752
3726
  maxPriorityFeePerGas?: string | undefined;
2753
3727
  nonce?: number | undefined;
3728
+ approvalAddress?: string | undefined;
3729
+ approvals?: {
3730
+ token: string;
3731
+ spender: string;
3732
+ }[] | undefined;
2754
3733
  };
2755
3734
  };
2756
3735
  fee?: {
@@ -2811,6 +3790,75 @@ export declare const SwapQuotingOutputSchema: z.ZodObject<{
2811
3790
  marketImpactPercentage?: number | undefined;
2812
3791
  poolFeesPercentage?: number | undefined;
2813
3792
  solana?: null | undefined;
3793
+ } | {
3794
+ requestId: string;
3795
+ candidates: {
3796
+ serialized: string;
3797
+ lander: string;
3798
+ tipAccount: string;
3799
+ tipLamports: number;
3800
+ }[];
3801
+ nonceAccount: string;
3802
+ nonceAuthority: string;
3803
+ fee?: {
3804
+ amount: string;
3805
+ percentage: number;
3806
+ wallet: string;
3807
+ deductedFrom: "input" | "output";
3808
+ } | undefined;
3809
+ details?: {
3810
+ raw?: Record<string, unknown> | undefined;
3811
+ aggregator?: string | undefined;
3812
+ route?: {
3813
+ hops: {
3814
+ poolAddress: string;
3815
+ tokenIn: {
3816
+ address: string;
3817
+ decimals: number;
3818
+ symbol?: string | undefined;
3819
+ name?: string | undefined;
3820
+ logo?: string | null | undefined;
3821
+ };
3822
+ tokenOut: {
3823
+ address: string;
3824
+ decimals: number;
3825
+ symbol?: string | undefined;
3826
+ name?: string | undefined;
3827
+ logo?: string | null | undefined;
3828
+ };
3829
+ amountInTokens: string;
3830
+ amountOutTokens: string;
3831
+ exchange?: string | undefined;
3832
+ poolType?: string | undefined;
3833
+ feePercentage?: number | undefined;
3834
+ feeBps?: number | undefined;
3835
+ }[];
3836
+ totalFeePercentage?: number | undefined;
3837
+ aggregator?: string | undefined;
3838
+ } | undefined;
3839
+ } | undefined;
3840
+ tokenIn?: {
3841
+ address: string;
3842
+ decimals: number;
3843
+ symbol?: string | undefined;
3844
+ name?: string | undefined;
3845
+ logo?: string | null | undefined;
3846
+ } | undefined;
3847
+ tokenOut?: {
3848
+ address: string;
3849
+ decimals: number;
3850
+ symbol?: string | undefined;
3851
+ name?: string | undefined;
3852
+ logo?: string | null | undefined;
3853
+ } | undefined;
3854
+ amountOutTokens?: string | undefined;
3855
+ slippagePercentage?: number | undefined;
3856
+ amountInUSD?: number | undefined;
3857
+ amountOutUSD?: number | undefined;
3858
+ marketImpactPercentage?: number | undefined;
3859
+ poolFeesPercentage?: number | undefined;
3860
+ solana?: null | undefined;
3861
+ evm?: null | undefined;
2814
3862
  } | {
2815
3863
  requestId: string;
2816
3864
  fee?: {
@@ -2956,6 +4004,11 @@ export declare const SwapQuotingOutputSchema: z.ZodObject<{
2956
4004
  maxFeePerGas?: string | undefined;
2957
4005
  maxPriorityFeePerGas?: string | undefined;
2958
4006
  nonce?: number | undefined;
4007
+ approvalAddress?: string | undefined;
4008
+ approvals?: {
4009
+ token: string;
4010
+ spender: string;
4011
+ }[] | undefined;
2959
4012
  };
2960
4013
  };
2961
4014
  fee?: {
@@ -3016,6 +4069,75 @@ export declare const SwapQuotingOutputSchema: z.ZodObject<{
3016
4069
  marketImpactPercentage?: number | undefined;
3017
4070
  poolFeesPercentage?: number | undefined;
3018
4071
  solana?: null | undefined;
4072
+ } | {
4073
+ requestId: string;
4074
+ candidates: {
4075
+ serialized: string;
4076
+ lander: string;
4077
+ tipAccount: string;
4078
+ tipLamports: number;
4079
+ }[];
4080
+ nonceAccount: string;
4081
+ nonceAuthority: string;
4082
+ fee?: {
4083
+ amount: string;
4084
+ percentage: number;
4085
+ wallet: string;
4086
+ deductedFrom: "input" | "output";
4087
+ } | undefined;
4088
+ details?: {
4089
+ raw?: Record<string, unknown> | undefined;
4090
+ aggregator?: string | undefined;
4091
+ route?: {
4092
+ hops: {
4093
+ poolAddress: string;
4094
+ tokenIn: {
4095
+ address: string;
4096
+ decimals: number;
4097
+ symbol?: string | undefined;
4098
+ name?: string | undefined;
4099
+ logo?: string | null | undefined;
4100
+ };
4101
+ tokenOut: {
4102
+ address: string;
4103
+ decimals: number;
4104
+ symbol?: string | undefined;
4105
+ name?: string | undefined;
4106
+ logo?: string | null | undefined;
4107
+ };
4108
+ amountInTokens: string;
4109
+ amountOutTokens: string;
4110
+ exchange?: string | undefined;
4111
+ poolType?: string | undefined;
4112
+ feePercentage?: number | undefined;
4113
+ feeBps?: number | undefined;
4114
+ }[];
4115
+ totalFeePercentage?: number | undefined;
4116
+ aggregator?: string | undefined;
4117
+ } | undefined;
4118
+ } | undefined;
4119
+ tokenIn?: {
4120
+ address: string;
4121
+ decimals: number;
4122
+ symbol?: string | undefined;
4123
+ name?: string | undefined;
4124
+ logo?: string | null | undefined;
4125
+ } | undefined;
4126
+ tokenOut?: {
4127
+ address: string;
4128
+ decimals: number;
4129
+ symbol?: string | undefined;
4130
+ name?: string | undefined;
4131
+ logo?: string | null | undefined;
4132
+ } | undefined;
4133
+ amountOutTokens?: string | undefined;
4134
+ slippagePercentage?: number | undefined;
4135
+ amountInUSD?: number | undefined;
4136
+ amountOutUSD?: number | undefined;
4137
+ marketImpactPercentage?: number | undefined;
4138
+ poolFeesPercentage?: number | undefined;
4139
+ solana?: null | undefined;
4140
+ evm?: null | undefined;
3019
4141
  } | {
3020
4142
  requestId: string;
3021
4143
  fee?: {