# Wallet SDK

The **Aptos Wallet SDK** is a lightweight wrapper around the official Aptos SDK, designed to abstract away the underlying complexities of interacting with the Aptos blockchain. It provides a clean, easy-to-use interface tailored for seamless integration into Web3 games within the **Fantasys Hub** ecosystem. By simplifying common wallet operations, the SDK helps developers onboard users faster and focus on delivering engaging game experiences without worrying about the intricacies of blockchain logic.

### Error Handling <a href="#error-handling" id="error-handling"></a>

Operations performed via the Aptos Wallet SDK may be rejected with the error code. Errors are thrown with well-defined types so that the root cause can be easily identified. The error payload will also contain additional metadata, such as a message and raw data available via the data response property (e.g. original error).

```javascript
class WalletError extends Error {
	public code: number;
	public message: string;
}
```
