-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #375 from KomodoPlatform/update/kdf/sign_raw_trans…
…action
- Loading branch information
Showing
13 changed files
with
467 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
...o-defi-framework/api/v20/fee_management/get_eth_estimated_fee_per_gas/index.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
export const title = "Komodo DeFi Framework Method: Get ETH Estimated Fee per Gas"; | ||
export const description = | ||
"The get_eth_estimated_fee_per_gas method allows you to get the gas priority fees from the estimator (started with the 'start_eth_fee_estimator') for an active coin of your choice."; | ||
|
||
# get\_eth\_estimated\_fee\_per\_gas | ||
|
||
The `get_eth_estimated_fee_per_gas` method allows you to get the estimated gas priority fee for an active coin of your choice. Before using this method, you first need to use the [start\_eth\_fee\_estimator](/komodo-defi-framework/api/v20/fee_management/start_eth_fee_estimator/) method. | ||
|
||
| parameter | Type | Description | | ||
| --------- | ------ | ---------------------------------------------------------------------------- | | ||
| coin | string | Ticker of the coin/asset for which we want to start the grass fee estimator. | | ||
|
||
## Request | ||
|
||
<CodeGroup title="" tag="POST" label="get_eth_estimated_fee_per_gas" mm2MethodDecorate="true"> | ||
```json | ||
{ | ||
"userpass": "RPC_UserP@SSW0RD", | ||
"method": "get_eth_estimated_fee_per_gas", | ||
"mmrpc": "2.0", | ||
"params": { | ||
"coin": "ETH" | ||
} | ||
} | ||
``` | ||
</CodeGroup> | ||
|
||
## Response | ||
|
||
```json | ||
{ | ||
"mmrpc": "2.0", | ||
"result": { | ||
"base_fee": "10.890879158", | ||
"low": { | ||
"max_priority_fee_per_gas": "0.1101", | ||
"max_fee_per_gas": "11.949818698", | ||
"min_wait_time": null, | ||
"max_wait_time": null | ||
}, | ||
"medium": { | ||
"max_priority_fee_per_gas": "1.258084291", | ||
"max_fee_per_gas": "13.905056537", | ||
"min_wait_time": null, | ||
"max_wait_time": null | ||
}, | ||
"high": { | ||
"max_priority_fee_per_gas": "2.495532249", | ||
"max_fee_per_gas": "15.949758042", | ||
"min_wait_time": null, | ||
"max_wait_time": null | ||
}, | ||
"source": "simple", | ||
"base_fee_trend": "", | ||
"priority_fee_trend": "", | ||
"units": "Gwei" | ||
}, | ||
"id": null | ||
} | ||
|
||
``` |
37 changes: 37 additions & 0 deletions
37
...defi-framework/api/v20/fee_management/get_swap_transaction_fee_policy/index.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
export const title = "Komodo DeFi Framework Method: Get Swap Transaction Fee Policy"; | ||
export const description = | ||
"The get_swap_transaction_fee_policy method allows you to get the current gas fees policy used when estimating swap transaction fees for supported for ETH/EVM coins/tokens.."; | ||
|
||
# get\_swap\_transaction\_fee\_policy | ||
|
||
The `get_swap_transaction_fee_policy` method allows you to get the current gas fees policy used when estimating swap transaction fees for supported for ETH/EVM coins/tokens. | ||
|
||
| parameter | Type | Description | | ||
| --------- | ------ | ---------------------------------------------------------------------------------------- | | ||
| coin | string | Ticker of the supported ETH/EVM coin/asset for which we want to view the fee policy for. | | ||
|
||
## Request | ||
|
||
<CodeGroup title="" tag="POST" label="get_swap_transaction_fee_policy" mm2MethodDecorate="true"> | ||
```json | ||
{ | ||
"userpass": "RPC_UserP@SSW0RD", | ||
"method": "get_swap_transaction_fee_policy", | ||
"mmrpc": "2.0", | ||
"params": { | ||
"coin": "ETH" | ||
} | ||
} | ||
``` | ||
</CodeGroup> | ||
|
||
## Response | ||
|
||
```json | ||
{ | ||
"mmrpc": "2.0", | ||
"result": "High", | ||
"id": null | ||
} | ||
|
||
``` |
Oops, something went wrong.