fetchEstimatedGasPrice
This function fetches the estimated gas prioritization fees.
Usage
import { AptosJSProClient } from "@aptos-labs/js-pro";
const client = new AptosJSProClient({
/* ... */
});
const estimatedGasPrice = await client.fetchEstimatedGasPrice();Parameters
| Name | Type | Default |
|---|---|---|
network | NetworkInfoThe network to use for the request. If not set, the network of the |
Return Type
| Name | Type | Default |
|---|---|---|
deprioritizedGasEstimate | number | |
gasEstimate | number | |
prioritizedGasEstimate | number |
Last updated on