Honey Defi
  • Welcome to Honey Defi!
  • Quick Start
  • Honey Protocol Tests
  • Honey Protocol on Local Validator
  • Reference
    • API Reference
      • Actions
      • Wrappers
    • FAQ
Powered by GitBook
On this page
  • Install the library
  • On-chain Protocol

Quick Start

The Honey-SDK is a wrapper and utilities toolkit for the on-chain lend & borrow protocols for NFTs in the Solana ecosystem.

PreviousWelcome to Honey Defi!NextHoney Protocol Tests

Last updated 3 years ago

Install the library

The best way to interact with our API is to use one of our official libraries:

# Install via NPM
npm install --save honey-sdk

On-chain Protocol

The code that makes up the on-chain protocol is located within the honey-labs Github repository . The following steps walk you through deploying your own version of the protocol on the Solana devnet. (Warning: it takes ~10-15 SOL to deploy all the components to the protocol)

git clone https://github.com/honey-labs/nftLendBorrow.git
cd nftLendBorrow

// this will take some time and print alot of output to the console
anchor build

// after some time a line similar to this will print, run it 
// make sure your local solana cli is point to devnet
solana program deploy ~/nftLendBorrow/target/deploy/honey.so

// once deployed, the cli will output the public key of the program, 
// we need to rebuild with anchor after replacing the declare_id! 
// in programs/honey/src/lib.rs && the Anchor.toml
anchor build
https://github.com/honey-labs/nftLendBorrow