Search
Preparing search index...
The search index is not available
Home
NetworkService
Class NetworkService
Hierarchy
Service
NetworkService
Index
Constructors
constructor
Properties
chain
Id$
default
Network
external
Contract
Addresses
network$
supported
Networks
Accessors
chain
Id
network
Methods
destroy
get
Network
Config
init
is
Network
Supported
switch
Network
use
Default
Network
Constructors
constructor
new
Network
Service
(
defaultChainId
?:
number
)
:
NetworkService
Parameters
Optional
defaultChainId:
number
Returns
NetworkService
Properties
Readonly
chain
Id$
chain
Id$
:
Observable
<
number
>
Readonly
default
Network
default
Network
:
Network
Readonly
external
Contract
Addresses
external
Contract
Addresses
:
Map
<
string
,
{}
>
= new Map<string, { [key: number]: string }>()
Readonly
network$
network$
:
ObjectSubject
<
Network
,
"name"
|
"chainId"
>
= new ObjectSubject<Network>(null)
Readonly
supported
Networks
supported
Networks
:
Network
[]
Accessors
chain
Id
get
chainId
(
)
:
number
Returns
number
network
get
network
(
)
:
Network
Returns
Network
Methods
destroy
destroy
(
)
:
void
Returns
void
get
Network
Config
get
Network
Config
(
chainId
:
number
)
:
NetworkConfig
Parameters
chainId:
number
Returns
NetworkConfig
init
init
(
context
:
Context
)
:
void
Parameters
context:
Context
Returns
void
is
Network
Supported
is
Network
Supported
(
chainId
:
number
)
:
boolean
Parameters
chainId:
number
Returns
boolean
switch
Network
switch
Network
(
networkName
:
NetworkNames
)
:
void
Parameters
networkName:
NetworkNames
Returns
void
use
Default
Network
use
Default
Network
(
)
:
void
Returns
void
Globals
Network
Service
constructor
chain
Id$
default
Network
external
Contract
Addresses
network$
supported
Networks
chain
Id
network
destroy
get
Network
Config
init
is
Network
Supported
switch
Network
use
Default
Network