Yield.xyz MCP · Actions Manage

by Yield.xyz MCP

POSTBaseX Layer

$0.001

per call · USD Coin on Base

Build unsigned transactions for pending actions on an existing DeFi position — claim rewards, restake, unlock, or complete a withdrawal — across 80+ networks. Use the action type and passthrough from yields_get_balances pendingActions[]. Does NOT execute: the caller signs and broadcasts each tx.

Endpoint

POST https://mcp.yield.xyz/x402/actions_manage

1

Calls / 30d

1

Unique payers / 30d

Sep 8

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://mcp.yield.xyz/x402/actions_manage", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "action": "CLAIM_REWARDS",
    "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
    "passthrough": "aaabbbcccdddeeefff",
    "yieldId": "ethereum-matic-native-staking"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://mcp.yield.xyz/x402/actions_manage" \
  -H "Content-Type: application/json" \
  -d '{"action":"CLAIM_REWARDS","address":"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045","passthrough":"aaabbbcccdddeeefff","yieldId":"ethereum-matic-native-staking"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
  "amount": null,
  "executionPattern": "synchronous",
  "id": "7a2b9c4d-1e5f-4a8b-9c3d-6e7f8a9b0c1d",
  "intent": "manage",
  "status": "CREATED",
  "transactions": [
    {
      "id": "5e6f7a8b-9c0d-1e2f-3a4b-5c6d7e8f9a0b",
      "network": "ethereum",
      "status": "CREATED",
      "stepIndex": 0,
      "title": "CLAIM_REWARDS Transaction",
      "type": "CLAIM_REWARDS",
      "unsignedTransaction": "{\"from\":\"0xd8dA…\",\"to\":\"0x5e3e…\",\"data\":\"0x8f2e…\"}"
    }
  ],
  "type": "CLAIM_REWARDS",
  "yieldId": "ethereum-matic-native-staking"
}

Payment details

Pay to0xd433f056270912659f073d5ffe7ae247e39235a5
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, X Layer
Schemesexact

Is this your API?

Pin it to the top of Onchain Data and the homepage with a featured placement.

Get featured →

More from Yield.xyz MCP & similar services