Purchase an NFT with any token on any chain
Submit your intents and receive all possible solutions for the best execution route.
The Shogun SDK enables anyone to broadcast intents and receive optimal execution routes from a host of different liquidity venues. The SDK allows you to compose the intent lifecycle how you see fit. You can choose to handle the entire lifecycle through the SDK via direct execution or you just request quotes and handle execution yourself.
You can request the best route for a particular intent by utilizing the legoClient
function.import { useShogunQuote } from '@shogun-sdk/one-shot';
Available parameters
The following parameters enable you to customize your Lego request:
items
An array of nfts that you want to buy
Array of Items
token
The token you want to buy
Number (required)
userAddress
Wallet address initiating the transaction.
String (required)
Last updated