ToolAssay

TRDEFI prepare request

TRDEFI prepare request

Not tested: has real-world effectsour last check, 2026-10-02
0 of 0checks answered this week
n/amedian answer time
$0.02listed price per call
n/aprice it asked us

Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.

Endpoint

POST https://yield.trdefi.com/v1/swaps

CategoryEverything else
Provider hostyield.trdefi.com
Networkseip155:5042, eip155:8453
Payment schemesexact
Self-reported calls, 30 days0 from 0 payers (the provider's figure, not ours)

Our checks, last 30 days

We never call tools that send, buy, move money or file anything, not even without paying.

Example input (from the provider)

{
  "body": {
    "properties": {
      "amount": {
        "description": "Input amount in token base units, as an integer string, e.g. \"1000000\" for 1 USDC.",
        "type": "string"
      },
      "chain": {
        "description": "Network the position is on, e.g. \"base\".",
        "type": "string"
      },
      "direction": {
        "description": "Which way round the pair to swap.",
        "enum": [
          "aToB",
          "bToA"
        ],
        "type": "string"
      },
      "strategyHash": {
        "description": "32-byte strategy hash of the position to swap against.",
        "type": "string"
      },
      "wallet": {
        "description": "Your own EVM address that will sign the swap.",
        "type": "string"
      }
    },
    "required": [
      "strategyHash",
      "chain",
      "amount",
      "wallet"
    ],
    "type": "object"
  },
  "method": "POST",
  "type": "http"
}

Promised output schema (from the provider)

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "properties": {
        "body": {
          "properties": {
            "amount": {
              "description": "Input amount in token base units, as an integer string, e.g. \"1000000\" for 1 USDC.",
              "type": "string"
            },
            "chain": {
              "description": "Network the position is on, e.g. \"base\".",
              "type": "string"
            },
            "direction": {
              "description": "Which way round the pair to swap.",
              "enum": [
                "aToB",
                "bToA"
              ],
              "type": "string"
            },
            "strategyHash": {
              "description": "32-byte strategy hash of the position to swap against.",
              "type": "string"
            },
            "wallet": {
              "description": "Your own EVM address that will sign the swap.",
              "type": "string"
            }
          },
          "required": [
            "strategyHash",
            "chain",
            "amount",
            "wallet"
          ],
          "type": "object"
        },
        "method": {
          "const": "POST"
        },
        "type": {
          "const": "http"
        }
      },
      "type": "object"
    },
    "output": {
      "description": "One unsigned transaction that performs the swap.",
      "example": {
        "amountOut": "999000",
        "chain": "base",
        "note": "Sign with your own wallet. TRDEFI cannot sign or broadcast this.",
        "transactions": [
          {
            "data": "0x...",
            "to": "0x111111338c5091e8440b67b168bae16a668ac0de",
            "value": "0"
          }
        ]
      },
      "type": "object"
    }
  },
  "type": "object"
}

This page as JSON