Skip to content

Commit 12d5db5

Browse files
committed
Add notes and link to req config for 1inch methods
1 parent 28d5ab6 commit 12d5db5

File tree

4 files changed

+29
-0
lines changed
  • src/pages/komodo-defi-framework/api/v20-dev

4 files changed

+29
-0
lines changed

src/pages/komodo-defi-framework/api/v20-dev/one_inch_v6_0_classic_swap_create/index.mdx

+8
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ export const description =
66

77
The `1inch_v6_0_classic_swap_create` method returns transaction data for classic swap from 1inch API version 6.0.
88

9+
<Note>
10+
To use methods which interface with the 1inch API, you need to set the `1inch_api` url in your [MM2.json file](/komodo-defi-framework/setup/configure-mm2-json/).
11+
You'll also need to set your 1inch API key as an environment variable called `ONE_INCH_API_TEST_AUTH`, e.g. `ONE_INCH_API_TEST_AUTH="Bearer YourAPIkey"`.
12+
</Note>
13+
14+
Refer to the [1inch Classic Swap documentation](https://portal.1inch.dev/documentation/apis/swap/classic-swap/quick-start) for more information.
15+
16+
917
## Arguments
1018

1119
| Structure | Type | Description |

src/pages/komodo-defi-framework/api/v20-dev/one_inch_v6_0_classic_swap_liquidity_sources/index.mdx

+7
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ export const description =
66

77
The `1inch_v6_0_classic_swap_liquidity_sources` method returns liquidity sources for classic swaps from 1inch API version 6.0.
88

9+
<Note>
10+
To use methods which interface with the 1inch API, you need to set the `1inch_api` url in your [MM2.json file](/komodo-defi-framework/setup/configure-mm2-json/).
11+
You'll also need to set your 1inch API key as an environment variable called `ONE_INCH_API_TEST_AUTH`, e.g. `ONE_INCH_API_TEST_AUTH="Bearer YourAPIkey"`.
12+
</Note>
13+
14+
Refer to the [1inch Classic Swap documentation](https://portal.1inch.dev/documentation/apis/swap/classic-swap/quick-start) for more information.
15+
916
## Arguments
1017

1118
| Structure | Type | Description |

src/pages/komodo-defi-framework/api/v20-dev/one_inch_v6_0_classic_swap_quote/index.mdx

+7
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ export const description =
66

77
The `1inch_v6_0_classic_swap_quote` method returns best quote from 1inch classic swap API version 6.0.
88

9+
<Note>
10+
To use methods which interface with the 1inch API, you need to set the `1inch_api` url in your [MM2.json file](/komodo-defi-framework/setup/configure-mm2-json/).
11+
You'll also need to set your 1inch API key as an environment variable called `ONE_INCH_API_TEST_AUTH`, e.g. `ONE_INCH_API_TEST_AUTH="Bearer YourAPIkey"`.
12+
</Note>
13+
14+
Refer to the [1inch Classic Swap documentation](https://portal.1inch.dev/documentation/apis/swap/classic-swap/quick-start) for more information.
15+
916
## Arguments
1017

1118
| Structure | Type | Description |

src/pages/komodo-defi-framework/api/v20-dev/one_inch_v6_0_classic_swap_tokens/index.mdx

+7
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ export const description =
66

77
The `1inch_v6_0_classic_swap_tokens` method returns tokens for classic swaps from 1inch API version 6.0.
88

9+
<Note>
10+
To use methods which interface with the 1inch API, you need to set the `1inch_api` url in your [MM2.json file](/komodo-defi-framework/setup/configure-mm2-json/).
11+
You'll also need to set your 1inch API key as an environment variable called `ONE_INCH_API_TEST_AUTH`, e.g. `ONE_INCH_API_TEST_AUTH="Bearer YourAPIkey"`.
12+
</Note>
13+
14+
Refer to the [1inch Classic Swap documentation](https://portal.1inch.dev/documentation/apis/swap/classic-swap/quick-start) for more information.
15+
916
## Arguments
1017

1118
| Structure | Type | Description |

0 commit comments

Comments
 (0)