Skip to content

usecyan/sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cyan SDK

The buy now pay later service for the Metaverse.

Install

yarn add @usecyan/sdk

Documentation

Documentation of the Cyan SDK and Public APIs link

Usage

The below is a simple example of using Cyan SDK's getPlans method.

import { ethers } from 'ethers';
import Cyan from '@usecyan/sdk';

const apiKey = process.env.CYAN_API_KEY;

const provider = new ethers.providers.Web3Provider(window.ethereum, 'any');
const host = https://testnet-api.usecyan.com

const cyan = new Cyan({apiKey, provider, host});

const signer = provider.getSigner();

const address = await signer.getAddress();

const userPlans = await cyan.getPlans(address);

For more usage, see docs and example project in this repo.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages