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.
Choose the method that best suits your application’s needs:
import { Gateway, WalletTypeEnum } from "@gateway-dao/sdk";// Initialize with a private keyconst gateway = new Gateway({ wallet: { privateKey: "your-private-key", walletType: WalletTypeEnum.Solana, },});// Or initialize with a JWTconst gateway = new Gateway({ jwt: "your-jwt-token",});