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.
parameter | Type | Description |
---|---|---|
coin | string | Ticker of the coin/asset for which we want to start the gas fee estimator. |
estimator_type | string | Simple or Provider . If set to Provider , users must set the gas_api setting in their MM2.json file to source recommended fee values from third party providers Infura or Blocknative. |
POST
get_eth_estimated_fee_per_gas{
"userpass": "RPC_UserP@SSW0RD",
"method": "get_eth_estimated_fee_per_gas",
"mmrpc": "2.0",
"params": {
"coin": "ETH",
"estimator_type": "Simple"
}
}
POST
get_eth_estimated_fee_per_gas{
"userpass": "RPC_UserP@SSW0RD",
"method": "get_eth_estimated_fee_per_gas",
"mmrpc": "2.0",
"params": {
"coin": "ETH",
"estimator_type": "Provider"
}
}
The responses above were requested at the same time, for the same coin (MATIC). As you can see, there difference between the returned fee values can be significant.