跳到主要内容

Custom Provider

getProvider

function getProvider() {
const provider = window.foxwallet && window.foxwallet.custom;
if (!provider) {
window.open('https://foxwallet.com/download');
throw `Please guide users to download from FoxWallet official website`
}
return provider;
}

sync_wallet

Access the user's accounts includes information of all wallets.