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

2.0.3 • Public • Published

Yearn SDK

CI Styled With Prettier

Getting Started

Installation

npm i @yfi/sdk

Configuration/Usage

To use the SDK, you will need to instantiate a Yearn object with your desired configuration;

import { Yearn } from "@yfi/sdk";
import { JsonRpcProvider } from "@ethersproject/providers";

// Ethereum mainnet
const chainId = 1; 

// It is recommended to use Alchemy for your Web3 provider when using the Yearn SDK.
const rpcUrl = "https://eth-mainnet.alchemyapi.io/v2/secret-id-here";  

const yearn = new Yearn(chainId, {
  provider: new JsonRpcProvider(rpcUrl)
});

Documentation

Autogenerated documentation can be found here.

Helpful links

Contributing

Package Sidebar

Install

npm i @bombmoney/ybomb-sdk

Weekly Downloads

1

Version

2.0.3

License

MIT

Unpacked Size

1.78 MB

Total Files

64

Last publish

Collaborators

  • 1coinassets