Search
Preparing search index...
The search index is not available
Home
StateService
Class StateService
Hierarchy
Service
StateService
Implements
State
Index
Constructors
constructor
Properties
state$
Accessors
EOAAddress
EOAAddress$
network
network$
state
wallet
wallet$
Methods
destroy
init
restore
Constructors
constructor
new
State
Service
(
options
?:
StateOptions
)
:
StateService
Parameters
Default value
options:
StateOptions
= {}
Returns
StateService
Properties
Readonly
state$
state$
:
BehaviorSubject
<
State
>
= new BehaviorSubject<State>(null)
Accessors
EOAAddress
get
EOAAddress
(
)
:
string
Returns
string
EOAAddress$
get
EOAAddress$
(
)
:
Observable
<
string
>
Returns
Observable
<
string
>
network
get
network
(
)
:
Network
Returns
Network
network$
get
network$
(
)
:
BehaviorSubject
<
Network
>
Returns
BehaviorSubject
<
Network
>
state
get
state
(
)
:
State
Returns
State
wallet
get
wallet
(
)
:
Wallet
Returns
Wallet
wallet$
get
wallet$
(
)
:
BehaviorSubject
<
Wallet
>
Returns
BehaviorSubject
<
Wallet
>
Methods
destroy
destroy
(
)
:
void
Returns
void
init
init
(
context
:
Context
)
:
void
Parameters
context:
Context
Returns
void
restore
restore
(
state
:
StateStorageState
)
:
this
Parameters
state:
StateStorageState
Returns
this
Globals
State
Service
constructor
state$
EOAAddress
EOAAddress$
network
network$
state
wallet
wallet$
destroy
init
restore