@raoul-picconi/mojito-sdk
Preparing search index...
react/hooks/useNetwork
useNetwork
Function useNetwork
useNetwork
()
:
{
network
:
null
|
Network
;
setNetwork
:
(
params
:
{
network
:
"mainnet"
|
"testnet"
}
)
=>
Promise
<
void
>
;
}
Hook for managing the network configuration
Returns
{
network
:
null
|
Network
;
setNetwork
:
(
params
:
{
network
:
"mainnet"
|
"testnet"
}
)
=>
Promise
<
void
>
;
}
An object containing:
network: The current network ('mainnet' | 'testnet')
setNetwork: Function to update the network configuration
network
:
null
|
Network
setNetwork
:
(
params
:
{
network
:
"mainnet"
|
"testnet"
}
)
=>
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@raoul-picconi/mojito-sdk
Loading...
Hook for managing the network configuration