# Built-in Tools

The Solana blockchain utilizes a variety of custom tools provided by platforms like Nest, enhancing its ecosystem with advanced functionalities. The Jupiter Swap API streamlines the process of token swapping by aggregating liquidity sources, offering the best prices. PumpFun API provides market data and insights, helping traders identify trends and opportunities. Additionally, Nest includes Token Technical Analysis tools that offer detailed analysis and metrics on token performance, enabling informed decision-making. These tools collectively bolster trading strategies and enable efficient management of digital assets within the Solana network.

```typescript
import { Jupiter } from 'jupiter-api';
import { PumpFun } from 'pumpfun-api';
import DexScreener from 'dexscreener-api';

const jupiter = new Jupiter();
const pumpFun = new PumpFun();
const dexScreener = new DexScreener();

async function swapTokens(sourceToken: string, targetToken: string, amount: number) {
  try {
    const bestSwap = await jupiter.getBestSwap(sourceToken, targetToken, amount);
    console.log(`Swapping ${amount} of ${sourceToken} to ${targetToken} at rate:`, bestSwap.rate);
    await jupiter.executeSwap(bestSwap);
  } catch (error) {
    console.error('Error swapping tokens:', error);
  }
}

async function launchToken(tokenId: string) {
  try {
    const marketData = await pumpFun.getMarketData(tokenId);
    console.log(`Launching token ${tokenId} with current price: ${marketData.price}`);
    pumpFun.launchToken(tokenId);
  } catch (error) {
    console.error('Error launching token:', error);
  }
}

async function findHiddenGems() {
  try {
    const gems = await dexScreener.findRareTokens();
    gems.forEach(gem => console.log('Found hidden gem:', gem));
  } catch (error) {
    console.error('Error finding hidden gems:', error);
  }
}

(async function() {
  await swapTokens('SOL', 'BTC', 10);
  await launchToken('ASSET123');
  await findHiddenGems();
})();
```
