Skip to main content

Eniblock class

The Eniblock class represents an Eniblock SDK instance. It provides methods for interacting with the Eniblock platform.

Signature:

export declare class Eniblock

Constructors

ConstructorModifiersDescription
(constructor)(config)Constructs a new instance of the Eniblock class

Properties

PropertyModifiersTypeDescription
accessTokenProviderreadonly() => Promise<string>
appIdreadonlystring
indexerreadonlyIndexer
storage?readonlyStorageService(Optional)
tssConfigreadonlyTssConfig
utilsreadonlyUtilsNamespace
walletreadonlyWalletNamespace

Methods

MethodModifiersDescription
getNetwork()Get the current blockchain Network from the sdk config
getNetworkInfo()Get the current blockchain Network Info from the provider
getProvider()Get the current blockchain Provider
isNetworkSupported(network)Check if the network is supported based on the customer plan
setNetwork(network)

Set the current blockchain Network in the sdk config

Please restart notifications after changing network: wallet.on()