Yield.xyz MCP · Actions Enter

by Yield.xyz MCP

POSTBaseX Layer

$0.001

per call · USD Coin on Base

Build unsigned transactions to enter any DeFi yield — native/liquid staking (ETH, SOL, ATOM), stablecoin lending (USDC/USDT on Aave, Morpho), ERC-4626 vaults, and tokenized RWAs across 80+ networks. Does NOT execute: the caller signs and broadcasts each tx, so keys never leave the caller. Find yield IDs via yields_get_all.

Endpoint

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

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_enter", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
    "amount": "0.1",
    "yieldId": "ethereum-eth-lido-staking"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://mcp.yield.xyz/x402/actions_enter" \
  -H "Content-Type: application/json" \
  -d '{"address":"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045","amount":"0.1","yieldId":"ethereum-eth-lido-staking"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
  "amount": "1",
  "executionPattern": "synchronous",
  "id": "0b8e2c5a-4f3d-4c2b-9e1a-7d6f5e4c3b2a",
  "intent": "enter",
  "status": "CREATED",
  "transactions": [
    {
      "id": "6b757454-725c-4871-9f9a-8fa159dc8720",
      "network": "base",
      "status": "CREATED",
      "stepIndex": 0,
      "title": "APPROVAL Transaction",
      "type": "APPROVAL",
      "unsignedTransaction": "{\"from\":\"0xd8dA…\",\"to\":\"0x8335…\",\"data\":\"0x095e…\"}"
    },
    {
      "id": "da961e24-0f26-462e-9456-3886386ef247",
      "network": "base",
      "status": "CREATED",
      "stepIndex": 1,
      "title": "SUPPLY Transaction",
      "type": "SUPPLY",
      "unsignedTransaction": "{\"from\":\"0xd8dA…\",\"to\":\"0xa238…\",\"data\":\"0x617b…\"}"
    }
  ],
  "type": "STAKE",
  "yieldId": "base-usdc-aave-v3-lending"
}

Payment details

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

Is this your API?

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

Get featured →

More from Yield.xyz MCP & similar services