Lightning trade
We build, sign with the wallet linked to your key, and send. One request, no signing code.
Lightning is not enabled yet on this server. Use Buy & sell (you sign) in the meantime.
Same fields as Buy & sell, but no publicKey: we use the Solana wallet linked to your API key (create one with Key + new wallets on Get an API key) and send the transaction for you. Fee: 1% instead of 0.5%.
POSThttps://api.trenchytools.lol/api/sol/trade
cURL
curl -X POST "https://api.trenchytools.lol/api/sol/trade?api-key=YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "action": "buy", "mint": "MINT_ADDRESS", "amount": 0.01, "denominatedInSol": "true", "slippage": 15, "priorityFee": 0.0001, "pool": "auto" }'
Response
{ "signature": "5Uf…", "lanes": ["rpc", "jito:mainnet"], "expected": { "tokens": 291577.9, "sol": 0.01 } }