UNPKG

@cenoa/waas-js-sdk

Version:

Official Cenoa Wallet as a Service SDK

35 lines (22 loc) 1.03 kB
# Cenoa WaaS JS SDK This article documents how to integrate your server-side services with Cenoa in order to offer Cenoa Wallet products. ## Overview Simply just import the SDK into your TypeScript based project by following the instructions below. Currently, the SDK is only available in JS/TypeScript but we are working on supporting other environments (Java, Phyton, etc.) ## Prerequisites In order to start integrating Cenoa Wallet as a Service, contact your Cenoa sales representative to get the following items: - API key - API secret Those key pairs are going to be delivered to you via a secure portal and you need to keep them in a safe place. <!-- theme: danger --> > #### 💡 Important > > **NEVER** expose **API key** or **API secret** in the client code (mobile app or website etc.) ## Setting up the SDK ``` import CenoaWaaSSDK from '@cenoa/waas-js-sdk'; CenoaWaaSSDK.init({ apiKey: string, // '[YOUR_API_KEY]' apiSecret: string, // '[YOUR_API_SECRET]' environment: 'production' | 'sandbox'; }); ```