Observed since 21 Oct, 11:27 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Shogun SDK
The Shogun SDK is a TypeScript library that enables cross-chain swaps and transfers between EVM chains and Solana. It provides quote fetching, transaction execution, and fee management capabilities.
npm install @0xshogun/sdk
or
yarn add @0xshogun/sdk
import { ShogunQuoteApiClient } from '@0xshogun/sdk';
// Initialize the client
const client = new ShogunQuoteApiClient(
'YOUR_API_KEY', // Dextra API key
'https://api.shogun.com' // Dextra API endpoint
);
// Fetch a quote
const quoteParams: QuoteParams = {
srcChain: 1, // Token IN chain ID
destChain: 8453, // Token Out chain ID
srcToken: '0x...', // Source token address
destToken: '...', // Destination token address
amount: '1000000000000000000', // Amount in smallest unit (e.g. wei)
senderAddress: '0x...', // Sender's wallet address
affiliateWallet: '0x...', // Affiliate EVM or Solana wallet address
affiliateFee: '1', // Affiliate fee in percent as 1%
slippage: 0.5, // Slippage percentage
destinationAddress: '...', // Destination wallet address
dstChainOrderAuthorityAddress: '...' // Destination chain order authority address
dynamicSlippage: true // Or false, only for Solana transactions
};
const quote = await client.fetchQuote(quoteParams);
The SDK provides balance checking capabilities for both EVM and Solana chains through the ShogunBalancesApiClient.
import { ShogunBalancesApiClient } from '@0xshogun/sdk';
// Initialize the balances client
const balancesClient = new ShogunBalancesApiClient('YOUR_API_KEY'); // YOUR_API_KEY is CODEX API key
// Check EVM wallet balances
const evmBalances = await balancesClient.getEvmWalletBalance('0x...');
// Get token info including prices
const tokenInfo = await balancesClient.getTokenInfo(
evmBalances,
'0x...', // wallet address
);
// Check Solana token balances
const solanaBalances = await balancesClient.getSolanaTokenBalances('...');
// Get USD price for a specific token
const tokenPrice = await balancesClient.getTokenUSDPrice(
'0x...', // token address
1 // chain ID
);
// Validate addresses
const isValid = balancesClient.isValidAddress('0x...');
Development
npm install
npm run build
npm test
npm run format
npm run lint
Contributing Contributions are welcome! Please read our Contributing Guide for details on our code of conduct and the process for submitting pull requests.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 1.1.52Registry latest | 28 Mar 2025 | 29 | |
| 1.1.51-beta | 26 Mar 2025 | 29 | |
| 1.1.50-beta | 26 Mar 2025 | 29 | |
| 1.1.49 | 25 Mar 2025 | 29 | |
| 1.1.48 | 25 Mar 2025 | 29 | |
| 1.1.47 | 25 Mar 2025 | 29 | |
| 1.1.46 | 21 Mar 2025 | 29 | |
| 1.1.45 | 21 Mar 2025 | 29 | |
| 1.1.44 | 21 Mar 2025 | 29 | |
| 1.1.43 | 19 Mar 2025 | 29 | |
| 1.1.42 | 18 Mar 2025 | 29 | |
| 1.1.41 | 17 Mar 2025 | 29 | |
| 1.1.40 | 17 Mar 2025 | 29 | |
| 1.1.39 | 14 Mar 2025 | 31 | |
| 1.1.38 | 14 Mar 2025 | 31 | |
| 1.1.37 | 13 Mar 2025 | 31 | |
| 1.1.36 | 13 Mar 2025 | 31 | |
| 1.1.35 | 12 Mar 2025 | 36 | |
| 1.1.34 | 12 Mar 2025 | 36 | |
| 1.1.33 | 12 Mar 2025 | 37 |
This describes our collected data; it is not a security assessment.
Observed since 21 Oct, 11:27 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:332128a4d67a0a72b5d77f46ae7438c70c4e8b2796743bcd486c8bbca89e64c9