# Jupiter — Lend Earn — Prepare unsigned withdraw-instructions

Get Jupiter Earn Withdraw Instructions data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Jupiter, pass parameters such as amount, asset, signer, and retrieve structured data including instruction program address, encoded instruction data, instruction account public key, account signer requirement, and account writable flag for wallet review, and integration tools.

Documentation: https://openany.si/market/apis/jupiter/jupiter-lend-earn-prepare-unsigned-withdraw-instructions/?offering=f124368a-e9fa-421b-b919-6a9005839944
API ID: f124368a-e9fa-421b-b919-6a9005839944
Provider: jupiter
Contract revision: 4
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/jupiter/lend/v1/earn/withdraw-instructions
Page update time: 2026-12-03T02:49:39.422Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: application/json
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0 / call
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract. Price update time: not supplied.
Contract update time: 2026-12-03T02:49:38.721Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Jupiter — Lend Earn — Prepare unsigned withdraw-instructions request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {}
    },
    "headers": {
      "type": "object",
      "properties": {}
    },
    "body": {
      "description": "withdraw-instructions — complete JSON body for the verified unsigned preparation profile.",
      "example": {
        "amount": "1000000",
        "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
        "signer": "HYbxGkNvEwvZ14RzJHPB9h3dWfXjxwAEhkyzJRHx1hBf"
      },
      "examples": [
        {
          "amount": "1",
          "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
          "signer": "HYbxGkNvEwvZ14RzJHPB9h3dWfXjxwAEhkyzJRHx1hBf"
        }
      ],
      "properties": {
        "amount": {
          "default": "5",
          "description": "Amount in the underlying token atomic units as a decimal integer string. For 6-decimal USDC, 1000000 is 1 USDC.",
          "example": "1",
          "type": "string"
        },
        "asset": {
          "default": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
          "description": "Underlying SPL token mint. Use assetAddress from the earn token list; it is not the interest-bearing share mint.",
          "example": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
          "type": "string"
        },
        "signer": {
          "default": "vBXNsd5SRtTPpW7GWv3wREA6Ztm2jCWp5eqqTsVhyG5",
          "description": "Public key of the transaction payer and signer. Only an unsigned preview is returned; the wallet owner signs separately.",
          "example": "HYbxGkNvEwvZ14RzJHPB9h3dWfXjxwAEhkyzJRHx1hBf",
          "type": "string"
        }
      },
      "required": [
        "asset",
        "signer",
        "amount"
      ],
      "type": "object"
    }
  },
  "required": [
    "path",
    "query",
    "headers",
    "body"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "instructions": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "accounts": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "isSigner": {
                  "type": "boolean"
                },
                "isWritable": {
                  "type": "boolean"
                },
                "pubkey": {
                  "type": "string"
                }
              }
            }
          },
          "data": {
            "type": "string"
          },
          "programId": {
            "type": "string"
          }
        }
      }
    }
  }
}
```

## Request example
Scenario: Documentation example
```bash
curl \
  'https://api.openany.si/v1/agent-apis/jupiter/lend/v1/earn/withdraw-instructions' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "amount": "1",
  "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
  "signer": "HYbxGkNvEwvZ14RzJHPB9h3dWfXjxwAEhkyzJRHx1hBf"
}'
```

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
{
  "instructions": [
    {
      "accounts": [
        {
          "isSigner": true,
          "isWritable": true,
          "pubkey": "HYbxGkNvEwvZ14RzJHPB9h3dWfXjxwAEhkyzJRHx1hBf"
        },
        {
          "isSigner": false,
          "isWritable": true,
          "pubkey": "3m19zbtp3MuaDmFkEg3RSbC3DNiEPAWzJCcvcCJTe6tW"
        },
        {
          "isSigner": false,
          "isWritable": true,
          "pubkey": "DYrPreEeQHGLTiVmb7HhDATAsGabgEhxS5Dm5GmkxWqt"
        },
        {
          "isSigner": false,
          "isWritable": false,
          "pubkey": "5nmGjA4s7ATzpBQXC5RNceRpaJ7pYw2wKsNBWyuSAZV6"
        },
        {
          "isSigner": false,
          "isWritable": true,
          "pubkey": "2vVYHYM8VYnvZqQWpTJSj8o8DBf1wM8pVs3bsTgYZiqJ"
        },
        {
          "isSigner": false,
          "isWritable": false,
          "pubkey": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
        },
        {
          "isSigner": false,
          "isWritable": true,
          "pubkey": "9BEcn9aPEmhSPbPQeFGjidRiEKki46fVQDyPpSQXPA2D"
        },
        {
          "isSigner": false,
          "isWritable": true,
          "pubkey": "94vK29npVbyRHXH63rRcTiSr26SFhrQTzbpNJuhQEDu"
        },
        {
          "isSigner": false,
          "isWritable": true,
          "pubkey": "Hf9gtkM4dpVBahVSzEXSVCAPpKzBsBcns3s8As3z77oF"
        },
        {
          "isSigner": false,
          "isWritable": false,
          "pubkey": "5pjzT5dFTsXcwixoab1QDLvZQvpYJxJeBphkyfHGn688"
        },
        {
          "isSigner": false,
          "isWritable": true,
          "pubkey": "BmkUoKMFYBxNSzWXyUjyMJjMAaVz4d8ZnxwwmhDCUXFB"
        },
        {
          "isSigner": false,
          "isWritable": true,
          "pubkey": "HN1r4VfkDn53xQQfeGDYrNuDKFdemAhZsHYRwBrFhsW"
        },
        {
          "isSigner": false,
          "isWritable": true,
          "pubkey": "7s1da8DduuBFqGra5bJBjpnvL5E9mGzCuMk1Qkh4or2Z"
        },
        {
          "isSigner": false,
          "isWritable": false,
          "pubkey": "jupeiUmn818Jg1ekPURTpr4mFo29p46vygyykFJ3wZC"
        },
        {
          "isSigner": false,
          "isWritable": false,
          "pubkey": "5xSPBiD3TibamAnwHDhZABdB4z4F9dcj5PnbteroBTTd"
        },
        {
          "isSigner": false,
          "isWritable": false,
          "pubkey": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
        },
        {
          "isSigner": false,
          "isWritable": false,
          "pubkey": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
        },
        {
          "isSigner": false,
          "isWritable": false,
          "pubkey": "11111111111111111111111111111111"
        }
      ],
      "data": "txJGnJRtoSIBAAAAAAAAAA==",
      "programId": "jup3YeL8QhtSx1e253b2FDvsMNC87fDrgQZivbrndc9"
    }
  ]
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Available implementations
- jupiter: https://openany.si/market/apis/jupiter/jupiter-lend-earn-prepare-unsigned-withdraw-instructions/?offering=f124368a-e9fa-421b-b919-6a9005839944

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
