MCP Tool · x402 · early usage

Build unsigned transactions to exit a DeFi yield position — unstake, withdraw from lend…

Build unsigned transactions to exit a DeFi yield position — unstake, withdraw from lending or vaults, or redeem RWAs — across 80+ networks. Supports instant and queued/cooldown redemption per protocol. Does NOT execute: the caller signs and broadcasts each tx…

by mcp.yield.xyz · discovered, not yet claimed by its owner · updated 2026-10-08

30d calls2
30d payers2
MethodPOST
Outputjson

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

Build unsigned transactions to exit a DeFi yield position — unstake, withdraw from lending or vaults, or redeem RWAs — across 80+ networks. Supports instant and queued/cooldown redemption per protocol. Does NOT execute: the caller signs and broadcasts each tx. Check positions with yields_get_balances first.

Tags: unstaking · defi withdrawal · redemption · exit position · unsigned transaction · bazaar

Call contract

Method
POST
Input
json
Output
json
Last paid call
2026-10-08
Input example from Bazaar metadata
{
  "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
  "amount": "0.1",
  "yieldId": "ethereum-eth-lido-staking"
}
Output example
{
  "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
  "amount": "0.1",
  "executionPattern": "synchronous",
  "id": "3f9d1e8b-2c4a-4b7e-8d5f-1a2b3c4d5e6f",
  "intent": "exit",
  "status": "CREATED",
  "transactions": [
    {
      "id": "8c1d2e3f-4a5b-6c7d-8e9f-0a1b2c3d4e5f",
      "network": "ethereum",
      "status": "CREATED",
      "stepIndex": 0,
      "title": "UNSTAKE Transaction",
      "type": "UNSTAKE",
      "unsignedTransaction": "{\"from\":\"0xd8dA…\",\"to\":\"0x889e…\",\"data\":\"0xd668…\"}"
    }
  ],
  "type": "UNSTAKE",
  "yieldId": "ethereum-eth-lido-staking"
}

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/27652.json for the price and payment options.
  3. Pay. Call GET https://mcp.yield.xyz/x402/actions_exit. 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, 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.001 / request
Protocol
x402 v2
Auth
No account or API key. Pay per request.
Networks
Base
Demand
2 calls · 2 unique payers in 30d (public x402 Bazaar data)

x402 payment requirements

SchemeNetworkAssetAmountPay toTimeout
exactBase
eip155:8453
USDC$0.0010xD433f056270912659f073D5FFE7Ae247e39235A5300s
accepts[] (raw JSON)
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "payTo": "0xD433f056270912659f073D5FFE7Ae247e39235A5",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "1000",
    "amountUsd": 0.001,
    "maxTimeoutSeconds": 300
  }
]

Schemas

Output schema (JSON Schema)
{
  "properties": {
    "example": {
      "description": "Core fields shown; responses may carry additional yield-specific fields depending on the protocol (this schema is intentionally non-exhaustive).",
      "properties": {
        "address": {
          "type": "string"
        },
        "amount": {
          "type": [
            "string",
            "null"
          ]
        },
        "createdAt": {
          "type": "string"
        },
        "executionPattern": {
          "enum": [
            "synchronous",
            "asynchronous",
            "batch"
          ],
          "type": "string"
        },
        "id": {
          "description": "Action ID — poll status later with actions_get",
          "type": "string"
        },
        "intent": {
          "description": "\"enter\", \"exit\", or \"manage\"",
          "type": "string"
        },
        "status": {
          "description": "\"CREATED\" on success; poll until SUCCESS/FAILED",
          "type": "string"
        },
        "transactions": {
          "description": "Sign and broadcast each transaction in stepIndex order, then report each hash via submit_hash. NEVER modify unsignedTransaction.",
          "items": {
            "properties": {
              "gasEstimate": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "isMessage": {
                "description": "When true, sign as a message instead of a transaction",
                "type": "boolean"
              },
              "network": {
                "type": "string"
              },
              "status": {
                "type": "string"
              },
              "stepIndex": {
                "type": "integer"
              },
              "title": {
                "type": "string"
              },
              "type": {
                "description": "e.g. \"APPROVAL\", \"SUPPLY\", \"STAKE\"",
                "type": "string"
              },
              "unsignedTransaction": {
                "description": "Raw transaction to sign — a JSON string on EVM chains, an object on non-EVM chains. Never modify it."
              }
            },
            "type": "object"
          },
          "type": "array"
        },
        "type": {
          "description": "Action type, e.g. \"STAKE\", \"UNSTAKE\", \"CLAIM_REWARDS\"",
          "type": "string"
        },
        "yieldId": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "type": {
      "type": "string"
    }
  },
  "required": [
    "type"
  ],
  "type": "object"
}
Example shape — generated from the schema, not a captured live response
{
  "example": {
    "address": "string",
    "amount": "string",
    "createdAt": "string",
    "executionPattern": "synchronous",
    "id": "string",
    "intent": "string",
    "status": "string",
    "transactions": [
      {
        "gasEstimate": "string",
        "id": "string",
        "isMessage": true,
        "network": "string",
        "status": "string",
        "stepIndex": 0,
        "title": "string",
        "type": "string",
        "unsignedTransaction": null
      }
    ],
    "type": "string",
    "yieldId": "string"
  },
  "type": "string"
}

Examples

curl
curl "https://mcp.yield.xyz/x402/actions_exit"
# -> 402 Payment Required, accepts[] lists how to pay
# retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://mcp.yield.xyz/x402/actions_exit");
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://mcp.yield.xyz/x402/actions_exit")
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
mcp.yield.xyz
Endpoint
https://mcp.yield.xyz/x402/actions_exit
Machine-readable
/resources/27652.json