> For the complete documentation index, see [llms.txt](https://brian-broeking.gitbook.io/honey-defi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://brian-broeking.gitbook.io/honey-defi/quick-start.md).

# Quick Start

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

## Install the library

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

{% tabs %}
{% tab title="Node" %}

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

{% endtab %}
{% endtabs %}

## On-chain Protocol

The code that makes up the on-chain protocol is located within the honey-labs Github repository <https://github.com/honey-labs/nftLendBorrow>. 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
```
