API
Get an API key

Playground

Call the live API from your browser with a free key. Every panel shows the exact request and the raw response. Nothing here moves money: trades are built and simulated, never signed or sent.

…

The key lives in this browser only (localStorage tt_playground_key) and goes to https://api.trenchy.tools in the x-api-key header. Snippets show it as YOUR_KEY.

01Token lookup

A Solana mint or a 0x Robinhood token. The chain is picked from the address shape.

chain: paste an address
request
curl "https://api.trenchy.tools/api/sol/token/MINT_ADDRESS" \
  -H "x-api-key: YOUR_KEY"

02Quote

What a buy or sell would give right now, from live curve or pool state.

chain: paste an address
request
curl "https://api.trenchy.tools/api/sol/quote?mint=MINT_ADDRESS&action=buy&amount=0.01" \
  -H "x-api-key: YOUR_KEY"

03Build a trade

An unsigned Solana buy for any wallet address. Nothing is signed or sent: you get the transaction bytes back.

request
curl -X POST "https://api.trenchy.tools/api/sol/trade-local?format=json" \
  -H "x-api-key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"publicKey":"YOUR_WALLET","action":"buy","mint":"MINT_ADDRESS","amount":0.01,"denominatedInSol":"true","slippage":15,"priorityFee":0.0001,"pool":"auto"}'

04Simulate

Runs the built transaction against the current chain state. Nothing is broadcast.

request
curl -X POST "https://api.trenchy.tools/api/sol/simulate" \
  -H "x-api-key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"transaction":"BASE64_TX"}'

06Custom pairs

What a pump.fun coin can be priced in: SOL, USDC, tokenized stocks and more. Read from chain.

Run to load the list; then filter by kind.
request
curl "https://api.trenchy.tools/api/sol/pairs" \
  -H "x-api-key: YOUR_KEY"

07Vanity address

Grind a mint address that ends in 2–3 characters of your choice, on our workers.

request
curl -X POST "https://api.trenchy.tools/api/sol/vanity" \
  -H "x-api-key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"suffix":"ab","caseSensitive":true}'

08Transfer routes

Preview moving funds between chains: what arrives, fees, minimums, and which exchange venues are open. A preview only; no transfer is created.

request
curl "https://api.trenchy.tools/api/transfer/routes?from=sol&to=rh&amount=0.5" \
  -H "x-api-key: YOUR_KEY"

curl "https://api.trenchy.tools/api/transfer/venues" \
  -H "x-api-key: YOUR_KEY"

Creating a transfer is POST /api/transfer (see the docs); the playground never does it. API: https://api.trenchy.tools.