YI
Travel · x402 · early usage

TRDEFI prepare request

TRDEFI prepare request

by yield.trdefi.com · discovered, not yet claimed by its owner · updated 2026-10-11

30d calls7
30d payers3
MethodPOST
Outputobject

Mirrored from Coinbase's public x402 Bazaar. The description is the provider's own text and has not been reviewed here; the payment requirements are copied as published.

What it does

TRDEFI prepare request

Tags: bazaar

Call contract

Method
POST
Input
HTTP request
Output
object
Last paid call
2026-10-11
Input example from Bazaar metadata
{
  "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"
      ],
      "type": "string"
    },
    "checkBalances": {
      "default": false,
      "description": "Add live balance checks to `preflight` so you can tell a human the transfer will succeed before asking them to approve.",
      "type": "boolean"
    },
    "deposits": {
      "description": "REQUIRED. Exactly two tokens, and they must be different symbols. Each `amount` is an integer string in base units — never a float. You supply both sides, so we never have to guess a price.",
      "items": {
        "properties": {
          "amount": {
            "description": "Amount in base units, as an integer string, e.g. \"1000000\" for 1 USDC.",
            "type": "string"
          },
          "symbol": {
            "description": "Token symbol or address, e.g. \"USDC\".",
            "type": "string"
          }
        },
        "required": [
          "symbol",
          "amount"
        ],
        "type": "object"
      },
      "maxItems": 2,
      "minItems": 2,
      "type": "array"
    },
    "includeApprovals": {
      "default": true,
      "description": "Set `false` to receive only the `ship` step. By default the `approve` steps are included only where your live allowance is short.",
      "type": "boolean"
    },
    "makerFeeBps": {
      "default": 0,
      "description": "Fee you keep per swap, in the protocol's 1e7 scale (`30000` = 0.30%). Independent of, and on top of, the 0.05% protocol fee. Optional; defaults to 0.",
      "maximum": 2000000,
      "minimum": 0,
      "type": "integer"
    },
    "wallet": {
      "description": "Your own EVM address. The position belongs to it; funds never leave it.",
      "pattern": "^0x[a-fA-F0-9]{40}$",
      "type": "string"
    }
  },
  "required": [
    "chain",
    "wallet",
    "deposits"
  ],
  "type": "object"
}
Output example
{
  "chain": "base",
  "note": "Sign with your own wallet. TRDEFI cannot sign or broadcast these.",
  "strategyHash": "0x5928c6b6c24c08615ddde8b832e6f4b135550601e2bb903dba4123c1b8ff8f2c",
  "transactions": [
    {
      "data": "0x095ea7b3...",
      "to": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
      "value": "0"
    }
  ]
}

Use with an agent

  1. Discover. Agents find this listing with GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP tool search_resources, or /discovery/resources.
  2. Inspect. Fetch /resources/57326.json for the price and payment options.
  3. Pay. Call GET https://yield.trdefi.com/v1/positions. The provider answers 402 with its payment requirements. An x402 client signs one of the options below and retries with PAYMENT-SIGNATURE.
  4. Execute. The provider returns 200 with the data. Agent Bazaar is not in the request path and never sees your payment.

For humans

You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base, eip155:5042, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.

Pricing & payment

Price
$0.02 / request
Protocol
x402 v2
Auth
No account or API key. Pay per request.
Networks
Base, eip155:5042
Demand
7 calls · 3 unique payers in 30d (public x402 Bazaar data)

x402 payment requirements

SchemeNetworkAssetAmountPay toTimeout
exactBase
eip155:8453
USDC$0.020x4C96dA02d7120BFb81594d0e924B237e0c74660d3600s
exacteip155:5042
eip155:5042
0x3600000000000000000000000000000000000000200000x4C96dA02d7120BFb81594d0e924B237e0c74660d3600s
accepts[] (raw JSON)
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "payTo": "0x4C96dA02d7120BFb81594d0e924B237e0c74660d",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "20000",
    "amountUsd": 0.02,
    "maxTimeoutSeconds": 3600
  },
  {
    "scheme": "exact",
    "network": "eip155:5042",
    "payTo": "0x4C96dA02d7120BFb81594d0e924B237e0c74660d",
    "asset": "0x3600000000000000000000000000000000000000",
    "amount": "20000",
    "maxTimeoutSeconds": 3600
  }
]

Schemas

Output schema (JSON Schema)
{
  "description": "Unsigned transactions plus the strategy hash they will produce.",
  "example": {
    "chain": "base",
    "note": "Sign with your own wallet. TRDEFI cannot sign or broadcast these.",
    "strategyHash": "0x5928c6b6c24c08615ddde8b832e6f4b135550601e2bb903dba4123c1b8ff8f2c",
    "transactions": [
      {
        "data": "0x095ea7b3...",
        "to": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
        "value": "0"
      }
    ]
  },
  "type": "object"
}
Example shape — generated from the schema, not a captured live response
{
  "chain": "base",
  "note": "Sign with your own wallet. TRDEFI cannot sign or broadcast these.",
  "strategyHash": "0x5928c6b6c24c08615ddde8b832e6f4b135550601e2bb903dba4123c1b8ff8f2c",
  "transactions": [
    {
      "data": "0x095ea7b3...",
      "to": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
      "value": "0"
    }
  ]
}

Examples

curl
curl "https://yield.trdefi.com/v1/positions"
# -> 402 Payment Required, accepts[] lists how to pay
# retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://yield.trdefi.com/v1/positions");
if (res.status === 402) {
  const { accepts } = await res.json();
  // pay one of accepts[] via an x402 client, then retry with the payment header
}
Python
import httpx
res = httpx.get("https://yield.trdefi.com/v1/positions")
if res.status_code == 402:
    accepts = res.json()["accepts"]
    # pay one of accepts[] via an x402 client, then retry with the payment header

Details

Provider
yield.trdefi.com
Endpoint
https://yield.trdefi.com/v1/positions
Machine-readable
/resources/57326.json