@relayprotocol/relay-sdk 8.3.0 → 9.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.
- package/_cjs/src/actions/execute.js.map +1 -1
- package/_cjs/src/actions/gaslessBatch.js +1 -1
- package/_cjs/src/actions/gaslessBatch.js.map +1 -1
- package/_cjs/src/actions/getQuote.js +1 -1
- package/_cjs/src/actions/getQuote.js.map +1 -1
- package/_cjs/src/routes/index.js +4 -0
- package/_cjs/src/routes/index.js.map +1 -1
- package/_cjs/src/types/Execute.js.map +1 -1
- package/_cjs/src/types/api.js.map +1 -1
- package/_cjs/src/utils/axios.js +1 -1
- package/_cjs/src/utils/axios.js.map +1 -1
- package/_cjs/src/utils/executeSteps/index.js +2 -14
- package/_cjs/src/utils/executeSteps/index.js.map +1 -1
- package/_cjs/src/utils/executeSteps/signatureStep.js +6 -2
- package/_cjs/src/utils/executeSteps/signatureStep.js.map +1 -1
- package/_cjs/src/utils/hyperliquid.js +1 -1
- package/_cjs/src/utils/hyperliquid.js.map +1 -1
- package/_cjs/src/utils/index.js +3 -1
- package/_cjs/src/utils/index.js.map +1 -1
- package/_cjs/src/utils/normalizeSteps.js +18 -0
- package/_cjs/src/utils/normalizeSteps.js.map +1 -0
- package/_cjs/src/utils/prepareCallTransaction.js.map +1 -1
- package/_cjs/src/utils/transaction.js +3 -6
- package/_cjs/src/utils/transaction.js.map +1 -1
- package/_cjs/src/version.js +1 -1
- package/_cjs/src/version.js.map +1 -1
- package/_cjs/tsconfig.build.tsbuildinfo +1 -1
- package/_esm/src/actions/execute.js.map +1 -1
- package/_esm/src/actions/gaslessBatch.js +2 -2
- package/_esm/src/actions/gaslessBatch.js.map +1 -1
- package/_esm/src/actions/getQuote.js +1 -1
- package/_esm/src/actions/getQuote.js.map +1 -1
- package/_esm/src/routes/index.js +4 -0
- package/_esm/src/routes/index.js.map +1 -1
- package/_esm/src/types/Execute.js.map +1 -1
- package/_esm/src/types/api.js.map +1 -1
- package/_esm/src/utils/axios.js +1 -1
- package/_esm/src/utils/axios.js.map +1 -1
- package/_esm/src/utils/executeSteps/index.js +1 -19
- package/_esm/src/utils/executeSteps/index.js.map +1 -1
- package/_esm/src/utils/executeSteps/signatureStep.js +6 -2
- package/_esm/src/utils/executeSteps/signatureStep.js.map +1 -1
- package/_esm/src/utils/hyperliquid.js +1 -1
- package/_esm/src/utils/hyperliquid.js.map +1 -1
- package/_esm/src/utils/index.js +1 -0
- package/_esm/src/utils/index.js.map +1 -1
- package/_esm/src/utils/normalizeSteps.js +20 -0
- package/_esm/src/utils/normalizeSteps.js.map +1 -0
- package/_esm/src/utils/prepareCallTransaction.js.map +1 -1
- package/_esm/src/utils/transaction.js +3 -10
- package/_esm/src/utils/transaction.js.map +1 -1
- package/_esm/src/version.js +1 -1
- package/_esm/src/version.js.map +1 -1
- package/_esm/tsconfig.build.tsbuildinfo +1 -1
- package/_types/src/actions/execute.d.ts +2 -2
- package/_types/src/actions/execute.d.ts.map +1 -1
- package/_types/src/actions/gaslessBatch.d.ts +2 -2
- package/_types/src/actions/gaslessBatch.d.ts.map +1 -1
- package/_types/src/actions/getQuote.d.ts +3 -3
- package/_types/src/actions/getQuote.d.ts.map +1 -1
- package/_types/src/client.d.ts +36 -26
- package/_types/src/client.d.ts.map +1 -1
- package/_types/src/routes/index.d.ts.map +1 -1
- package/_types/src/types/Execute.d.ts +29 -5
- package/_types/src/types/Execute.d.ts.map +1 -1
- package/_types/src/types/api.d.ts +1389 -105
- package/_types/src/types/api.d.ts.map +1 -1
- package/_types/src/utils/executeSteps/index.d.ts.map +1 -1
- package/_types/src/utils/executeSteps/signatureStep.d.ts.map +1 -1
- package/_types/src/utils/getCurrentStepData.d.ts +11 -10
- package/_types/src/utils/getCurrentStepData.d.ts.map +1 -1
- package/_types/src/utils/index.d.ts +1 -0
- package/_types/src/utils/index.d.ts.map +1 -1
- package/_types/src/utils/normalizeSteps.d.ts +9 -0
- package/_types/src/utils/normalizeSteps.d.ts.map +1 -0
- package/_types/src/utils/prepareBatchTransaction.d.ts +1 -4
- package/_types/src/utils/prepareBatchTransaction.d.ts.map +1 -1
- package/_types/src/utils/prepareCallTransaction.d.ts +1 -1
- package/_types/src/utils/transaction.d.ts.map +1 -1
- package/_types/src/version.d.ts +1 -1
- package/_types/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1585,6 +1585,129 @@ export interface paths {
|
|
|
1585
1585
|
patch?: never;
|
|
1586
1586
|
trace?: never;
|
|
1587
1587
|
};
|
|
1588
|
+
"/execute/permits/v2": {
|
|
1589
|
+
parameters: {
|
|
1590
|
+
query?: never;
|
|
1591
|
+
header?: never;
|
|
1592
|
+
path?: never;
|
|
1593
|
+
cookie?: never;
|
|
1594
|
+
};
|
|
1595
|
+
get?: never;
|
|
1596
|
+
put?: never;
|
|
1597
|
+
post: {
|
|
1598
|
+
parameters: {
|
|
1599
|
+
query: {
|
|
1600
|
+
/** @description The permit signature. */
|
|
1601
|
+
signature: string;
|
|
1602
|
+
};
|
|
1603
|
+
header?: {
|
|
1604
|
+
/** @description Optional API key for authentication and higher rate limits. */
|
|
1605
|
+
"x-api-key"?: string;
|
|
1606
|
+
};
|
|
1607
|
+
path?: never;
|
|
1608
|
+
cookie?: never;
|
|
1609
|
+
};
|
|
1610
|
+
requestBody: {
|
|
1611
|
+
content: {
|
|
1612
|
+
"application/json": {
|
|
1613
|
+
/** @description The kind of signature. This value is returned in the quote API steps body field. e.g eip3009, permit2 or multicall-authorization (the extra EIP-712 signature of the approval proxy 3.1+ EIP-3009 flow, to be posted before the eip3009 signature) */
|
|
1614
|
+
kind: string;
|
|
1615
|
+
/** @description The requestId of the quote this permit signature applies to. Returned in the quote API steps body field. */
|
|
1616
|
+
requestId: string;
|
|
1617
|
+
/**
|
|
1618
|
+
* @description The API value returned from the quote API steps body field. Required for permit2 and eip3009; optional for other kinds.
|
|
1619
|
+
* @enum {string}
|
|
1620
|
+
*/
|
|
1621
|
+
api?: "bridge" | "swap" | "user-swap";
|
|
1622
|
+
};
|
|
1623
|
+
};
|
|
1624
|
+
};
|
|
1625
|
+
responses: {
|
|
1626
|
+
/** @description Default Response */
|
|
1627
|
+
200: {
|
|
1628
|
+
headers: {
|
|
1629
|
+
[name: string]: unknown;
|
|
1630
|
+
};
|
|
1631
|
+
content: {
|
|
1632
|
+
"application/json": {
|
|
1633
|
+
message: string;
|
|
1634
|
+
steps?: {
|
|
1635
|
+
/** @description Step kind identifier; IDs may repeat. Execute steps in array order. */
|
|
1636
|
+
id: string;
|
|
1637
|
+
action: string;
|
|
1638
|
+
description: string;
|
|
1639
|
+
kind: string;
|
|
1640
|
+
status: string;
|
|
1641
|
+
data?: {
|
|
1642
|
+
to: string;
|
|
1643
|
+
data: string;
|
|
1644
|
+
value: string;
|
|
1645
|
+
chainId: number;
|
|
1646
|
+
gas?: string;
|
|
1647
|
+
maxFeePerGas?: string;
|
|
1648
|
+
maxPriorityFeePerGas?: string;
|
|
1649
|
+
gasPrice?: string;
|
|
1650
|
+
};
|
|
1651
|
+
depositAddress?: {
|
|
1652
|
+
address?: string;
|
|
1653
|
+
/** @enum {string} */
|
|
1654
|
+
type?: "strict" | "open";
|
|
1655
|
+
depositor?: string | null;
|
|
1656
|
+
depositTxHash?: string | null;
|
|
1657
|
+
/** @description Origin-chain address that can recover deposit-address funds if the recipient wallet is later blocked. Null when not specified. */
|
|
1658
|
+
recoveryAddress?: string | null;
|
|
1659
|
+
} | null;
|
|
1660
|
+
depositAddressId?: string;
|
|
1661
|
+
check?: {
|
|
1662
|
+
endpoint: string;
|
|
1663
|
+
/** @enum {string} */
|
|
1664
|
+
method: "GET";
|
|
1665
|
+
};
|
|
1666
|
+
}[];
|
|
1667
|
+
};
|
|
1668
|
+
};
|
|
1669
|
+
};
|
|
1670
|
+
/** @description Default Response */
|
|
1671
|
+
"4XX": {
|
|
1672
|
+
headers: {
|
|
1673
|
+
[name: string]: unknown;
|
|
1674
|
+
};
|
|
1675
|
+
content: {
|
|
1676
|
+
"application/json": {
|
|
1677
|
+
message: string;
|
|
1678
|
+
errorCode: string;
|
|
1679
|
+
requestId?: string;
|
|
1680
|
+
errorData?: {
|
|
1681
|
+
chainId?: number;
|
|
1682
|
+
currency?: string;
|
|
1683
|
+
required?: string;
|
|
1684
|
+
available?: string;
|
|
1685
|
+
spender?: string;
|
|
1686
|
+
};
|
|
1687
|
+
};
|
|
1688
|
+
};
|
|
1689
|
+
};
|
|
1690
|
+
/** @description Default Response */
|
|
1691
|
+
"5XX": {
|
|
1692
|
+
headers: {
|
|
1693
|
+
[name: string]: unknown;
|
|
1694
|
+
};
|
|
1695
|
+
content: {
|
|
1696
|
+
"application/json": {
|
|
1697
|
+
message: string;
|
|
1698
|
+
errorCode: string;
|
|
1699
|
+
requestId?: string;
|
|
1700
|
+
};
|
|
1701
|
+
};
|
|
1702
|
+
};
|
|
1703
|
+
};
|
|
1704
|
+
};
|
|
1705
|
+
delete?: never;
|
|
1706
|
+
options?: never;
|
|
1707
|
+
head?: never;
|
|
1708
|
+
patch?: never;
|
|
1709
|
+
trace?: never;
|
|
1710
|
+
};
|
|
1588
1711
|
"/quote": {
|
|
1589
1712
|
parameters: {
|
|
1590
1713
|
query?: never;
|
|
@@ -6139,7 +6262,1023 @@ export interface paths {
|
|
|
6139
6262
|
timeEstimate?: number;
|
|
6140
6263
|
/** @description The user's balance in the given currency on the origin chain */
|
|
6141
6264
|
userBalance?: string;
|
|
6142
|
-
/** @description Whether the rate for the quote is fixed or dynamic (swap on origin/destination). Always true when operation is send. It does not report whether a requested fixedRate was applied; warnings does. */
|
|
6265
|
+
/** @description Whether the rate for the quote is fixed or dynamic (swap on origin/destination). Always true when operation is send. It does not report whether a requested fixedRate was applied; warnings does. */
|
|
6266
|
+
isFixedRate?: boolean;
|
|
6267
|
+
/** @description The USD cost of the fixed rate vs market rate. Positive means the fixed rate is worse than market (user pays premium), negative means better (user benefits). Only present for fixed rate quotes. */
|
|
6268
|
+
fixedRateFee?: {
|
|
6269
|
+
usd?: string;
|
|
6270
|
+
};
|
|
6271
|
+
route?: {
|
|
6272
|
+
/** @description The route taken for the origin chain swap */
|
|
6273
|
+
origin?: {
|
|
6274
|
+
/**
|
|
6275
|
+
* @example {
|
|
6276
|
+
* "currency": {
|
|
6277
|
+
* "chainId": 8453,
|
|
6278
|
+
* "address": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
|
|
6279
|
+
* "symbol": "USDC",
|
|
6280
|
+
* "name": "USD Coin",
|
|
6281
|
+
* "decimals": 6,
|
|
6282
|
+
* "metadata": {
|
|
6283
|
+
* "logoURI": "https://ethereum-optimism.github.io/data/USDC/logo.png",
|
|
6284
|
+
* "verified": false,
|
|
6285
|
+
* "isNative": false
|
|
6286
|
+
* }
|
|
6287
|
+
* },
|
|
6288
|
+
* "amount": "30754920",
|
|
6289
|
+
* "amountFormatted": "30.75492",
|
|
6290
|
+
* "amountUsd": "30.901612",
|
|
6291
|
+
* "minimumAmount": "30454920"
|
|
6292
|
+
* }
|
|
6293
|
+
*/
|
|
6294
|
+
inputCurrency?: {
|
|
6295
|
+
currency?: {
|
|
6296
|
+
chainId?: number;
|
|
6297
|
+
address?: string;
|
|
6298
|
+
symbol?: string;
|
|
6299
|
+
name?: string;
|
|
6300
|
+
decimals?: number;
|
|
6301
|
+
metadata?: {
|
|
6302
|
+
logoURI?: string;
|
|
6303
|
+
verified?: boolean;
|
|
6304
|
+
isNative?: boolean;
|
|
6305
|
+
};
|
|
6306
|
+
};
|
|
6307
|
+
amount?: string;
|
|
6308
|
+
amountFormatted?: string;
|
|
6309
|
+
amountUsd?: string;
|
|
6310
|
+
minimumAmount?: string;
|
|
6311
|
+
};
|
|
6312
|
+
/**
|
|
6313
|
+
* @example {
|
|
6314
|
+
* "currency": {
|
|
6315
|
+
* "chainId": 8453,
|
|
6316
|
+
* "address": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
|
|
6317
|
+
* "symbol": "USDC",
|
|
6318
|
+
* "name": "USD Coin",
|
|
6319
|
+
* "decimals": 6,
|
|
6320
|
+
* "metadata": {
|
|
6321
|
+
* "logoURI": "https://ethereum-optimism.github.io/data/USDC/logo.png",
|
|
6322
|
+
* "verified": false,
|
|
6323
|
+
* "isNative": false
|
|
6324
|
+
* }
|
|
6325
|
+
* },
|
|
6326
|
+
* "amount": "30754920",
|
|
6327
|
+
* "amountFormatted": "30.75492",
|
|
6328
|
+
* "amountUsd": "30.901612",
|
|
6329
|
+
* "minimumAmount": "30454920"
|
|
6330
|
+
* }
|
|
6331
|
+
*/
|
|
6332
|
+
outputCurrency?: {
|
|
6333
|
+
currency?: {
|
|
6334
|
+
chainId?: number;
|
|
6335
|
+
address?: string;
|
|
6336
|
+
symbol?: string;
|
|
6337
|
+
name?: string;
|
|
6338
|
+
decimals?: number;
|
|
6339
|
+
metadata?: {
|
|
6340
|
+
logoURI?: string;
|
|
6341
|
+
verified?: boolean;
|
|
6342
|
+
isNative?: boolean;
|
|
6343
|
+
};
|
|
6344
|
+
};
|
|
6345
|
+
amount?: string;
|
|
6346
|
+
amountFormatted?: string;
|
|
6347
|
+
amountUsd?: string;
|
|
6348
|
+
minimumAmount?: string;
|
|
6349
|
+
};
|
|
6350
|
+
router?: string;
|
|
6351
|
+
includedSwapSources?: string[];
|
|
6352
|
+
};
|
|
6353
|
+
/** @description The route taken for the origin chain swap */
|
|
6354
|
+
destination?: {
|
|
6355
|
+
/**
|
|
6356
|
+
* @example {
|
|
6357
|
+
* "currency": {
|
|
6358
|
+
* "chainId": 8453,
|
|
6359
|
+
* "address": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
|
|
6360
|
+
* "symbol": "USDC",
|
|
6361
|
+
* "name": "USD Coin",
|
|
6362
|
+
* "decimals": 6,
|
|
6363
|
+
* "metadata": {
|
|
6364
|
+
* "logoURI": "https://ethereum-optimism.github.io/data/USDC/logo.png",
|
|
6365
|
+
* "verified": false,
|
|
6366
|
+
* "isNative": false
|
|
6367
|
+
* }
|
|
6368
|
+
* },
|
|
6369
|
+
* "amount": "30754920",
|
|
6370
|
+
* "amountFormatted": "30.75492",
|
|
6371
|
+
* "amountUsd": "30.901612",
|
|
6372
|
+
* "minimumAmount": "30454920"
|
|
6373
|
+
* }
|
|
6374
|
+
*/
|
|
6375
|
+
inputCurrency?: {
|
|
6376
|
+
currency?: {
|
|
6377
|
+
chainId?: number;
|
|
6378
|
+
address?: string;
|
|
6379
|
+
symbol?: string;
|
|
6380
|
+
name?: string;
|
|
6381
|
+
decimals?: number;
|
|
6382
|
+
metadata?: {
|
|
6383
|
+
logoURI?: string;
|
|
6384
|
+
verified?: boolean;
|
|
6385
|
+
isNative?: boolean;
|
|
6386
|
+
};
|
|
6387
|
+
};
|
|
6388
|
+
amount?: string;
|
|
6389
|
+
amountFormatted?: string;
|
|
6390
|
+
amountUsd?: string;
|
|
6391
|
+
minimumAmount?: string;
|
|
6392
|
+
};
|
|
6393
|
+
/**
|
|
6394
|
+
* @example {
|
|
6395
|
+
* "currency": {
|
|
6396
|
+
* "chainId": 8453,
|
|
6397
|
+
* "address": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
|
|
6398
|
+
* "symbol": "USDC",
|
|
6399
|
+
* "name": "USD Coin",
|
|
6400
|
+
* "decimals": 6,
|
|
6401
|
+
* "metadata": {
|
|
6402
|
+
* "logoURI": "https://ethereum-optimism.github.io/data/USDC/logo.png",
|
|
6403
|
+
* "verified": false,
|
|
6404
|
+
* "isNative": false
|
|
6405
|
+
* }
|
|
6406
|
+
* },
|
|
6407
|
+
* "amount": "30754920",
|
|
6408
|
+
* "amountFormatted": "30.75492",
|
|
6409
|
+
* "amountUsd": "30.901612",
|
|
6410
|
+
* "minimumAmount": "30454920"
|
|
6411
|
+
* }
|
|
6412
|
+
*/
|
|
6413
|
+
outputCurrency?: {
|
|
6414
|
+
currency?: {
|
|
6415
|
+
chainId?: number;
|
|
6416
|
+
address?: string;
|
|
6417
|
+
symbol?: string;
|
|
6418
|
+
name?: string;
|
|
6419
|
+
decimals?: number;
|
|
6420
|
+
metadata?: {
|
|
6421
|
+
logoURI?: string;
|
|
6422
|
+
verified?: boolean;
|
|
6423
|
+
isNative?: boolean;
|
|
6424
|
+
};
|
|
6425
|
+
};
|
|
6426
|
+
amount?: string;
|
|
6427
|
+
amountFormatted?: string;
|
|
6428
|
+
amountUsd?: string;
|
|
6429
|
+
minimumAmount?: string;
|
|
6430
|
+
};
|
|
6431
|
+
router?: string;
|
|
6432
|
+
includedSwapSources?: string[];
|
|
6433
|
+
};
|
|
6434
|
+
};
|
|
6435
|
+
};
|
|
6436
|
+
/** @description Protocol information for the quote */
|
|
6437
|
+
protocol?: {
|
|
6438
|
+
v2?: {
|
|
6439
|
+
/** @description The underlying protocol order id */
|
|
6440
|
+
orderId?: string;
|
|
6441
|
+
/**
|
|
6442
|
+
* @description The protocol hub type. Always 'onchain' for the public protocol contract. Mirrors the requests/v3 protocol block.
|
|
6443
|
+
* @enum {string}
|
|
6444
|
+
*/
|
|
6445
|
+
hubType?: "onchain";
|
|
6446
|
+
/** @description The underlying protocol order data */
|
|
6447
|
+
orderData?: unknown;
|
|
6448
|
+
/** @description Solver's ECDSA signature over the orderId, returned when includeProtocolData is set. Use ecrecover to verify the commitment on-chain. */
|
|
6449
|
+
orderSignature?: string;
|
|
6450
|
+
/** @description The details for the depository payment */
|
|
6451
|
+
paymentDetails?: {
|
|
6452
|
+
/** @description The protocol chain id for the payment */
|
|
6453
|
+
chainId?: string;
|
|
6454
|
+
/** @description The depository address */
|
|
6455
|
+
depository?: string;
|
|
6456
|
+
/** @description The currency of the payment */
|
|
6457
|
+
currency?: string;
|
|
6458
|
+
/** @description The amount of the payment */
|
|
6459
|
+
amount?: string;
|
|
6460
|
+
};
|
|
6461
|
+
};
|
|
6462
|
+
};
|
|
6463
|
+
};
|
|
6464
|
+
};
|
|
6465
|
+
};
|
|
6466
|
+
/** @description Default Response */
|
|
6467
|
+
400: {
|
|
6468
|
+
headers: {
|
|
6469
|
+
[name: string]: unknown;
|
|
6470
|
+
};
|
|
6471
|
+
content: {
|
|
6472
|
+
"application/json": {
|
|
6473
|
+
message?: string;
|
|
6474
|
+
errorCode?: string;
|
|
6475
|
+
errorData?: string;
|
|
6476
|
+
requestId?: string;
|
|
6477
|
+
approxSimulatedBlock?: number;
|
|
6478
|
+
failedCallData?: {
|
|
6479
|
+
from?: string;
|
|
6480
|
+
to?: string;
|
|
6481
|
+
data?: string;
|
|
6482
|
+
value?: string;
|
|
6483
|
+
};
|
|
6484
|
+
};
|
|
6485
|
+
};
|
|
6486
|
+
};
|
|
6487
|
+
/** @description Default Response */
|
|
6488
|
+
401: {
|
|
6489
|
+
headers: {
|
|
6490
|
+
[name: string]: unknown;
|
|
6491
|
+
};
|
|
6492
|
+
content: {
|
|
6493
|
+
"application/json": {
|
|
6494
|
+
message?: string;
|
|
6495
|
+
errorCode?: string;
|
|
6496
|
+
};
|
|
6497
|
+
};
|
|
6498
|
+
};
|
|
6499
|
+
/** @description Default Response */
|
|
6500
|
+
429: {
|
|
6501
|
+
headers: {
|
|
6502
|
+
[name: string]: unknown;
|
|
6503
|
+
};
|
|
6504
|
+
content: {
|
|
6505
|
+
"application/json": {
|
|
6506
|
+
message?: string;
|
|
6507
|
+
};
|
|
6508
|
+
};
|
|
6509
|
+
};
|
|
6510
|
+
/** @description Default Response */
|
|
6511
|
+
500: {
|
|
6512
|
+
headers: {
|
|
6513
|
+
[name: string]: unknown;
|
|
6514
|
+
};
|
|
6515
|
+
content: {
|
|
6516
|
+
"application/json": {
|
|
6517
|
+
message?: string;
|
|
6518
|
+
errorCode?: string;
|
|
6519
|
+
requestId?: string;
|
|
6520
|
+
};
|
|
6521
|
+
};
|
|
6522
|
+
};
|
|
6523
|
+
};
|
|
6524
|
+
};
|
|
6525
|
+
delete?: never;
|
|
6526
|
+
options?: never;
|
|
6527
|
+
head?: never;
|
|
6528
|
+
patch?: never;
|
|
6529
|
+
trace?: never;
|
|
6530
|
+
};
|
|
6531
|
+
"/quote/v3": {
|
|
6532
|
+
parameters: {
|
|
6533
|
+
query?: never;
|
|
6534
|
+
header?: never;
|
|
6535
|
+
path?: never;
|
|
6536
|
+
cookie?: never;
|
|
6537
|
+
};
|
|
6538
|
+
get?: never;
|
|
6539
|
+
put?: never;
|
|
6540
|
+
post: {
|
|
6541
|
+
parameters: {
|
|
6542
|
+
query?: never;
|
|
6543
|
+
header?: {
|
|
6544
|
+
/** @description API key. Alternatively, authenticate with an API session bearer token. */
|
|
6545
|
+
"x-api-key"?: string;
|
|
6546
|
+
/** @description API session bearer token. */
|
|
6547
|
+
authorization?: string;
|
|
6548
|
+
};
|
|
6549
|
+
path?: never;
|
|
6550
|
+
cookie?: never;
|
|
6551
|
+
};
|
|
6552
|
+
requestBody: {
|
|
6553
|
+
content: {
|
|
6554
|
+
"application/json": {
|
|
6555
|
+
/**
|
|
6556
|
+
* @description Address that is depositing funds on the origin chain and submitting transactions or signatures
|
|
6557
|
+
* @example 0x03508bb71268bba25ecacc8f620e01866650532c
|
|
6558
|
+
*/
|
|
6559
|
+
user: string;
|
|
6560
|
+
/** @description Address that is receiving the funds on the destination chain, if not specified then this will default to the user address */
|
|
6561
|
+
recipient?: string;
|
|
6562
|
+
/** @example 8453 */
|
|
6563
|
+
originChainId: number;
|
|
6564
|
+
/** @example 10 */
|
|
6565
|
+
destinationChainId: number;
|
|
6566
|
+
/** @example 0x0000000000000000000000000000000000000000 */
|
|
6567
|
+
originCurrency: string;
|
|
6568
|
+
/** @example 0x0000000000000000000000000000000000000000 */
|
|
6569
|
+
destinationCurrency: string;
|
|
6570
|
+
/** @description Preferred solver fill currency address on the destination chain. Falls back to default routing when the preference is not routeable. */
|
|
6571
|
+
preferredSolverFillCurrency?: string;
|
|
6572
|
+
/** @description Preferred solver deposit currency address on the origin chain. Falls back to default routing when the preference is not routeable. */
|
|
6573
|
+
preferredSolverDepositCurrency?: string;
|
|
6574
|
+
/**
|
|
6575
|
+
* @description Amount to swap as the base amount (can be switched to exact input/output using the dedicated flag), denoted in the smallest unit of the specified currency (e.g., wei for ETH)
|
|
6576
|
+
* @example 1000000000000000000
|
|
6577
|
+
*/
|
|
6578
|
+
amount: string;
|
|
6579
|
+
/**
|
|
6580
|
+
* @description Whether to use the amount as the output or the input for the basis of the swap
|
|
6581
|
+
* @example EXACT_INPUT
|
|
6582
|
+
* @enum {string}
|
|
6583
|
+
*/
|
|
6584
|
+
tradeType: "EXACT_INPUT" | "EXACT_OUTPUT" | "EXPECTED_OUTPUT";
|
|
6585
|
+
txs?: {
|
|
6586
|
+
to: string;
|
|
6587
|
+
value: string;
|
|
6588
|
+
data: string;
|
|
6589
|
+
originalTxValue?: string;
|
|
6590
|
+
}[];
|
|
6591
|
+
/** @description Total gas limit for the destination chain call transactions */
|
|
6592
|
+
txsGasLimit?: number;
|
|
6593
|
+
/** @description Authorization list for EIP-7702 transactions to be executed on destination chain */
|
|
6594
|
+
authorizationList?: {
|
|
6595
|
+
chainId: number;
|
|
6596
|
+
address: string;
|
|
6597
|
+
nonce: number;
|
|
6598
|
+
yParity: number;
|
|
6599
|
+
r: string;
|
|
6600
|
+
s: string;
|
|
6601
|
+
}[];
|
|
6602
|
+
/** @description Additional data needed for specific routes */
|
|
6603
|
+
additionalData?: {
|
|
6604
|
+
/** @description If the request originates from Bitcoin and the user is a P2SH address, the public key is needed to be able to generate the transaction data */
|
|
6605
|
+
userPublicKey?: string;
|
|
6606
|
+
};
|
|
6607
|
+
referrer?: string;
|
|
6608
|
+
referrerAddress?: string;
|
|
6609
|
+
/** @description Address to send the refund to in the case of failure, if not specified then the recipient address or user address is used */
|
|
6610
|
+
refundTo?: string;
|
|
6611
|
+
/** @description Origin-chain address used for deposit-address fund recovery. Requires useDepositAddress=true. */
|
|
6612
|
+
recoveryAddress?: string;
|
|
6613
|
+
/**
|
|
6614
|
+
* @deprecated
|
|
6615
|
+
* @description Always refund on the origin chain in case of any issues
|
|
6616
|
+
*/
|
|
6617
|
+
refundOnOrigin?: boolean;
|
|
6618
|
+
/** @description If set, the destination fill will include a gas topup to the recipient (only supported for EVM chains if the requested currency is not the gas currency on the destination chain) */
|
|
6619
|
+
topupGas?: boolean;
|
|
6620
|
+
/** @description The destination gas topup amount in USD with 6 decimal places, e.g. 100000 = $0.10 and 1000000 = $1. Ignored unless topupGas is true. Defaults to 2000000 ($2). */
|
|
6621
|
+
topupGasAmount?: string;
|
|
6622
|
+
/**
|
|
6623
|
+
* @description Enabling will send any swap surplus when doing exact output operations to the solver EOA, otherwise it will be swept to the recipient
|
|
6624
|
+
* @default false
|
|
6625
|
+
*/
|
|
6626
|
+
enableTrueExactOutput?: boolean;
|
|
6627
|
+
/**
|
|
6628
|
+
* @description Enable this to avoid direct transfers to the depository (only relevant for EVM and v2 protocol flow)
|
|
6629
|
+
* @default true
|
|
6630
|
+
*/
|
|
6631
|
+
explicitDeposit?: boolean;
|
|
6632
|
+
/** @description Enable this to use permit (eip3009) when bridging, only works on supported currency such as usdc */
|
|
6633
|
+
usePermit?: boolean;
|
|
6634
|
+
/** @description How long the permit remains valid, in seconds: an integer from 60 to 86399, or 0 for the default of 600 (10 minutes), which also applies when omitted. Use at least 120, since some permits take several minutes to land. */
|
|
6635
|
+
permitExpiry?: number;
|
|
6636
|
+
/** @description Opt into the two signature EIP-3009 permit flow of approval proxy 3.1+. The authorize step then starts with a MulticallAuthorization signature item (posted to /execute/permits with kind multicall-authorization, no status check) followed by the EIP-3009 authorization item. Without it, EIP-3009 permits keep the single signature flow on the chain's 3.0 contracts. */
|
|
6637
|
+
useMulticallAuthorization?: boolean;
|
|
6638
|
+
/** @description Return protocol data for on-chain intent validation. This includes protocol.v2.orderSignature and may increase quote latency. */
|
|
6639
|
+
includeProtocolData?: boolean;
|
|
6640
|
+
/**
|
|
6641
|
+
* @description Require exact swap contracts on each EVM leg, overriding the App pin. v3 means 3.0. Unavailable versions and incompatible permit flows return 400 instead of falling back. Only supported for swap execution kinds.
|
|
6642
|
+
* @enum {string}
|
|
6643
|
+
*/
|
|
6644
|
+
swapContractsVersion?: "v3" | "v3.2";
|
|
6645
|
+
/** @description Use a deposit address when calldata cannot be sent with the origin transaction. In /quote/v2, creation follows the requested trade type. */
|
|
6646
|
+
useDepositAddress?: boolean;
|
|
6647
|
+
/** @description Makes the deposit address one-time use. On /quote/v2, EXACT_OUTPUT addresses are always one-time use. */
|
|
6648
|
+
strict?: boolean;
|
|
6649
|
+
/** @description Slippage tolerance for the swap, if not specified then the slippage tolerance is automatically calculated to avoid front-running. This value is in basis points (1/100th of a percent), e.g. 50 for 0.5% slippage. Must be 0–10000 bps. */
|
|
6650
|
+
slippageTolerance?: string;
|
|
6651
|
+
/** @description Slippage tolerance for destination gas in the event that the deposit occurs after the order deadline, and more gas is required for the solver to execute the destination transaction. Must be 0–10000 bps. */
|
|
6652
|
+
latePaymentSlippageTolerance?: string;
|
|
6653
|
+
appFees?: {
|
|
6654
|
+
/** @description Address that will receive the app fee */
|
|
6655
|
+
recipient?: string;
|
|
6656
|
+
/** @description App fees to be charged for execution in basis points, e.g. 100 = 1% */
|
|
6657
|
+
fee: string;
|
|
6658
|
+
}[];
|
|
6659
|
+
/** @description If the request involves specifying transactions to be executed during the deposit transaction, an explicit gas limit must be set when requesting the quote */
|
|
6660
|
+
gasLimitForDepositSpecifiedTxs?: number;
|
|
6661
|
+
/** @description Force executing swap requests via the solver (by default, same-chain swap requests are self-executed) */
|
|
6662
|
+
forceSolverExecution?: boolean;
|
|
6663
|
+
/** @description If the sponsor should pay for the fees associated with the request. Includes gas topup amounts. */
|
|
6664
|
+
subsidizeFees?: boolean;
|
|
6665
|
+
/** @description The fee components to sponsor for swap execution kinds. Requires subsidizeFees=true. Defaults to execution, swap, platform, and app when omitted; rent remains user-paid unless explicitly selected. Use platform, not the legacy relay name. */
|
|
6666
|
+
sponsoredFeeComponents?: ("execution" | "swap" | "platform" | "app" | "rent")[];
|
|
6667
|
+
/** @description The max subsidization amount in USDC decimal format, e.g 1000000 = $1. subsidizeFees must be enabled. The sponsor will cover fees up to this cap and the user pays any remainder. */
|
|
6668
|
+
maxSubsidizationAmount?: string;
|
|
6669
|
+
/** @description The share of each sponsored fee component the sponsor covers, in bps, e.g 10000 = 100% and 2500 = 25%. subsidizeFees must be enabled. Defaults to full coverage when omitted; the user pays the remainder. Applied before maxSubsidizationAmount, which still caps the sponsor's total. */
|
|
6670
|
+
subsidizationBps?: number;
|
|
6671
|
+
/**
|
|
6672
|
+
* @deprecated
|
|
6673
|
+
* @description Deprecated compatibility alias that adds "rent" to sponsoredFeeComponents. When true, requires subsidizeFees=true.
|
|
6674
|
+
*/
|
|
6675
|
+
subsidizeRent?: boolean;
|
|
6676
|
+
/** @description Swap sources to include for swap routing. */
|
|
6677
|
+
includedSwapSources?: string[];
|
|
6678
|
+
/** @description Swap sources to exclude for swap routing. */
|
|
6679
|
+
excludedSwapSources?: string[];
|
|
6680
|
+
/** @description Swap sources to include for swap routing on origin. */
|
|
6681
|
+
includedOriginSwapSources?: string[];
|
|
6682
|
+
/** @description Swap sources to include for swap routing on destination. */
|
|
6683
|
+
includedDestinationSwapSources?: string[];
|
|
6684
|
+
/** @description The gas overhead for the origin chain, this is used to calculate the gas fee for the origin chain when the solver is executing a gasless transaction on the origin chain */
|
|
6685
|
+
originGasOverhead?: number;
|
|
6686
|
+
/** @description The payer to be set for deposit transactions on solana. This account must have enough for fees and rent. */
|
|
6687
|
+
depositFeePayer?: string;
|
|
6688
|
+
/** @description Maximum number of hops to use in solana swap routing. Can reduce transaction size. */
|
|
6689
|
+
maxRouteLength?: number;
|
|
6690
|
+
/** @description Prevents certain ATA creation instructions in solana routing */
|
|
6691
|
+
useSharedAccounts?: boolean;
|
|
6692
|
+
/** @description Restricts solana swap routing to routes that are compatible with Jito bundles. Only set this when the swap will be executed inside a Jito bundle. */
|
|
6693
|
+
forJitoBundle?: boolean;
|
|
6694
|
+
/** @description Whether to include compute unit limit instruction for solana origin requests. */
|
|
6695
|
+
includeComputeUnitLimit?: boolean;
|
|
6696
|
+
/** @description Whether to return the solana deposit transaction in the v1 (SIMD-0385) format: no lookup tables, a 4096 byte limit, and the compute budget in `transactionConfig`. Best effort; the returned step data sets `transactionVersion` to 1 when honored. */
|
|
6697
|
+
useV1Transaction?: boolean;
|
|
6698
|
+
/** @description Whether to ignore price impact errors. */
|
|
6699
|
+
overridePriceImpact?: boolean;
|
|
6700
|
+
/** @description Whether to disable preferred swap provider selection. */
|
|
6701
|
+
disableSwapProviderPreference?: boolean;
|
|
6702
|
+
/** @description Whether to disable origin swaps. */
|
|
6703
|
+
disableOriginSwaps?: boolean;
|
|
6704
|
+
/** @description Whether to return an inexecutable quote meant to be used as a preview. */
|
|
6705
|
+
indicativeQuote?: boolean;
|
|
6706
|
+
/** @description The rate to quote at, as 'input:output' (for example '1:0.9996'). Requires an API key or referrer. Applied only on routes that support fixed-rate quotes, where an API key that is not enabled for them is rejected. A quote that is not priced at this rate still succeeds and warnings contains FIXED_RATE_NOT_APPLIED. */
|
|
6707
|
+
fixedRate?: string;
|
|
6708
|
+
/** @description Requester-provided price (output units per input unit, human units) to compare router quotes against. When fastestInPriceRange is enabled for the API key, destination-leg quotes more than 20% below it are skipped. When useRouteRacingOnOrigin is set, it anchors origin swap route selection: routes priced within a fixed band of it (20% below to 50% above) are preferred, and the best route overall is used when none is in the band. The selected route alone sets the expected and minimum output (with slippageTolerance applied to it); the reference price never sets a floor. Expects a positive decimal string such as "0.000131" (scientific notation is not parsed). Deliberately unconstrained by a schema pattern: a malformed or non-positive value, or one sent by a key without the relevant grant, is ignored and the quote is served without a reference price rather than rejected. */
|
|
6709
|
+
referencePrice?: string;
|
|
6710
|
+
/** @description Whether to use route racing for this quote (executing multiple candidate routes on-chain and keeping the best), when the API key is authorized for it. */
|
|
6711
|
+
useRouteRacing?: boolean;
|
|
6712
|
+
/** @description Minimum fill size in USD eligible for route racing. Defaults to 100. Route racing has no maximum fill size. */
|
|
6713
|
+
routeRacingMinUsdSize?: number;
|
|
6714
|
+
/** @description Whether to use route racing for this quote's origin swap (executing multiple candidate routes on-chain and keeping the best), when the API key is authorized for it and the origin chain is configured for route racing. */
|
|
6715
|
+
useRouteRacingOnOrigin?: boolean;
|
|
6716
|
+
/** @description Time-to-live for the quote, in seconds, measured from when the quote was generated. If the request is not filled within this window it is refunded instead of filled. */
|
|
6717
|
+
ttl?: number;
|
|
6718
|
+
useCustomRpcForSubmission?: boolean;
|
|
6719
|
+
/** @description Opt-in queueing: when the destination fill hits temporarily insufficient liquidity, keep retrying it until the queueingTtl window expires (then refund) instead of refunding immediately. Requires queueingTtl. */
|
|
6720
|
+
useQueueing?: boolean;
|
|
6721
|
+
/** @description Queueing window, in seconds, measured from when the quote was generated. While it is open, a useQueueing request that hits insufficient destination liquidity is retried instead of refunded; once it expires the request is refunded. Independent of ttl. Only used together with useQueueing. */
|
|
6722
|
+
queueingTtl?: number;
|
|
6723
|
+
};
|
|
6724
|
+
};
|
|
6725
|
+
};
|
|
6726
|
+
responses: {
|
|
6727
|
+
/** @description Default Response */
|
|
6728
|
+
200: {
|
|
6729
|
+
headers: {
|
|
6730
|
+
[name: string]: unknown;
|
|
6731
|
+
};
|
|
6732
|
+
content: {
|
|
6733
|
+
"application/json": {
|
|
6734
|
+
requestId: string;
|
|
6735
|
+
/** @description Present when a requested fixedRate was not applied, omitted otherwise. More warning codes may be added. */
|
|
6736
|
+
warnings?: {
|
|
6737
|
+
/** @enum {string} */
|
|
6738
|
+
code: "FIXED_RATE_NOT_APPLIED";
|
|
6739
|
+
message: string;
|
|
6740
|
+
}[];
|
|
6741
|
+
steps: {
|
|
6742
|
+
/** @description Step kind identifier; IDs may repeat. Execute steps in array order. */
|
|
6743
|
+
id: string;
|
|
6744
|
+
action: string;
|
|
6745
|
+
description: string;
|
|
6746
|
+
kind: string;
|
|
6747
|
+
status: string;
|
|
6748
|
+
data?: unknown;
|
|
6749
|
+
depositAddress?: {
|
|
6750
|
+
address?: string;
|
|
6751
|
+
/** @enum {string} */
|
|
6752
|
+
type?: "strict" | "open";
|
|
6753
|
+
depositor?: string | null;
|
|
6754
|
+
depositTxHash?: string | null;
|
|
6755
|
+
/** @description Origin-chain address that can recover deposit-address funds if the recipient wallet is later blocked. Null when not specified. */
|
|
6756
|
+
recoveryAddress?: string | null;
|
|
6757
|
+
} | null;
|
|
6758
|
+
depositAddressId?: string;
|
|
6759
|
+
check?: {
|
|
6760
|
+
endpoint: string;
|
|
6761
|
+
/** @enum {string} */
|
|
6762
|
+
method: "GET";
|
|
6763
|
+
};
|
|
6764
|
+
}[];
|
|
6765
|
+
fees: {
|
|
6766
|
+
/** @description Cost to execute a swap or bridge depending on available liquidity. Negative USD values represent costs; positive USD values represent network rewards for improving liquidity distribution. */
|
|
6767
|
+
swap: {
|
|
6768
|
+
usd: string | null;
|
|
6769
|
+
amount: string | null;
|
|
6770
|
+
amountFormatted: string | null;
|
|
6771
|
+
};
|
|
6772
|
+
/** @description Fees paid to cover transaction execution costs */
|
|
6773
|
+
execution: {
|
|
6774
|
+
usd: string | null;
|
|
6775
|
+
amount: string | null;
|
|
6776
|
+
amountFormatted: string | null;
|
|
6777
|
+
};
|
|
6778
|
+
/** @description Fees paid to the protocol */
|
|
6779
|
+
platform: {
|
|
6780
|
+
usd: string | null;
|
|
6781
|
+
amount: string | null;
|
|
6782
|
+
amountFormatted: string | null;
|
|
6783
|
+
};
|
|
6784
|
+
/** @description Fees paid to the app. Currency will be the same as the relayer fee currency. This needs to be claimed later by the app owner and is not immediately distributed to the app */
|
|
6785
|
+
app: {
|
|
6786
|
+
usd: string | null;
|
|
6787
|
+
amount: string | null;
|
|
6788
|
+
amountFormatted: string | null;
|
|
6789
|
+
};
|
|
6790
|
+
/** @description Fees paid by a sponsor for this request */
|
|
6791
|
+
sponsored: {
|
|
6792
|
+
usd: string | null;
|
|
6793
|
+
amount: string | null;
|
|
6794
|
+
amountFormatted: string | null;
|
|
6795
|
+
};
|
|
6796
|
+
currency: {
|
|
6797
|
+
chainId?: number;
|
|
6798
|
+
address?: string;
|
|
6799
|
+
symbol?: string;
|
|
6800
|
+
name?: string;
|
|
6801
|
+
decimals?: number;
|
|
6802
|
+
metadata?: {
|
|
6803
|
+
logoURI?: string;
|
|
6804
|
+
verified?: boolean;
|
|
6805
|
+
isNative?: boolean;
|
|
6806
|
+
};
|
|
6807
|
+
};
|
|
6808
|
+
};
|
|
6809
|
+
/** @description Estimated origin gas paid separately by the wallet, including required approvals. Omitted when the amount is zero or the solver pays origin gas through execution fees. */
|
|
6810
|
+
originGas?: {
|
|
6811
|
+
currency?: {
|
|
6812
|
+
chainId?: number;
|
|
6813
|
+
address?: string;
|
|
6814
|
+
symbol?: string;
|
|
6815
|
+
name?: string;
|
|
6816
|
+
decimals?: number;
|
|
6817
|
+
metadata?: {
|
|
6818
|
+
logoURI?: string;
|
|
6819
|
+
verified?: boolean;
|
|
6820
|
+
isNative?: boolean;
|
|
6821
|
+
};
|
|
6822
|
+
};
|
|
6823
|
+
amount?: string;
|
|
6824
|
+
amountFormatted?: string;
|
|
6825
|
+
amountUsd?: string | null;
|
|
6826
|
+
minimumAmount?: string;
|
|
6827
|
+
};
|
|
6828
|
+
/** @description Granular fee sponsorship details derived from the solver's internal sponsorship resolution. */
|
|
6829
|
+
feeSponsorship?: {
|
|
6830
|
+
/** @description The quote-time sponsorship expectation for the request. */
|
|
6831
|
+
quoted?: {
|
|
6832
|
+
/** @description The normalized sponsorship buckets selected for this request. */
|
|
6833
|
+
selectedComponents: ("execution" | "swap" | "platform" | "app" | "rent")[];
|
|
6834
|
+
/** @description The requested sponsorship cap in USD micro-units, when one was configured for the request. */
|
|
6835
|
+
maxSubsidizationAmount?: string;
|
|
6836
|
+
/** @description The requested share of each selected fee bucket the sponsor covers, in bps (10000 = 100%), when one was configured for the request. */
|
|
6837
|
+
subsidizationBps?: number;
|
|
6838
|
+
/** @description Whether the configured sponsorship cap limited the selected fee buckets for this phase. */
|
|
6839
|
+
capHit: boolean;
|
|
6840
|
+
/** @description Per-bucket sponsorship details for the five sponsorable fee components. */
|
|
6841
|
+
components: {
|
|
6842
|
+
/** @description Execution fee sponsorship details. */
|
|
6843
|
+
execution: {
|
|
6844
|
+
/** @description Whether this fee bucket was selected for sponsorship. */
|
|
6845
|
+
selected: boolean;
|
|
6846
|
+
/** @description The full amount charged for this fee bucket. */
|
|
6847
|
+
total: {
|
|
6848
|
+
amount?: string | null;
|
|
6849
|
+
amountFormatted?: string | null;
|
|
6850
|
+
amountUsd?: string | null;
|
|
6851
|
+
minimumAmount?: string | null;
|
|
6852
|
+
};
|
|
6853
|
+
/** @description The portion of this fee bucket covered by the sponsor. */
|
|
6854
|
+
sponsored: {
|
|
6855
|
+
amount?: string | null;
|
|
6856
|
+
amountFormatted?: string | null;
|
|
6857
|
+
amountUsd?: string | null;
|
|
6858
|
+
minimumAmount?: string | null;
|
|
6859
|
+
};
|
|
6860
|
+
/** @description The portion of this fee bucket that remained user-paid. */
|
|
6861
|
+
userPays: {
|
|
6862
|
+
amount?: string | null;
|
|
6863
|
+
amountFormatted?: string | null;
|
|
6864
|
+
amountUsd?: string | null;
|
|
6865
|
+
minimumAmount?: string | null;
|
|
6866
|
+
};
|
|
6867
|
+
};
|
|
6868
|
+
/** @description Swap fee sponsorship details. */
|
|
6869
|
+
swap: {
|
|
6870
|
+
/** @description Whether this fee bucket was selected for sponsorship. */
|
|
6871
|
+
selected: boolean;
|
|
6872
|
+
/** @description The full amount charged for this fee bucket. */
|
|
6873
|
+
total: {
|
|
6874
|
+
amount?: string | null;
|
|
6875
|
+
amountFormatted?: string | null;
|
|
6876
|
+
amountUsd?: string | null;
|
|
6877
|
+
minimumAmount?: string | null;
|
|
6878
|
+
};
|
|
6879
|
+
/** @description The portion of this fee bucket covered by the sponsor. */
|
|
6880
|
+
sponsored: {
|
|
6881
|
+
amount?: string | null;
|
|
6882
|
+
amountFormatted?: string | null;
|
|
6883
|
+
amountUsd?: string | null;
|
|
6884
|
+
minimumAmount?: string | null;
|
|
6885
|
+
};
|
|
6886
|
+
/** @description The portion of this fee bucket that remained user-paid. */
|
|
6887
|
+
userPays: {
|
|
6888
|
+
amount?: string | null;
|
|
6889
|
+
amountFormatted?: string | null;
|
|
6890
|
+
amountUsd?: string | null;
|
|
6891
|
+
minimumAmount?: string | null;
|
|
6892
|
+
};
|
|
6893
|
+
};
|
|
6894
|
+
/** @description Platform fee sponsorship details. */
|
|
6895
|
+
platform: {
|
|
6896
|
+
/** @description Whether this fee bucket was selected for sponsorship. */
|
|
6897
|
+
selected: boolean;
|
|
6898
|
+
/** @description The full amount charged for this fee bucket. */
|
|
6899
|
+
total: {
|
|
6900
|
+
amount?: string | null;
|
|
6901
|
+
amountFormatted?: string | null;
|
|
6902
|
+
amountUsd?: string | null;
|
|
6903
|
+
minimumAmount?: string | null;
|
|
6904
|
+
};
|
|
6905
|
+
/** @description The portion of this fee bucket covered by the sponsor. */
|
|
6906
|
+
sponsored: {
|
|
6907
|
+
amount?: string | null;
|
|
6908
|
+
amountFormatted?: string | null;
|
|
6909
|
+
amountUsd?: string | null;
|
|
6910
|
+
minimumAmount?: string | null;
|
|
6911
|
+
};
|
|
6912
|
+
/** @description The portion of this fee bucket that remained user-paid. */
|
|
6913
|
+
userPays: {
|
|
6914
|
+
amount?: string | null;
|
|
6915
|
+
amountFormatted?: string | null;
|
|
6916
|
+
amountUsd?: string | null;
|
|
6917
|
+
minimumAmount?: string | null;
|
|
6918
|
+
};
|
|
6919
|
+
};
|
|
6920
|
+
/** @description App fee sponsorship details. */
|
|
6921
|
+
app: {
|
|
6922
|
+
/** @description Whether this fee bucket was selected for sponsorship. */
|
|
6923
|
+
selected: boolean;
|
|
6924
|
+
/** @description The full amount charged for this fee bucket. */
|
|
6925
|
+
total: {
|
|
6926
|
+
amount?: string | null;
|
|
6927
|
+
amountFormatted?: string | null;
|
|
6928
|
+
amountUsd?: string | null;
|
|
6929
|
+
minimumAmount?: string | null;
|
|
6930
|
+
};
|
|
6931
|
+
/** @description The portion of this fee bucket covered by the sponsor. */
|
|
6932
|
+
sponsored: {
|
|
6933
|
+
amount?: string | null;
|
|
6934
|
+
amountFormatted?: string | null;
|
|
6935
|
+
amountUsd?: string | null;
|
|
6936
|
+
minimumAmount?: string | null;
|
|
6937
|
+
};
|
|
6938
|
+
/** @description The portion of this fee bucket that remained user-paid. */
|
|
6939
|
+
userPays: {
|
|
6940
|
+
amount?: string | null;
|
|
6941
|
+
amountFormatted?: string | null;
|
|
6942
|
+
amountUsd?: string | null;
|
|
6943
|
+
minimumAmount?: string | null;
|
|
6944
|
+
};
|
|
6945
|
+
};
|
|
6946
|
+
/** @description Solana ATA rent sponsorship details. */
|
|
6947
|
+
rent: {
|
|
6948
|
+
/** @description Whether this fee bucket was selected for sponsorship. */
|
|
6949
|
+
selected: boolean;
|
|
6950
|
+
/** @description The full amount charged for this fee bucket. */
|
|
6951
|
+
total: {
|
|
6952
|
+
amount?: string | null;
|
|
6953
|
+
amountFormatted?: string | null;
|
|
6954
|
+
amountUsd?: string | null;
|
|
6955
|
+
minimumAmount?: string | null;
|
|
6956
|
+
};
|
|
6957
|
+
/** @description The portion of this fee bucket covered by the sponsor. */
|
|
6958
|
+
sponsored: {
|
|
6959
|
+
amount?: string | null;
|
|
6960
|
+
amountFormatted?: string | null;
|
|
6961
|
+
amountUsd?: string | null;
|
|
6962
|
+
minimumAmount?: string | null;
|
|
6963
|
+
};
|
|
6964
|
+
/** @description The portion of this fee bucket that remained user-paid. */
|
|
6965
|
+
userPays: {
|
|
6966
|
+
amount?: string | null;
|
|
6967
|
+
amountFormatted?: string | null;
|
|
6968
|
+
amountUsd?: string | null;
|
|
6969
|
+
minimumAmount?: string | null;
|
|
6970
|
+
};
|
|
6971
|
+
};
|
|
6972
|
+
};
|
|
6973
|
+
/** @description The total amount sponsored for this phase. */
|
|
6974
|
+
sponsoredTotal: {
|
|
6975
|
+
amount?: string | null;
|
|
6976
|
+
amountFormatted?: string | null;
|
|
6977
|
+
amountUsd?: string | null;
|
|
6978
|
+
minimumAmount?: string | null;
|
|
6979
|
+
};
|
|
6980
|
+
/** @description The total amount the user paid across the sponsorable fee buckets for this phase. */
|
|
6981
|
+
userPaysTotal: {
|
|
6982
|
+
amount?: string | null;
|
|
6983
|
+
amountFormatted?: string | null;
|
|
6984
|
+
amountUsd?: string | null;
|
|
6985
|
+
minimumAmount?: string | null;
|
|
6986
|
+
};
|
|
6987
|
+
};
|
|
6988
|
+
/** @description The post-solve sponsorship outcome recorded for the request. */
|
|
6989
|
+
actual?: {
|
|
6990
|
+
/** @description The normalized sponsorship buckets selected for this request. */
|
|
6991
|
+
selectedComponents: ("execution" | "swap" | "platform" | "app" | "rent")[];
|
|
6992
|
+
/** @description The requested sponsorship cap in USD micro-units, when one was configured for the request. */
|
|
6993
|
+
maxSubsidizationAmount?: string;
|
|
6994
|
+
/** @description The requested share of each selected fee bucket the sponsor covers, in bps (10000 = 100%), when one was configured for the request. */
|
|
6995
|
+
subsidizationBps?: number;
|
|
6996
|
+
/** @description Whether the configured sponsorship cap limited the selected fee buckets for this phase. */
|
|
6997
|
+
capHit: boolean;
|
|
6998
|
+
/** @description Per-bucket sponsorship details for the five sponsorable fee components. */
|
|
6999
|
+
components: {
|
|
7000
|
+
/** @description Execution fee sponsorship details. */
|
|
7001
|
+
execution: {
|
|
7002
|
+
/** @description Whether this fee bucket was selected for sponsorship. */
|
|
7003
|
+
selected: boolean;
|
|
7004
|
+
/** @description The full amount charged for this fee bucket. */
|
|
7005
|
+
total: {
|
|
7006
|
+
amount?: string | null;
|
|
7007
|
+
amountFormatted?: string | null;
|
|
7008
|
+
amountUsd?: string | null;
|
|
7009
|
+
minimumAmount?: string | null;
|
|
7010
|
+
};
|
|
7011
|
+
/** @description The portion of this fee bucket covered by the sponsor. */
|
|
7012
|
+
sponsored: {
|
|
7013
|
+
amount?: string | null;
|
|
7014
|
+
amountFormatted?: string | null;
|
|
7015
|
+
amountUsd?: string | null;
|
|
7016
|
+
minimumAmount?: string | null;
|
|
7017
|
+
};
|
|
7018
|
+
/** @description The portion of this fee bucket that remained user-paid. */
|
|
7019
|
+
userPays: {
|
|
7020
|
+
amount?: string | null;
|
|
7021
|
+
amountFormatted?: string | null;
|
|
7022
|
+
amountUsd?: string | null;
|
|
7023
|
+
minimumAmount?: string | null;
|
|
7024
|
+
};
|
|
7025
|
+
};
|
|
7026
|
+
/** @description Swap fee sponsorship details. */
|
|
7027
|
+
swap: {
|
|
7028
|
+
/** @description Whether this fee bucket was selected for sponsorship. */
|
|
7029
|
+
selected: boolean;
|
|
7030
|
+
/** @description The full amount charged for this fee bucket. */
|
|
7031
|
+
total: {
|
|
7032
|
+
amount?: string | null;
|
|
7033
|
+
amountFormatted?: string | null;
|
|
7034
|
+
amountUsd?: string | null;
|
|
7035
|
+
minimumAmount?: string | null;
|
|
7036
|
+
};
|
|
7037
|
+
/** @description The portion of this fee bucket covered by the sponsor. */
|
|
7038
|
+
sponsored: {
|
|
7039
|
+
amount?: string | null;
|
|
7040
|
+
amountFormatted?: string | null;
|
|
7041
|
+
amountUsd?: string | null;
|
|
7042
|
+
minimumAmount?: string | null;
|
|
7043
|
+
};
|
|
7044
|
+
/** @description The portion of this fee bucket that remained user-paid. */
|
|
7045
|
+
userPays: {
|
|
7046
|
+
amount?: string | null;
|
|
7047
|
+
amountFormatted?: string | null;
|
|
7048
|
+
amountUsd?: string | null;
|
|
7049
|
+
minimumAmount?: string | null;
|
|
7050
|
+
};
|
|
7051
|
+
};
|
|
7052
|
+
/** @description Platform fee sponsorship details. */
|
|
7053
|
+
platform: {
|
|
7054
|
+
/** @description Whether this fee bucket was selected for sponsorship. */
|
|
7055
|
+
selected: boolean;
|
|
7056
|
+
/** @description The full amount charged for this fee bucket. */
|
|
7057
|
+
total: {
|
|
7058
|
+
amount?: string | null;
|
|
7059
|
+
amountFormatted?: string | null;
|
|
7060
|
+
amountUsd?: string | null;
|
|
7061
|
+
minimumAmount?: string | null;
|
|
7062
|
+
};
|
|
7063
|
+
/** @description The portion of this fee bucket covered by the sponsor. */
|
|
7064
|
+
sponsored: {
|
|
7065
|
+
amount?: string | null;
|
|
7066
|
+
amountFormatted?: string | null;
|
|
7067
|
+
amountUsd?: string | null;
|
|
7068
|
+
minimumAmount?: string | null;
|
|
7069
|
+
};
|
|
7070
|
+
/** @description The portion of this fee bucket that remained user-paid. */
|
|
7071
|
+
userPays: {
|
|
7072
|
+
amount?: string | null;
|
|
7073
|
+
amountFormatted?: string | null;
|
|
7074
|
+
amountUsd?: string | null;
|
|
7075
|
+
minimumAmount?: string | null;
|
|
7076
|
+
};
|
|
7077
|
+
};
|
|
7078
|
+
/** @description App fee sponsorship details. */
|
|
7079
|
+
app: {
|
|
7080
|
+
/** @description Whether this fee bucket was selected for sponsorship. */
|
|
7081
|
+
selected: boolean;
|
|
7082
|
+
/** @description The full amount charged for this fee bucket. */
|
|
7083
|
+
total: {
|
|
7084
|
+
amount?: string | null;
|
|
7085
|
+
amountFormatted?: string | null;
|
|
7086
|
+
amountUsd?: string | null;
|
|
7087
|
+
minimumAmount?: string | null;
|
|
7088
|
+
};
|
|
7089
|
+
/** @description The portion of this fee bucket covered by the sponsor. */
|
|
7090
|
+
sponsored: {
|
|
7091
|
+
amount?: string | null;
|
|
7092
|
+
amountFormatted?: string | null;
|
|
7093
|
+
amountUsd?: string | null;
|
|
7094
|
+
minimumAmount?: string | null;
|
|
7095
|
+
};
|
|
7096
|
+
/** @description The portion of this fee bucket that remained user-paid. */
|
|
7097
|
+
userPays: {
|
|
7098
|
+
amount?: string | null;
|
|
7099
|
+
amountFormatted?: string | null;
|
|
7100
|
+
amountUsd?: string | null;
|
|
7101
|
+
minimumAmount?: string | null;
|
|
7102
|
+
};
|
|
7103
|
+
};
|
|
7104
|
+
/** @description Solana ATA rent sponsorship details. */
|
|
7105
|
+
rent: {
|
|
7106
|
+
/** @description Whether this fee bucket was selected for sponsorship. */
|
|
7107
|
+
selected: boolean;
|
|
7108
|
+
/** @description The full amount charged for this fee bucket. */
|
|
7109
|
+
total: {
|
|
7110
|
+
amount?: string | null;
|
|
7111
|
+
amountFormatted?: string | null;
|
|
7112
|
+
amountUsd?: string | null;
|
|
7113
|
+
minimumAmount?: string | null;
|
|
7114
|
+
};
|
|
7115
|
+
/** @description The portion of this fee bucket covered by the sponsor. */
|
|
7116
|
+
sponsored: {
|
|
7117
|
+
amount?: string | null;
|
|
7118
|
+
amountFormatted?: string | null;
|
|
7119
|
+
amountUsd?: string | null;
|
|
7120
|
+
minimumAmount?: string | null;
|
|
7121
|
+
};
|
|
7122
|
+
/** @description The portion of this fee bucket that remained user-paid. */
|
|
7123
|
+
userPays: {
|
|
7124
|
+
amount?: string | null;
|
|
7125
|
+
amountFormatted?: string | null;
|
|
7126
|
+
amountUsd?: string | null;
|
|
7127
|
+
minimumAmount?: string | null;
|
|
7128
|
+
};
|
|
7129
|
+
};
|
|
7130
|
+
};
|
|
7131
|
+
/** @description The total amount sponsored for this phase. */
|
|
7132
|
+
sponsoredTotal: {
|
|
7133
|
+
amount?: string | null;
|
|
7134
|
+
amountFormatted?: string | null;
|
|
7135
|
+
amountUsd?: string | null;
|
|
7136
|
+
minimumAmount?: string | null;
|
|
7137
|
+
};
|
|
7138
|
+
/** @description The total amount the user paid across the sponsorable fee buckets for this phase. */
|
|
7139
|
+
userPaysTotal: {
|
|
7140
|
+
amount?: string | null;
|
|
7141
|
+
amountFormatted?: string | null;
|
|
7142
|
+
amountUsd?: string | null;
|
|
7143
|
+
minimumAmount?: string | null;
|
|
7144
|
+
};
|
|
7145
|
+
/** @description How much the sponsor ultimately paid, denominated in the sponsor payment currency. */
|
|
7146
|
+
sponsorPayment?: {
|
|
7147
|
+
/** @description The sponsor payment amount. */
|
|
7148
|
+
amount: string;
|
|
7149
|
+
/** @description The sponsor payment currency address. */
|
|
7150
|
+
address: string;
|
|
7151
|
+
/** @description The sponsor payment chain id. */
|
|
7152
|
+
chainId: number;
|
|
7153
|
+
};
|
|
7154
|
+
};
|
|
7155
|
+
/** @description The currency in which all sponsorship amounts are denominated. Shared across all nested amount objects. */
|
|
7156
|
+
currency?: {
|
|
7157
|
+
chainId?: number;
|
|
7158
|
+
address?: string;
|
|
7159
|
+
symbol?: string;
|
|
7160
|
+
name?: string;
|
|
7161
|
+
decimals?: number;
|
|
7162
|
+
metadata?: {
|
|
7163
|
+
logoURI?: string;
|
|
7164
|
+
verified?: boolean;
|
|
7165
|
+
isNative?: boolean;
|
|
7166
|
+
};
|
|
7167
|
+
};
|
|
7168
|
+
};
|
|
7169
|
+
/** @description A summary of the swap and what the user should expect to happen given an input */
|
|
7170
|
+
details: {
|
|
7171
|
+
/** @description The operation that will be performed, possible options are send, swap, wrap, unwrap, bridge */
|
|
7172
|
+
operation?: string;
|
|
7173
|
+
/** @description The address that deposited the funds */
|
|
7174
|
+
sender?: string;
|
|
7175
|
+
/** @description The address that will be receiving the swap output */
|
|
7176
|
+
recipient?: string;
|
|
7177
|
+
currencyIn?: {
|
|
7178
|
+
currency?: {
|
|
7179
|
+
chainId?: number;
|
|
7180
|
+
address?: string;
|
|
7181
|
+
symbol?: string;
|
|
7182
|
+
name?: string;
|
|
7183
|
+
decimals?: number;
|
|
7184
|
+
metadata?: {
|
|
7185
|
+
logoURI?: string;
|
|
7186
|
+
verified?: boolean;
|
|
7187
|
+
isNative?: boolean;
|
|
7188
|
+
};
|
|
7189
|
+
};
|
|
7190
|
+
amount?: string;
|
|
7191
|
+
amountFormatted?: string;
|
|
7192
|
+
amountUsd?: string | null;
|
|
7193
|
+
minimumAmount?: string;
|
|
7194
|
+
};
|
|
7195
|
+
currencyOut?: {
|
|
7196
|
+
currency?: {
|
|
7197
|
+
chainId?: number;
|
|
7198
|
+
address?: string;
|
|
7199
|
+
symbol?: string;
|
|
7200
|
+
name?: string;
|
|
7201
|
+
decimals?: number;
|
|
7202
|
+
metadata?: {
|
|
7203
|
+
logoURI?: string;
|
|
7204
|
+
verified?: boolean;
|
|
7205
|
+
isNative?: boolean;
|
|
7206
|
+
};
|
|
7207
|
+
};
|
|
7208
|
+
amount?: string;
|
|
7209
|
+
amountFormatted?: string;
|
|
7210
|
+
amountUsd?: string | null;
|
|
7211
|
+
minimumAmount?: string;
|
|
7212
|
+
};
|
|
7213
|
+
refundCurrency?: {
|
|
7214
|
+
currency?: {
|
|
7215
|
+
chainId?: number;
|
|
7216
|
+
address?: string;
|
|
7217
|
+
symbol?: string;
|
|
7218
|
+
name?: string;
|
|
7219
|
+
decimals?: number;
|
|
7220
|
+
metadata?: {
|
|
7221
|
+
logoURI?: string;
|
|
7222
|
+
verified?: boolean;
|
|
7223
|
+
isNative?: boolean;
|
|
7224
|
+
};
|
|
7225
|
+
};
|
|
7226
|
+
amount?: string;
|
|
7227
|
+
amountFormatted?: string;
|
|
7228
|
+
amountUsd?: string | null;
|
|
7229
|
+
minimumAmount?: string;
|
|
7230
|
+
};
|
|
7231
|
+
currencyGasTopup?: {
|
|
7232
|
+
currency?: {
|
|
7233
|
+
chainId?: number;
|
|
7234
|
+
address?: string;
|
|
7235
|
+
symbol?: string;
|
|
7236
|
+
name?: string;
|
|
7237
|
+
decimals?: number;
|
|
7238
|
+
metadata?: {
|
|
7239
|
+
logoURI?: string;
|
|
7240
|
+
verified?: boolean;
|
|
7241
|
+
isNative?: boolean;
|
|
7242
|
+
};
|
|
7243
|
+
};
|
|
7244
|
+
amount?: string;
|
|
7245
|
+
amountFormatted?: string;
|
|
7246
|
+
amountUsd?: string | null;
|
|
7247
|
+
minimumAmount?: string;
|
|
7248
|
+
};
|
|
7249
|
+
/** @description The difference between the input and output values, including fees */
|
|
7250
|
+
totalImpact?: {
|
|
7251
|
+
usd?: string;
|
|
7252
|
+
percent?: string;
|
|
7253
|
+
};
|
|
7254
|
+
/** @description The impact of the swap, not factoring in fees */
|
|
7255
|
+
swapImpact?: {
|
|
7256
|
+
usd?: string;
|
|
7257
|
+
percent?: string;
|
|
7258
|
+
};
|
|
7259
|
+
/** @description The swap rate which is equal to 1 input unit in the output unit, e.g. 1 USDC -> x ETH. This value can fluctuate based on gas and fees. */
|
|
7260
|
+
rate?: string;
|
|
7261
|
+
slippageTolerance?: {
|
|
7262
|
+
/** @description The total slippage tolerance applied to the order, in basis points (1/100th of a percent), e.g. 50 for 0.5% slippage. The origin and destination breakdowns are alternative allocations of this budget and are not additive. */
|
|
7263
|
+
total?: string;
|
|
7264
|
+
/** @description The slippage tolerance on the origin chain swap */
|
|
7265
|
+
origin?: {
|
|
7266
|
+
usd?: string;
|
|
7267
|
+
value?: string;
|
|
7268
|
+
percent?: string;
|
|
7269
|
+
};
|
|
7270
|
+
/** @description The slippage tolerance on the destination chain swap */
|
|
7271
|
+
destination?: {
|
|
7272
|
+
usd?: string;
|
|
7273
|
+
value?: string;
|
|
7274
|
+
percent?: string;
|
|
7275
|
+
};
|
|
7276
|
+
};
|
|
7277
|
+
/** @description Estimated swap time in seconds */
|
|
7278
|
+
timeEstimate?: number;
|
|
7279
|
+
/** @description The user's balance in the given currency on the origin chain */
|
|
7280
|
+
userBalance?: string;
|
|
7281
|
+
/** @description Whether the rate for the quote is fixed or dynamic (swap on origin/destination). Always true for sends. It does not report whether a requested fixedRate was applied; warnings does. */
|
|
6143
7282
|
isFixedRate?: boolean;
|
|
6144
7283
|
/** @description The USD cost of the fixed rate vs market rate. Positive means the fixed rate is worse than market (user pays premium), negative means better (user benefits). Only present for fixed rate quotes. */
|
|
6145
7284
|
fixedRateFee?: {
|
|
@@ -6148,26 +7287,6 @@ export interface paths {
|
|
|
6148
7287
|
route?: {
|
|
6149
7288
|
/** @description The route taken for the origin chain swap */
|
|
6150
7289
|
origin?: {
|
|
6151
|
-
/**
|
|
6152
|
-
* @example {
|
|
6153
|
-
* "currency": {
|
|
6154
|
-
* "chainId": 8453,
|
|
6155
|
-
* "address": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
|
|
6156
|
-
* "symbol": "USDC",
|
|
6157
|
-
* "name": "USD Coin",
|
|
6158
|
-
* "decimals": 6,
|
|
6159
|
-
* "metadata": {
|
|
6160
|
-
* "logoURI": "https://ethereum-optimism.github.io/data/USDC/logo.png",
|
|
6161
|
-
* "verified": false,
|
|
6162
|
-
* "isNative": false
|
|
6163
|
-
* }
|
|
6164
|
-
* },
|
|
6165
|
-
* "amount": "30754920",
|
|
6166
|
-
* "amountFormatted": "30.75492",
|
|
6167
|
-
* "amountUsd": "30.901612",
|
|
6168
|
-
* "minimumAmount": "30454920"
|
|
6169
|
-
* }
|
|
6170
|
-
*/
|
|
6171
7290
|
inputCurrency?: {
|
|
6172
7291
|
currency?: {
|
|
6173
7292
|
chainId?: number;
|
|
@@ -6183,29 +7302,9 @@ export interface paths {
|
|
|
6183
7302
|
};
|
|
6184
7303
|
amount?: string;
|
|
6185
7304
|
amountFormatted?: string;
|
|
6186
|
-
amountUsd?: string;
|
|
7305
|
+
amountUsd?: string | null;
|
|
6187
7306
|
minimumAmount?: string;
|
|
6188
7307
|
};
|
|
6189
|
-
/**
|
|
6190
|
-
* @example {
|
|
6191
|
-
* "currency": {
|
|
6192
|
-
* "chainId": 8453,
|
|
6193
|
-
* "address": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
|
|
6194
|
-
* "symbol": "USDC",
|
|
6195
|
-
* "name": "USD Coin",
|
|
6196
|
-
* "decimals": 6,
|
|
6197
|
-
* "metadata": {
|
|
6198
|
-
* "logoURI": "https://ethereum-optimism.github.io/data/USDC/logo.png",
|
|
6199
|
-
* "verified": false,
|
|
6200
|
-
* "isNative": false
|
|
6201
|
-
* }
|
|
6202
|
-
* },
|
|
6203
|
-
* "amount": "30754920",
|
|
6204
|
-
* "amountFormatted": "30.75492",
|
|
6205
|
-
* "amountUsd": "30.901612",
|
|
6206
|
-
* "minimumAmount": "30454920"
|
|
6207
|
-
* }
|
|
6208
|
-
*/
|
|
6209
7308
|
outputCurrency?: {
|
|
6210
7309
|
currency?: {
|
|
6211
7310
|
chainId?: number;
|
|
@@ -6221,7 +7320,7 @@ export interface paths {
|
|
|
6221
7320
|
};
|
|
6222
7321
|
amount?: string;
|
|
6223
7322
|
amountFormatted?: string;
|
|
6224
|
-
amountUsd?: string;
|
|
7323
|
+
amountUsd?: string | null;
|
|
6225
7324
|
minimumAmount?: string;
|
|
6226
7325
|
};
|
|
6227
7326
|
router?: string;
|
|
@@ -6229,26 +7328,6 @@ export interface paths {
|
|
|
6229
7328
|
};
|
|
6230
7329
|
/** @description The route taken for the origin chain swap */
|
|
6231
7330
|
destination?: {
|
|
6232
|
-
/**
|
|
6233
|
-
* @example {
|
|
6234
|
-
* "currency": {
|
|
6235
|
-
* "chainId": 8453,
|
|
6236
|
-
* "address": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
|
|
6237
|
-
* "symbol": "USDC",
|
|
6238
|
-
* "name": "USD Coin",
|
|
6239
|
-
* "decimals": 6,
|
|
6240
|
-
* "metadata": {
|
|
6241
|
-
* "logoURI": "https://ethereum-optimism.github.io/data/USDC/logo.png",
|
|
6242
|
-
* "verified": false,
|
|
6243
|
-
* "isNative": false
|
|
6244
|
-
* }
|
|
6245
|
-
* },
|
|
6246
|
-
* "amount": "30754920",
|
|
6247
|
-
* "amountFormatted": "30.75492",
|
|
6248
|
-
* "amountUsd": "30.901612",
|
|
6249
|
-
* "minimumAmount": "30454920"
|
|
6250
|
-
* }
|
|
6251
|
-
*/
|
|
6252
7331
|
inputCurrency?: {
|
|
6253
7332
|
currency?: {
|
|
6254
7333
|
chainId?: number;
|
|
@@ -6264,29 +7343,9 @@ export interface paths {
|
|
|
6264
7343
|
};
|
|
6265
7344
|
amount?: string;
|
|
6266
7345
|
amountFormatted?: string;
|
|
6267
|
-
amountUsd?: string;
|
|
7346
|
+
amountUsd?: string | null;
|
|
6268
7347
|
minimumAmount?: string;
|
|
6269
7348
|
};
|
|
6270
|
-
/**
|
|
6271
|
-
* @example {
|
|
6272
|
-
* "currency": {
|
|
6273
|
-
* "chainId": 8453,
|
|
6274
|
-
* "address": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
|
|
6275
|
-
* "symbol": "USDC",
|
|
6276
|
-
* "name": "USD Coin",
|
|
6277
|
-
* "decimals": 6,
|
|
6278
|
-
* "metadata": {
|
|
6279
|
-
* "logoURI": "https://ethereum-optimism.github.io/data/USDC/logo.png",
|
|
6280
|
-
* "verified": false,
|
|
6281
|
-
* "isNative": false
|
|
6282
|
-
* }
|
|
6283
|
-
* },
|
|
6284
|
-
* "amount": "30754920",
|
|
6285
|
-
* "amountFormatted": "30.75492",
|
|
6286
|
-
* "amountUsd": "30.901612",
|
|
6287
|
-
* "minimumAmount": "30454920"
|
|
6288
|
-
* }
|
|
6289
|
-
*/
|
|
6290
7349
|
outputCurrency?: {
|
|
6291
7350
|
currency?: {
|
|
6292
7351
|
chainId?: number;
|
|
@@ -6302,7 +7361,7 @@ export interface paths {
|
|
|
6302
7361
|
};
|
|
6303
7362
|
amount?: string;
|
|
6304
7363
|
amountFormatted?: string;
|
|
6305
|
-
amountUsd?: string;
|
|
7364
|
+
amountUsd?: string | null;
|
|
6306
7365
|
minimumAmount?: string;
|
|
6307
7366
|
};
|
|
6308
7367
|
router?: string;
|
|
@@ -6326,7 +7385,7 @@ export interface paths {
|
|
|
6326
7385
|
orderSignature?: string;
|
|
6327
7386
|
/** @description The details for the depository payment */
|
|
6328
7387
|
paymentDetails?: {
|
|
6329
|
-
/** @description The protocol chain
|
|
7388
|
+
/** @description The protocol chain identifier for the payment, such as ethereum or base */
|
|
6330
7389
|
chainId?: string;
|
|
6331
7390
|
/** @description The depository address */
|
|
6332
7391
|
depository?: string;
|
|
@@ -6347,17 +7406,9 @@ export interface paths {
|
|
|
6347
7406
|
};
|
|
6348
7407
|
content: {
|
|
6349
7408
|
"application/json": {
|
|
6350
|
-
message
|
|
6351
|
-
errorCode
|
|
6352
|
-
errorData?: string;
|
|
7409
|
+
message: string;
|
|
7410
|
+
errorCode: string;
|
|
6353
7411
|
requestId?: string;
|
|
6354
|
-
approxSimulatedBlock?: number;
|
|
6355
|
-
failedCallData?: {
|
|
6356
|
-
from?: string;
|
|
6357
|
-
to?: string;
|
|
6358
|
-
data?: string;
|
|
6359
|
-
value?: string;
|
|
6360
|
-
};
|
|
6361
7412
|
};
|
|
6362
7413
|
};
|
|
6363
7414
|
};
|
|
@@ -6368,8 +7419,35 @@ export interface paths {
|
|
|
6368
7419
|
};
|
|
6369
7420
|
content: {
|
|
6370
7421
|
"application/json": {
|
|
6371
|
-
message
|
|
6372
|
-
errorCode
|
|
7422
|
+
message: string;
|
|
7423
|
+
errorCode: string;
|
|
7424
|
+
requestId?: string;
|
|
7425
|
+
};
|
|
7426
|
+
};
|
|
7427
|
+
};
|
|
7428
|
+
/** @description Default Response */
|
|
7429
|
+
403: {
|
|
7430
|
+
headers: {
|
|
7431
|
+
[name: string]: unknown;
|
|
7432
|
+
};
|
|
7433
|
+
content: {
|
|
7434
|
+
"application/json": {
|
|
7435
|
+
message: string;
|
|
7436
|
+
errorCode: string;
|
|
7437
|
+
requestId?: string;
|
|
7438
|
+
};
|
|
7439
|
+
};
|
|
7440
|
+
};
|
|
7441
|
+
/** @description Default Response */
|
|
7442
|
+
415: {
|
|
7443
|
+
headers: {
|
|
7444
|
+
[name: string]: unknown;
|
|
7445
|
+
};
|
|
7446
|
+
content: {
|
|
7447
|
+
"application/json": {
|
|
7448
|
+
message: string;
|
|
7449
|
+
errorCode: string;
|
|
7450
|
+
requestId?: string;
|
|
6373
7451
|
};
|
|
6374
7452
|
};
|
|
6375
7453
|
};
|
|
@@ -6380,7 +7458,9 @@ export interface paths {
|
|
|
6380
7458
|
};
|
|
6381
7459
|
content: {
|
|
6382
7460
|
"application/json": {
|
|
6383
|
-
message
|
|
7461
|
+
message: string;
|
|
7462
|
+
errorCode: string;
|
|
7463
|
+
requestId?: string;
|
|
6384
7464
|
};
|
|
6385
7465
|
};
|
|
6386
7466
|
};
|
|
@@ -6391,8 +7471,21 @@ export interface paths {
|
|
|
6391
7471
|
};
|
|
6392
7472
|
content: {
|
|
6393
7473
|
"application/json": {
|
|
6394
|
-
message
|
|
6395
|
-
errorCode
|
|
7474
|
+
message: string;
|
|
7475
|
+
errorCode: string;
|
|
7476
|
+
requestId?: string;
|
|
7477
|
+
};
|
|
7478
|
+
};
|
|
7479
|
+
};
|
|
7480
|
+
/** @description Default Response */
|
|
7481
|
+
503: {
|
|
7482
|
+
headers: {
|
|
7483
|
+
[name: string]: unknown;
|
|
7484
|
+
};
|
|
7485
|
+
content: {
|
|
7486
|
+
"application/json": {
|
|
7487
|
+
message: string;
|
|
7488
|
+
errorCode: string;
|
|
6396
7489
|
requestId?: string;
|
|
6397
7490
|
};
|
|
6398
7491
|
};
|
|
@@ -7102,7 +8195,7 @@ export interface paths {
|
|
|
7102
8195
|
"application/json": {
|
|
7103
8196
|
/** @description The request ID of the request that needs to be fast filled */
|
|
7104
8197
|
requestId: string;
|
|
7105
|
-
/** @description
|
|
8198
|
+
/** @description Optional solver input amount observed on origin, in raw base units. For an EXACT_INPUT or EXPECTED_OUTPUT quote with an origin swap it must be between the quote's minimum amount and the quoted amount; otherwise it must equal the quoted amount. Omit to use the quoted amount. */
|
|
7106
8199
|
solverInputCurrencyAmount?: string;
|
|
7107
8200
|
/** @description Optional per-request USD limit. If the computed fill value exceeds this amount, the request is rejected. Must be lower than or equal to the app's available USDC balance. */
|
|
7108
8201
|
maxFillAmountUsd?: number;
|
|
@@ -7146,7 +8239,7 @@ export interface paths {
|
|
|
7146
8239
|
};
|
|
7147
8240
|
};
|
|
7148
8241
|
};
|
|
7149
|
-
/** @description Forbidden -
|
|
8242
|
+
/** @description Forbidden - Caller does not own the quote, has no sponsoring wallet with app balance configured, or fast fill is disabled for the app. */
|
|
7150
8243
|
403: {
|
|
7151
8244
|
headers: {
|
|
7152
8245
|
[name: string]: unknown;
|
|
@@ -7155,6 +8248,8 @@ export interface paths {
|
|
|
7155
8248
|
"application/json": {
|
|
7156
8249
|
/** @example Forbidden: Fast fill requires a sponsoring wallet with app balance. */
|
|
7157
8250
|
message?: string;
|
|
8251
|
+
/** @example FORBIDDEN */
|
|
8252
|
+
errorCode?: string;
|
|
7158
8253
|
};
|
|
7159
8254
|
};
|
|
7160
8255
|
};
|
|
@@ -10410,7 +11505,7 @@ export interface paths {
|
|
|
10410
11505
|
fees?: {
|
|
10411
11506
|
/** @description Fees as estimated at quote time */
|
|
10412
11507
|
quoted?: {
|
|
10413
|
-
/** @description Cost to execute swap or bridge depending on available liquidity.
|
|
11508
|
+
/** @description Cost to execute a swap or bridge depending on available liquidity. Negative USD values represent costs; positive USD values represent network rewards for improving liquidity distribution. */
|
|
10414
11509
|
swap?: {
|
|
10415
11510
|
usd?: string | null;
|
|
10416
11511
|
amount?: string | null;
|
|
@@ -10443,7 +11538,7 @@ export interface paths {
|
|
|
10443
11538
|
};
|
|
10444
11539
|
/** @description Fees as computed at fill time */
|
|
10445
11540
|
actual?: {
|
|
10446
|
-
/** @description Cost to execute swap or bridge depending on available liquidity.
|
|
11541
|
+
/** @description Cost to execute a swap or bridge depending on available liquidity. Negative USD values represent costs; positive USD values represent network rewards for improving liquidity distribution. */
|
|
10447
11542
|
swap?: {
|
|
10448
11543
|
usd?: string | null;
|
|
10449
11544
|
amount?: string | null;
|
|
@@ -11301,6 +12396,193 @@ export interface paths {
|
|
|
11301
12396
|
patch?: never;
|
|
11302
12397
|
trace?: never;
|
|
11303
12398
|
};
|
|
12399
|
+
"/requests/exports": {
|
|
12400
|
+
parameters: {
|
|
12401
|
+
query?: never;
|
|
12402
|
+
header?: never;
|
|
12403
|
+
path?: never;
|
|
12404
|
+
cookie?: never;
|
|
12405
|
+
};
|
|
12406
|
+
get?: never;
|
|
12407
|
+
put?: never;
|
|
12408
|
+
post: {
|
|
12409
|
+
parameters: {
|
|
12410
|
+
query?: never;
|
|
12411
|
+
header: {
|
|
12412
|
+
"x-dev-portal-key": string;
|
|
12413
|
+
};
|
|
12414
|
+
path?: never;
|
|
12415
|
+
cookie?: never;
|
|
12416
|
+
};
|
|
12417
|
+
requestBody: {
|
|
12418
|
+
content: {
|
|
12419
|
+
"application/json": {
|
|
12420
|
+
columns?: ("status" | "requestId" | "description" | "origin" | "destination" | "senderRecipient" | "timestamp" | "refund" | "failedReason" | "refundReason" | "revShareUsd" | "appFeesUsd")[];
|
|
12421
|
+
requesterId: string;
|
|
12422
|
+
deliveryContext: string;
|
|
12423
|
+
exportId: string;
|
|
12424
|
+
filters: {
|
|
12425
|
+
/** @description Filter requests by wallet address — matches requests where this address is the sender or the deposit-address depositor. */
|
|
12426
|
+
user?: string;
|
|
12427
|
+
/** @description Broad term search across request ID, wallet, deposit address, and all transaction hashes (deposit, fill, refund, failed, and chain entry transaction IDs). Use `id`, `depositTxHash`, `fillTxHash`, or `refundTxHash` for targeted single-field lookups. */
|
|
12428
|
+
term?: string;
|
|
12429
|
+
/** @description Filter by requestId — the Relay-level intent identifier returned by the quote API. */
|
|
12430
|
+
id?: string;
|
|
12431
|
+
/** @description Filter by protocol-level orderId. */
|
|
12432
|
+
orderId?: string;
|
|
12433
|
+
/** @description Filter by deposit transaction hash. */
|
|
12434
|
+
depositTxHash?: string;
|
|
12435
|
+
/** @description Filter by fill transaction hash. */
|
|
12436
|
+
fillTxHash?: string;
|
|
12437
|
+
/** @description Filter by refund transaction hash. */
|
|
12438
|
+
refundTxHash?: string;
|
|
12439
|
+
/** @description Filter requests where this is the origin chain. */
|
|
12440
|
+
originChainId?: number;
|
|
12441
|
+
/** @description Filter requests where this is the destination chain. Requests are limited to the caller’s integrator and requests without an API key. */
|
|
12442
|
+
destinationChainId?: number;
|
|
12443
|
+
/** @description Get all requests for a single chain in either direction. Overridden by originChainId / destinationChainId. Requests are limited to the caller’s integrator and requests without an API key. */
|
|
12444
|
+
chainId?: number;
|
|
12445
|
+
/** @description Comma-separated list of private chain UUIDs to include in results. */
|
|
12446
|
+
privateChainsToInclude?: string;
|
|
12447
|
+
/** @description Filter requests associated with this deposit address. */
|
|
12448
|
+
depositAddress?: string;
|
|
12449
|
+
/** @description Filter requests where this address is the recipient. */
|
|
12450
|
+
recipient?: string;
|
|
12451
|
+
/** @enum {string} */
|
|
12452
|
+
status?: "success" | "failure" | "refund";
|
|
12453
|
+
/**
|
|
12454
|
+
* @description Filter requests by failure reason. Only returns requests that failed with this specific reason.
|
|
12455
|
+
* @enum {string}
|
|
12456
|
+
*/
|
|
12457
|
+
failReason?: "UNKNOWN" | "SLIPPAGE" | "AMOUNT_TOO_LOW_TO_REFUND" | "DEPOSIT_ADDRESS_MISMATCH" | "DEPOSIT_CHAIN_MISMATCH" | "INCORRECT_DEPOSIT_CURRENCY" | "DOUBLE_SPEND" | "SOLVER_CAPACITY_EXCEEDED" | "SOLVER_BALANCE_TOO_LOW" | "DEPOSITED_AMOUNT_TOO_LOW_TO_FILL" | "NEGATIVE_NEW_AMOUNT_AFTER_FEES" | "NO_QUOTES" | "MISSING_REVERT_DATA" | "REVERSE_SWAP_FAILED" | "GENERATE_SWAP_FAILED" | "TOO_LITTLE_RECEIVED" | "EXECUTION_REVERTED" | "NEW_CALLDATA_INCLUDES_HIGHER_RENT_FEE" | "TRANSACTION_REVERTED" | "TRANSACTION_TOO_LARGE" | "ORIGIN_CURRENCY_MISMATCH" | "NO_INTERNAL_SWAP_ROUTES_FOUND" | "SWAP_USES_TOO_MUCH_GAS" | "INSUFFICIENT_FUNDS_FOR_RENT" | "SPONSOR_BALANCE_TOO_LOW" | "ORDER_EXPIRED" | "ORDER_IS_CANCELLED" | "TRANSFER_FROM_FAILED" | "TRANSFER_FAILED" | "SIGNATURE_EXPIRED" | "INVALID_SIGNATURE" | "INSUFFICIENT_NATIVE_TOKENS_SUPPLIED" | "TRANSFER_AMOUNT_EXCEEDS_ALLOWANCE" | "TRANSFER_AMOUNT_EXCEEDS_BALANCE" | "INVALID_SENDER" | "ACCOUNT_ABSTRACTION_INVALID_NONCE" | "ACCOUNT_ABSTRACTION_SIGNATURE_ERROR" | "SEAPORT_INEXACT_FRACTION" | "TOKEN_NOT_TRANSFERABLE" | "ZERO_SELL_AMOUNT" | "MINT_NOT_ACTIVE" | "ERC_1155_TOO_MANY_REQUESTED" | "INCORRECT_PAYMENT" | "INVALID_GAS_PRICE" | "FLUID_DEX_ERROR" | "ORDER_ALREADY_FILLED" | "SEAPORT_INVALID_FULFILLER" | "INVALID_SIGNER" | "MINT_QUANTITY_EXCEEDS_MAX_PER_WALLET" | "MINT_QUANTITY_EXCEEDS_MAX_SUPPLY" | "JUPITER_INVALID_TOKEN_ACCOUNT" | "INVALID_NONCE" | "ACCOUNT_ABSTRACTION_GAS_LIMIT" | "CONTRACT_PAUSED" | "SWAP_IMPACT_TOO_HIGH" | "INSUFFICIENT_POOL_LIQUIDITY" | "POOL_CAP_EXCEEDED" | "TTL_EXPIRED" | "DEPOSIT_CONFIRMATION_TIMEOUT" | "ORPHANED_DEPOSIT_REFUND" | "GASLESS_PERMIT_BALANCE_TOO_LOW" | "MANUAL_ADMIN_REFUND" | "QUOTED_GAS_LIMIT_EXCEEDED" | "DESTINATION_TOKEN_TRANSFER_REJECTED" | "DEPOSIT_REORGED" | "BLOCKED_WALLET" | "PROTOCOL_DEADLINE_EXPIRED" | "TRANSACTION_NOT_INCLUDED" | "TRANSACTION_SUBMISSION_FAILED" | "N/A";
|
|
12458
|
+
/**
|
|
12459
|
+
* @description Filter requests by refund failure reason.
|
|
12460
|
+
* @enum {string}
|
|
12461
|
+
*/
|
|
12462
|
+
refundFailReason?: "AMOUNT_TOO_LOW_TO_REFUND" | "NEGATIVE_NEW_AMOUNT_AFTER_FEES" | "SWAP_CURRENCY_NOT_ON_ORIGIN" | "REFUND_RECIPIENT_IS_VASP" | "REFUND_RECIPIENT_IS_BLOCKED" | "MANUAL_REFUND_REQUIRED";
|
|
12463
|
+
/** @description Filter requests by API key. Accepts a single value or a comma-separated list (OR matching). Maximum 50 values across apiKey and apiKeyId. */
|
|
12464
|
+
apiKey?: string;
|
|
12465
|
+
/** @description Filter by App IDs (app_id_<uuid>, comma-separated, maximum 50) owned by your integrator. Matches indexed App attribution across current and revoked keys. */
|
|
12466
|
+
appId?: string;
|
|
12467
|
+
/** @description Filter by API key IDs (lowercase key_id_<uuid>, comma-separated), owned by your integrator. OR matching with apiKey; maximum 50 values combined. */
|
|
12468
|
+
apiKeyId?: string;
|
|
12469
|
+
/** @description Filter requests by requestType (case-insensitive). Supported values: Bridge, Crosschain Swap, Same-chain Swap, Send, Wrap, Unwrap, Call. */
|
|
12470
|
+
requestType?: string;
|
|
12471
|
+
/** @description Filter requests by the exact `referrer` value supplied at quote time. Without `apiKeyId` or `apiKey`, returns only matching public keyless requests. Every supplied key must belong to the authenticating integrator. Includes matching requests for the selected keys and public requests with neither a recorded API key nor a legacy fill API key, regardless of age. Existing visibility restrictions still apply; public requests are not assigned to your integrator. */
|
|
12472
|
+
referrer?: string;
|
|
12473
|
+
/** @description Filter by origin currency chain ID. */
|
|
12474
|
+
currencyInChainId?: number;
|
|
12475
|
+
/** @description Filter by destination currency chain ID. Requests are limited to the caller’s integrator and requests without an API key. */
|
|
12476
|
+
currencyOutChainId?: number;
|
|
12477
|
+
/** @description Filter by origin currency contract address. */
|
|
12478
|
+
currencyInAddress?: string;
|
|
12479
|
+
/** @description Filter by destination currency contract address. Requests are limited to the caller’s integrator and requests without an API key. */
|
|
12480
|
+
currencyOutAddress?: string;
|
|
12481
|
+
/** @description Filter by origin currency symbol (e.g. USDC). Case-insensitive; matches across all chains. */
|
|
12482
|
+
currencyInSymbol?: string;
|
|
12483
|
+
/** @description Filter by destination currency symbol (e.g. USDC). Case-insensitive; matches across all chains. Requests are limited to the caller’s integrator and requests without an API key. */
|
|
12484
|
+
currencyOutSymbol?: string;
|
|
12485
|
+
/** @enum {string} */
|
|
12486
|
+
sortBy?: "createdAt" | "updatedAt" | "amountUsd";
|
|
12487
|
+
/**
|
|
12488
|
+
* @description Sort direction (default: desc for time fields, asc for amountUsd).
|
|
12489
|
+
* @enum {string}
|
|
12490
|
+
*/
|
|
12491
|
+
sortDirection?: "asc" | "desc";
|
|
12492
|
+
/** @description Filter requests with createdAt ≥ this Unix timestamp (seconds). Applied to updatedAt instead when sortBy=updatedAt. */
|
|
12493
|
+
startTimestamp?: number;
|
|
12494
|
+
/** @description Filter requests with createdAt ≤ this Unix timestamp (seconds). Applied to updatedAt instead when sortBy=updatedAt. */
|
|
12495
|
+
endTimestamp?: number;
|
|
12496
|
+
/** @description Filter by chain entry block number (inclusive lower bound). When originChainId is also set, scoped to origin-chain entries only. */
|
|
12497
|
+
startBlock?: number;
|
|
12498
|
+
/** @description Filter by chain entry block number (inclusive upper bound). When originChainId is also set, scoped to origin-chain entries only. */
|
|
12499
|
+
endBlock?: number;
|
|
12500
|
+
/** @description Filter requests with currencyIn.amountUsd ≥ this value. */
|
|
12501
|
+
amountUsdMin?: number;
|
|
12502
|
+
/** @description Filter requests with currencyIn.amountUsd ≤ this value. */
|
|
12503
|
+
amountUsdMax?: number;
|
|
12504
|
+
/** @description Filter requests with total app fees USD ≥ this value. */
|
|
12505
|
+
appFeesAmountUsdMin?: number;
|
|
12506
|
+
/** @description Filter requests with total app fees USD ≤ this value. */
|
|
12507
|
+
appFeesAmountUsdMax?: number;
|
|
12508
|
+
/** @description Filter requests with fill time ≥ this value (seconds). */
|
|
12509
|
+
fillTimeMin?: number;
|
|
12510
|
+
/** @description Filter requests with fill time ≤ this value (seconds). */
|
|
12511
|
+
fillTimeMax?: number;
|
|
12512
|
+
/** @description Comma-separated feature flags to filter by. Requests must have at least one of the specified features. Supported values: gasless_execution, gasless_swap, fast_fill, gas_top_up, fixed_rate, app_fees, deposit_address, fee_sponsorship. */
|
|
12513
|
+
features?: string;
|
|
12514
|
+
/** @description Only effective when `id` is also provided. When true, returns the parent request AND any child requests. When false or omitted, only the exact `request_id` match is returned. */
|
|
12515
|
+
includeChildRequests?: boolean;
|
|
12516
|
+
/** @description JSON-encoded array of filter-group objects. Fields within each group are AND'd; groups are OR'd. Prefix a key with 'not:' to negate it (must_not). Values can be a scalar or an array (OR semantics within the field). Example: [{"depositAddress":"0xabc","originChainId":8453},{"depositAddress":"0x123","originChainId":1}]. Negation example: [{"not:status":"failure"}]. Array value example: [{"not:status":["failure","refund"]}]. A value of null is a null-check ("is empty"/"is not empty") instead of an equality test, for any key. Null-check example: [{"depositAddress":null}] (is empty / does not exist), [{"not:depositAddress":null}] (is not empty / exists). null cannot be combined with real values in an array. At most 50 distinct string values across id, term, and grouped id/term filters (including negations) are allowed; a top-level id with includeChildRequests is excluded from this limit. Requests are limited to the caller’s integrator and requests without an API key. A `referrer` key (or `not:referrer`) without top-level `apiKeyId` or `apiKey` limits that group to public keyless requests. Optional key parameters must contain keys owned by the authenticating integrator. Referrer groups also include matching public keyless requests regardless of age; groups without a referrer retain their existing scope unless a top-level referrer is supplied. */
|
|
12517
|
+
filters?: string;
|
|
12518
|
+
apiKeyIds?: string[];
|
|
12519
|
+
appIds?: string[];
|
|
12520
|
+
};
|
|
12521
|
+
};
|
|
12522
|
+
};
|
|
12523
|
+
};
|
|
12524
|
+
responses: {
|
|
12525
|
+
/** @description Default Response */
|
|
12526
|
+
202: {
|
|
12527
|
+
headers: {
|
|
12528
|
+
[name: string]: unknown;
|
|
12529
|
+
};
|
|
12530
|
+
content: {
|
|
12531
|
+
"application/json": {
|
|
12532
|
+
exportId: string;
|
|
12533
|
+
/** @enum {string} */
|
|
12534
|
+
status: "queued" | "processing" | "ready" | "failed";
|
|
12535
|
+
/** Format: date-time */
|
|
12536
|
+
createdAt: string;
|
|
12537
|
+
maxRows: number;
|
|
12538
|
+
};
|
|
12539
|
+
};
|
|
12540
|
+
};
|
|
12541
|
+
};
|
|
12542
|
+
};
|
|
12543
|
+
delete?: never;
|
|
12544
|
+
options?: never;
|
|
12545
|
+
head?: never;
|
|
12546
|
+
patch?: never;
|
|
12547
|
+
trace?: never;
|
|
12548
|
+
};
|
|
12549
|
+
"/requests/exports/{id}/download": {
|
|
12550
|
+
parameters: {
|
|
12551
|
+
query?: never;
|
|
12552
|
+
header?: never;
|
|
12553
|
+
path?: never;
|
|
12554
|
+
cookie?: never;
|
|
12555
|
+
};
|
|
12556
|
+
get: {
|
|
12557
|
+
parameters: {
|
|
12558
|
+
query: {
|
|
12559
|
+
token: string;
|
|
12560
|
+
};
|
|
12561
|
+
header?: never;
|
|
12562
|
+
path: {
|
|
12563
|
+
id: string;
|
|
12564
|
+
};
|
|
12565
|
+
cookie?: never;
|
|
12566
|
+
};
|
|
12567
|
+
requestBody?: never;
|
|
12568
|
+
responses: {
|
|
12569
|
+
/** @description Default Response */
|
|
12570
|
+
302: {
|
|
12571
|
+
headers: {
|
|
12572
|
+
[name: string]: unknown;
|
|
12573
|
+
};
|
|
12574
|
+
content?: never;
|
|
12575
|
+
};
|
|
12576
|
+
};
|
|
12577
|
+
};
|
|
12578
|
+
put?: never;
|
|
12579
|
+
post?: never;
|
|
12580
|
+
delete?: never;
|
|
12581
|
+
options?: never;
|
|
12582
|
+
head?: never;
|
|
12583
|
+
patch?: never;
|
|
12584
|
+
trace?: never;
|
|
12585
|
+
};
|
|
11304
12586
|
"/transactions/index": {
|
|
11305
12587
|
parameters: {
|
|
11306
12588
|
query?: never;
|
|
@@ -13615,6 +14897,8 @@ export interface operations {
|
|
|
13615
14897
|
subsidizationBps?: number;
|
|
13616
14898
|
/** @description The integrator's own id for the order; an integrator can use each id once */
|
|
13617
14899
|
clientOrderId?: string;
|
|
14900
|
+
/** @description Testing only: every fill fails after the order's funds are pulled, so Relay holds them until the order is cancelled or expires */
|
|
14901
|
+
forceFailure?: boolean;
|
|
13618
14902
|
};
|
|
13619
14903
|
};
|
|
13620
14904
|
};
|