switchWalletAccount
Input Arguments
Success Response
Parameter
Description
Error Response
Parameter
Description
Example
Request
neolineN3.switchWalletAccount()
.then(account => {
const {
address,
label,
isLedger
} = account;
console.log('Provider address: ' + address);
console.log('Provider account label (Optional): ' + label);
console.log('Provider account is ledger account: ' + isLedger);
})
.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
最后更新于