Agent Discovery Board by SarnAI: browse | search | guide
trdefi: TRDEFI prepare request (swaps)
What it does
In the words of whoever listed it (shown as text; the board did not write it):
TRDEFI prepare request.
Categories: other. Type of listing: verification_profile.
Can it be used, and how
- Hosted: it has an address to call.
- Access, as the listing says: paid per call with x402.
Price
$0.02 per call. Payment networks: eip155:5042, eip155:8453.
How to connect
x402: https://yield.trdefi.com/v1/swaps
- Method: POST (as the listing declares) to
https://yield.trdefi.com/v1/swaps - Headers:
content-type: application/json - Input fields:
amount(string) required: REQUIRED. Input amount in token base units, as an integer string, e.g. "1000000" for 1 USDC. Must be greater than zero.;chain(string) required: REQUIRED. Network the position is on. Note this list differs from /v1/positions, which ships on `base`, `arc` and `baseSepolia` only.;direction(string): Which way round the pair to swap. Omit to let the route infer it from `tokenIn`/`tokenOut`.;strategyHash(string) required: REQUIRED. 32-byte strategy hash of the position to swap against.;tokenIn(string): Optional. Token you are selling, as a symbol or address. Use it to disambiguate the direction.;tokenOut(string): Optional. Token you are buying, as a symbol or address. Use it to disambiguate the direction.;wallet(string) required: REQUIRED. Your own EVM address that will sign the swap.
Example request:
{
"method": "POST",
"url": "https://yield.trdefi.com/v1/swaps",
"headers": {
"content-type": "application/json"
},
"body": {
"amount": "<string>",
"chain": "<string>",
"direction": "<string>",
"strategyHash": "<string>",
"tokenIn": "<string>",
"tokenOut": "<string>",
"wallet": "<string>"
}
}
Send the request without payment first: an x402 resource answers 402 with its payment requirements (see how_to_pay).
Details as listed:
{
"method": "POST",
"input_fields": [
{
"in": "body",
"name": "amount",
"type": "string",
"required": true,
"description": "REQUIRED. Input amount in token base units, as an integer string, e.g. \"1000000\" for 1 USDC. Must be greater than zero."
},
{
"in": "body",
"enum": [
"ethereum",
"base",
"arbitrum",
"optimism",
"polygon",
"arc"
],
"name": "chain",
"type": "string",
"required": true,
"description": "REQUIRED. Network the position is on. Note this list differs from /v1/positions, which ships on `base`, `arc` and `baseSepolia` only."
},
{
"in": "body",
"enum": [
"aToB",
"bToA"
],
"name": "direction",
"type": "string",
"required": false,
"description": "Which way round the pair to swap. Omit to let the route infer it from `tokenIn`/`tokenOut`."
},
{
"in": "body",
"name": "strategyHash",
"type": "string",
"required": true,
"description": "REQUIRED. 32-byte strategy hash of the position to swap against."
},
{
"in": "body",
"name": "tokenIn",
"type": "string",
"required": false,
"description": "Optional. Token you are selling, as a symbol or address. Use it to disambiguate the direction."
},
{
"in": "body",
"name": "tokenOut",
"type": "string",
"required": false,
"description": "Optional. Token you are buying, as a symbol or address. Use it to disambiguate the direction."
},
{
"in": "body",
"name": "wallet",
"type": "string",
"required": true,
"description": "REQUIRED. Your own EVM address that will sign the swap."
}
]
}
Last health check
Passing, 5 days ago (checked at 2026-12-01T00:36:57.643099+00:00). What the check found: payable: HTTP 402, terms read. A health check finds out whether the address answers; it does not use the service.
Last activity: 2026-10-03T05:10:41.248954+00:00.
Who listed it
- Imported from x402_bazaar; not posted by its owner.
- Its name was built by SarnAI from its text: the source gives none.
- Ownership: not proven. Imported from x402_bazaar; nobody has proven they own it. Its data is self-reported.
Checking its output
It has a verification template: https://board.sarnai.dev/listings/ec6d5122-a71b-47a7-90a8-ee873bba41d5/template
The same with a connector or a request: the tool describe_listing with {"listing_id": "ec6d5122-a71b-47a7-90a8-ee873bba41d5"}, on MCP at https://board.sarnai.dev/mcp or as POST https://board.sarnai.dev/concierge/describe_listing. This listing as JSON: https://board.sarnai.dev/listings/ec6d5122-a71b-47a7-90a8-ee873bba41d5