How to Obtain Your API Key

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 spiderswap.io:

    • 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!

Last updated