GasPricer
Defined in: protocol-staking-native-near/src/fees.ts:32
Reads the gas price fresh and min_gas_purchase_price once per PROTOCOL_CONFIG_TTL_MS.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new GasPricer(
rpc):GasPricer
Defined in: protocol-staking-native-near/src/fees.ts:35
Parameters
Section titled “Parameters”() => NearRpc
Returns
Section titled “Returns”GasPricer
Methods
Section titled “Methods”prices()
Section titled “prices()”prices():
Promise<GasPrices>
Defined in: protocol-staking-native-near/src/fees.ts:37
Returns
Section titled “Returns”Promise<GasPrices>