getNetworks
最后更新于
最后更新于
Returns the networks the wallet provider has available to connect to, along with the default network the wallet is currently set to.
None
Parameter | Description |
---|---|
These are the IDs of the Neo chain supported by NeoLine.
chainId | Description |
---|---|
Parameter | Description |
---|---|
type: string
The type of error which has occured
description: string
A description of the error which has occured
data: string
Any raw data associated with the error
networks: string[]
Array of network names the wallet provider has available for the dapp developer to connect to
ChainId the wallet is currently set to
defaultNetwork: string
Network the wallet is currently set to
1
ChainId 1 is the Neo2 MainNet
2
ChainId 2 is the Neo2 TestNet
3
ChainId 3 is the N3 MainNet
6
ChainId 6 is the N3 TestNet (Currently only N3 TestNet)
0
ChainId 0 is the N3 Private Network