9.1.0 • Published 7 months ago

@kamino-finance/scope-sdk v9.1.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
7 months ago

Scope SDK

The Scope SDK is a TypeScript client SDK for easy access to the Scope price oracle aggregator for Solana.

Install

npm

npm install @solana/kit @kamino-finance/scope-sdk

Usage

import { Scope, ScopeToken } from '@kamino-finance/scope-sdk';
import { clusterApiUrl, Connection } from '@solana/kit';

const connection = new Connection(clusterApiUrl('mainnet-beta'));
const scope = new Scope('mainnet-beta', web3Client.connection); 

// get all prices supported by Scope Oracle 
const oraclePrices = await scope.getOraclePrices();