|
172 | 172 | "default": "false" |
173 | 173 | }, |
174 | 174 | "description": "If set to `true`, the taker's entire `sellToken` balance will be sold during trade execution. The `sellAmount` should be the maximum estimated value, as close as possible to the actual taker's balance to ensure the best routing. Selling more than the `sellAmount` may cause the trade to revert. This feature is designed for cases where the precise sell amount is determined during execution. Learn more [here](https://docs.0x.org/docs/0x-swap-api/additional-topics/sell-entire-balance)." |
| 175 | + }, |
| 176 | + { |
| 177 | + "name": "wrapUnwrapMode", |
| 178 | + "in": "query", |
| 179 | + "required": false, |
| 180 | + "schema": { |
| 181 | + "anyOf": [ |
| 182 | + { "not": {} }, |
| 183 | + { "type": "string", "enum": ["direct", "settler"] } |
| 184 | + ] |
| 185 | + }, |
| 186 | + "description": "Controls how native wrap/unwrap trades are executed. `direct` calls the wrapped-native token contract directly. `settler` routes wrap/unwrap through Settler or Allowance Holder for compatibility. Ignored for non-wrap/unwrap swaps. If omitted, `direct` mode is used." |
175 | 187 | } |
176 | 188 | ], |
177 | 189 | "responses": { |
|
977 | 989 | "default": "false" |
978 | 990 | }, |
979 | 991 | "description": "If set to `true`, the taker's entire `sellToken` balance will be sold during trade execution. The `sellAmount` should be the maximum estimated value, as close as possible to the actual taker's balance to ensure the best routing. Selling more than the `sellAmount` may cause the trade to revert. This feature is designed for cases where the precise sell amount is determined during execution. Learn more [here](https://docs.0x.org/docs/0x-swap-api/additional-topics/sell-entire-balance)." |
| 992 | + }, |
| 993 | + { |
| 994 | + "name": "wrapUnwrapMode", |
| 995 | + "in": "query", |
| 996 | + "required": false, |
| 997 | + "schema": { |
| 998 | + "anyOf": [ |
| 999 | + { "not": {} }, |
| 1000 | + { "type": "string", "enum": ["direct", "settler"] } |
| 1001 | + ] |
| 1002 | + }, |
| 1003 | + "description": "Controls how native wrap/unwrap trades are executed. `direct` calls the wrapped-native token contract directly. `settler` routes wrap/unwrap through Settler or Allowance Holder for compatibility. Ignored for non-wrap/unwrap swaps. If omitted, `direct` mode is used." |
980 | 1004 | } |
981 | 1005 | ], |
982 | 1006 | "responses": { |
|
1818 | 1842 | "default": "false" |
1819 | 1843 | }, |
1820 | 1844 | "description": "If set to `true`, the taker's entire `sellToken` balance will be sold during trade execution. The `sellAmount` should be the maximum estimated value, as close as possible to the actual taker's balance to ensure the best routing. Selling more than the `sellAmount` may cause the trade to revert. This feature is designed for cases where the precise sell amount is determined during execution. Learn more [here](https://docs.0x.org/docs/0x-swap-api/additional-topics/sell-entire-balance)." |
| 1845 | + }, |
| 1846 | + { |
| 1847 | + "name": "wrapUnwrapMode", |
| 1848 | + "in": "query", |
| 1849 | + "required": false, |
| 1850 | + "schema": { |
| 1851 | + "anyOf": [ |
| 1852 | + { "not": {} }, |
| 1853 | + { "type": "string", "enum": ["direct", "settler"] } |
| 1854 | + ] |
| 1855 | + }, |
| 1856 | + "description": "Controls how native wrap/unwrap trades are executed. `direct` calls the wrapped-native token contract directly. `settler` routes wrap/unwrap through Settler or Allowance Holder for compatibility. Ignored for non-wrap/unwrap swaps. If omitted, `direct` mode is used." |
1821 | 1857 | } |
1822 | 1858 | ], |
1823 | 1859 | "responses": { |
|
2623 | 2659 | "default": "false" |
2624 | 2660 | }, |
2625 | 2661 | "description": "If set to `true`, the taker's entire `sellToken` balance will be sold during trade execution. The `sellAmount` should be the maximum estimated value, as close as possible to the actual taker's balance to ensure the best routing. Selling more than the `sellAmount` may cause the trade to revert. This feature is designed for cases where the precise sell amount is determined during execution. Learn more [here](https://docs.0x.org/docs/0x-swap-api/additional-topics/sell-entire-balance)." |
| 2662 | + }, |
| 2663 | + { |
| 2664 | + "name": "wrapUnwrapMode", |
| 2665 | + "in": "query", |
| 2666 | + "required": false, |
| 2667 | + "schema": { |
| 2668 | + "anyOf": [ |
| 2669 | + { "not": {} }, |
| 2670 | + { "type": "string", "enum": ["direct", "settler"] } |
| 2671 | + ] |
| 2672 | + }, |
| 2673 | + "description": "Controls how native wrap/unwrap trades are executed. `direct` calls the wrapped-native token contract directly. `settler` routes wrap/unwrap through Settler or Allowance Holder for compatibility. Ignored for non-wrap/unwrap swaps. If omitted, `direct` mode is used." |
2626 | 2674 | } |
2627 | 2675 | ], |
2628 | 2676 | "responses": { |
|
0 commit comments