This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@hubbleprotocol/scope-sdk
TypeScript icon, indicating that this package has built-in type declarations

7.0.0 • Public • Published

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/web3.js @hubbleprotocol/scope-sdk

Usage

import { Scope, ScopeToken } from '@hubbleprotocol/scope-sdk';
import { clusterApiUrl, Connection } from '@solana/web3.js';

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();

Versions

Current Tags

VersionDownloads (Last 7 Days)Published

Version History

VersionDownloads (Last 7 Days)Published

Package Sidebar

Install

npm i @hubbleprotocol/scope-sdk

Weekly Downloads

601

Version

7.0.0

License

Apache-2.0

Unpacked Size

2.61 MB

Total Files

613

Last publish

Collaborators