Patch API and wallet

Fix misconfigured API method
Fix unhandled error on wallet