Prerequisites

<aside> ℹ️

Don't worry, only very basic knowledge of TypeScript and JavaScript are needed. We provide a lot of examples to help you if you're unfamiliar and recommend TypeScript for JavaScript Programmers as a great quick start reference.

</aside>

Installation

The Peanut SDK can be installed using npm or any other package manager:

Copy

npm i @squirrel-labs/peanut-sdk

Toggle Verbose

You can set the verbosity level to high which will populate the console with all kinds of logs to make debugging easier:

Copy

peanut.toggleVerbose(true)

Create Claim Links

Claim

Create Request Link

Pay a Request Link

Pay a request Link X-Chain

Utils