Skip to Content

🚧 These packages are still in development and may change rapidly as they are developed.

TypeScriptfetchEstimatedGasPrice

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

NameTypeDefault
networkNetworkInfo

The network to use for the request. If not set, the network of the AptosJSProClient instance will be used.

Return Type

NameTypeDefault
deprioritizedGasEstimatenumber
gasEstimatenumber
prioritizedGasEstimatenumber
Last updated on