Changing Wallet to an asynchronous API