getArbOSVersion
Functions
getArbOSVersion()
function getArbOSVersion<TChain>(arbitrumPublicClient: object): Promise<number>
Returns the the ArbOS version from the provider passed in parameter.
Type parameters
Type parameter |
---|
TChain extends undefined | Chain <undefined | ChainFormatters > |
Parameters
Parameter | Type | Description |
---|---|---|
arbitrumPublicClient | object | viem public client |
Returns
Promise
<number
>
the ArbOS version
Throws
if the provider is not an arbitrum chain