TRDEFI prepare request
yield.trdefi.com/v1/positions
TRDEFI prepare request
POST
https://yield.trdefi.com/v1/positionsUptime100% of 1 check in 30 days
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
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://yield.trdefi.com/v1/positions", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"example":{"chain":"base","deposits":[{"amount":"1000000","symbol":"USDC"},{"amount":"900000","symbol":"EURC"}],"makerFeeBps":30000,"wallet":"0x0000000000000000000000000000000000000000"},"properties":{"chain":{"description":"Network to ship on. Exactly these three keys: `base` (8453), `arc` (5042), `baseSepolia` (84532). Any other value is rejected with 422.","enum":["base","arc","baseSepolia"],"),
});
console.log(await res.json());Example input
{"example":{"chain":"base","deposits":[{"amount":"1000000","symbol":"USDC"},{"amount":"900000","symbol":"EURC"}],"makerFeeBps":30000,"wallet":"0x0000000000000000000000000000000000000000"},"properties":{"chain":{"description":"Network to ship on. Exactly these three keys: `base` (8453), `arc` (5042), `baseSepolia` (84532). Any other value is rejected with 422.","enum":["base","arc","baseSepolia"],"