Skip to main content

@morph-l2/sdkDocs


@morph-l2/sdk / getL1GasPrice

Function: getL1GasPrice()

getL1GasPrice(l2Provider): Promise<BigNumber>

Gets the current L1 gas price as seen on L2.

Parameters

l2Provider: ProviderLike

L2 provider to query the L1 gas price from.

Returns

Promise<BigNumber>

Current L1 gas price as seen on L2.

Source

src/l2-provider.ts:57