getWallets Method
This method is used to get all the wallets of the user across all chains. It will return the user wallets if authentication is successful.
Parameters
None
getWallets() => Promise<WalletData>;
Example
import { useOkto, type OktoContextType} from 'okto-sdk-react-native';
const { getWallets } = useOkto() as OktoContextType;
getWallets()
.then((result) => {
console.log(result)
})
.catch((error) => {
console.error(`error:`, error);
});