Javascript SDK
Getting Started
The Gateway JavaScript SDK provides a simple and intuitive way to interact with Gateway’s encrypted storage and data sharing capabilities. This guide will help you get started with integrating the SDK into your JavaScript applications.
Installation
Choose your preferred package manager to install the SDK:
Authentication
The SDK supports two authentication methods:
- Wallet-based authentication using a private key
- JWT-based authentication
Choose the method that best suits your application’s needs:
Basic Usage
Here’s a simple example to get started:
Error Handling
The SDK uses standard Promise-based error handling. Always wrap your SDK calls in try-catch blocks: