Karrot - Spiderswap Package
  • Introduction
  • How to Obtain Your API Key
  • NPM
    • Swap Overview
      • getSwapRaw
      • getSwap
      • createTransaction
      • sendTransaction
    • Quote Overview
      • getQuoteRaw
      • getQuote
      • bulkQuote
  • PHP
    • Coming Soon
  • Python
    • Swap Overview
      • get_swap_raw
      • get_swap
      • create_transaction
      • send_transaction
    • Quote Overview
      • get_quote_raw
      • get_quote
      • bulk_quote
Powered by GitBook
On this page

How to Obtain Your API Key

PreviousIntroductionNextSwap Overview

Last updated 11 months ago

To use the @karrotcapital/spiderswap package and interact with the SpiderSwap API, you need an API key. Follow these simple steps to obtain your API key:

  1. Go to :

    • Open your web browser and navigate to the SpiderSwap website.

  2. Connect Your Wallet:

    • Click on the "Connect Wallet" button on the homepage.

    • Follow the prompts to connect your Solana wallet. Ensure your wallet is properly connected and authenticated.

  3. Click the Key Icon in the Top Navbar:

    • Once your wallet is connected, look for the key icon in the top navigation bar of the website.

    • Click on the key icon to access your API key.

  4. Copy API Key:

    • A modal or popup will appear displaying your API key.

    • Copy the API key to your clipboard.

  5. Use the API Key in Your Code:

    • You can now use this API key to initialize the Spiderswap class in your code and start interacting with the SpiderSwap API.

import Spiderswap from '@karrotcapital/spiderswap';
// OR
const Spiderswap = require('@karrotcapital/spiderswap');

let spiderswap = new Spiderswap('Your-API-Key-Here');

With your API key, you're all set to explore and utilize the features provided by the SpiderSwap API through the @karrotcapital/spiderswap package. Happy coding!

spiderswap.io