switchWalletNetwork
Input Arguments
Parameter
Description
Success Response
Error Response
Parameter
Description
Example
Request
neolineN3.switchWalletNetwork({
chainId: 3
})
.then(() => {})
.catch((error) => {
const {type, description, data} = error;
switch(type) {
case UNKNOWN_ERROR:
console.log(description);
break;
default:
// Not an expected error object. Just write the error to the console.
console.error(error);
break;
}
});Response
最后更新于