TrenchyToolsAPI

Quickstart

Key → quote → build → sign → send.

Node 18+ or Python 3.9+, a funded wallet, and an API key.

  1. Get an API key

    Create one at API keys. Shown once; pass it as ?api-key= or the x-api-key header.

  2. Quote

    No wallet required.

    cURL
    curl "https://api.trenchytools.lol/api/sol/quote?mint=MINT_ADDRESS&action=buy&amount=0.1&api-key=YOUR_API_KEY"
    
  3. Install the libraries

    Solana uses @solana/web3.js to sign. Robinhood uses viem.

    Terminal
    npm install @solana/web3.js bs58
    
  4. Build and send a trade

    Copy the full example from the trade page and replace the placeholders.