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
External
Contract
Address
get
Internal
Contract
Address
init
is
Network
Name
Supported
set
External
Contract
Addresses
switch
Network
use
Default
Network
Constructors
constructor
new
Network
Service
(
options
:
NetworkOptions
, defaultNetworkName
?:
NetworkNames
)
:
NetworkService
Parameters
options:
NetworkOptions
Optional
defaultNetworkName:
NetworkNames
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
External
Contract
Address
get
External
Contract
Address
(
contractName
:
string
)
:
string
Parameters
contractName:
string
Returns
string
get
Internal
Contract
Address
get
Internal
Contract
Address
(
contractName
:
ContractNames
)
:
string
Parameters
contractName:
ContractNames
Returns
string
init
init
(
context
:
Context
)
:
void
Parameters
context:
Context
Returns
void
is
Network
Name
Supported
is
Network
Name
Supported
(
networkName
:
string
)
:
boolean
Parameters
networkName:
string
Returns
boolean
set
External
Contract
Addresses
set
External
Contract
Addresses
(
contractName
:
string
, addresses
:
ContractAddresses
)
:
void
Parameters
contractName:
string
addresses:
ContractAddresses
Returns
void
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
External
Contract
Address
get
Internal
Contract
Address
init
is
Network
Name
Supported
set
External
Contract
Addresses
switch
Network
use
Default
Network