Allows NeoLine applications ('dapps') to request that the wallet switches its active Neo network.
Input Arguments
Parameter
Description
Success Response
Null
Error Response
Parameter
Description
Example
Request
neoline.switchWalletNetwork({ chainId:3}).then(() => {}).catch((error) => {const {type,description,data} = error;switch(type) {caseUNKNOWN_ERROR:console.log(description);break;default:// Not an expected error object. Just write the error to the console.console.error(error);break; }});