switchWalletNetwork
Allows NeoLine applications ('dapps') to request that the wallet switches its active Neo network.
Input Arguments
Parameter | Description |
---|---|
Switch the chainId of the network |
Chain IDs Type
These are the IDs of the Neo chain supported by NeoLine.
chainId | Description |
---|---|
| ChainId 1 is the Neo2 MainNet |
| ChainId 2 is the Neo2 TestNet |
| ChainId 3 is the N3 MainNet |
| ChainId 6 is the N3 TestNet (Currently only N3 TestNet) |
| ChainId 0 is the N3 Private Network |
Success Response
Null
Error Response
Parameter | Description |
---|---|
| The type of error which has occured |
| A description of the error which has occured |
| Any raw data associated with the error |
Example
Request
Response
最后更新于