Hethers
Search
⌃K
Documentation
Getting Started
Application Programming Interface
Providers
Provider
Accounts Methods
Logs Methods
Network Status Methods
Transactions Methods
Event Emitter Methods
Base Provider
HederaProvider
Types
Signers
Contract Interaction
Utilities
Contributing
Other Resources
Powered By
GitBook
Network Status Methods
provider.getNetwork
( )
⇒ Promise<
Network
>
Returns the Network this Provider is connected to.
await
provider
.
getNetwork
();
// {
// chainId: 290,
// name: 'mainnet'
// }
Previous
Logs Methods
Next
Transactions Methods
Last modified
1yr ago