@karrotcapital/spiderswap
v1.4.0
Published
An NPM package that is used for the spiderswap implementation
Downloads
16
Readme
@karrotcapital/spiderswap
Welcome to the @karrotcapital/spiderswap
package, a community-developed tool by Karrot Capital designed to interact seamlessly with the SpiderSwap API on the Solana blockchain. This package provides a robust and user-friendly set of functions to facilitate token swaps and transaction management.
Installation
Install the package using npm:
npm install @karrotcapital/spiderswap
Getting Started
Initialization
First, initialize the Spiderswap class with your API key:
import Spiderswap from '@karrotcapital/spiderswap';
// OR
const Spiderswap = require('@karrotcapital/spiderswap');
let spiderswap = new Spiderswap(ApiKey);
Functions Overview
Token Swaps
- getSwapRaw
- getSwap
Transaction Management
- createTransaction
- sendTransaction
Quote Retrieval
- getQuoteRaw
- getQuote
Documentation
For detailed information on how to use each function, including installation instructions, usage examples, and API references, please visit our comprehensive documentation at Karrot Capital Documentation.
Thank you for using the @karrotcapital/spiderswap
package. We hope it helps you integrate with the SpiderSwap API effortlessly and effectively. Happy coding!