Skip to content
Fourohtwo

solana-pulse-gateway-1021990235790.us-central1.run.app/api/tools/build_tx

Build a Solana SOL or token transfer, or a Jupiter swap, as an unsigned transaction that is already safety-checked. Run when an agent needs to send SOL or a token, or swap through Jupiter: it returns the unsigned transaction already checked, with ready_to_sign and the reasons. Sign only when ready_to_sign is true.

SolanaBaseUnchecked
POSThttps://solana-pulse-gateway-1021990235790.us-central1.run.app/api/tools/build_tx

UptimeNot checked yet

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://solana-pulse-gateway-1021990235790.us-central1.run.app/api/tools/build_tx", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"action":"transfer","amount":"0.01","from":"5tzFkiKscXHK5ZXCGbXZxdw7gTjjD1mBwuoFbhUvuAi9","to":"Brpc8HoPo1d3Uiyo7kbERnjMqwLJJmbWxtwxHxzar6DU","token":"SOL"}),
});
console.log(await res.json());

Example input

{
  "action": "transfer",
  "amount": "0.01",
  "from": "5tzFkiKscXHK5ZXCGbXZxdw7gTjjD1mBwuoFbhUvuAi9",
  "to": "Brpc8HoPo1d3Uiyo7kbERnjMqwLJJmbWxtwxHxzar6DU",
  "token": "SOL"
}

More from Solana Pulse