⚙️Initializing the LegoClient

Get up and running in just a few easy steps.

Initial Setup

The first step to integration is initializing a new LegoClient The most basic info you'll need is your Shogun API Key, which is used for tracking fee share

import { LegoClient, OneShotClient, ShogunBalancesApiClient } from '@shogun-sdk/money-legos';

// Initialize the Lego client for NFT purchases
const legoClient = new LegoClient({ 
  apiKey: 'YOUR_API_KEY', // Get this from Shogun dashboard
});
🛤️Purchase an NFT with any token on any chain

Last updated