> ## Documentation Index
> Fetch the complete documentation index at: https://docs.b3os.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Jupiter Lend Markets

List Jupiter Lend Earn or Borrow markets with explicit write support.

![Jupiter Lend Markets logo](https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/solana/info/logo.png)
Catalog action Solana Onchain

List Jupiter Lend Earn or Borrow markets with explicit write support.


## At a Glance

| Field | Value |
| --- | --- |
| Action ID | `jupiter-lend-get-markets` |
| Category | Solana Onchain |
| Connector | Not required |
| Requires gas | No |
| Funds movement | None declared |
| Tags | `jupiter`, `lending`, `yield`, `borrow`, `defi`, `read` |

## Payload Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `chainId` | `number` | Yes | Solana Mainnet |
| `product` | `string` | Yes | - |
| `market` | `string` | No | - |

## Result Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `product` | `string` | Yes | - |
| `market` | `string` | Yes | - |
| `asOf` | `string` | Yes | - |
| `items` | `array` | Yes | - |

## Examples

**Workflow node**

```json
{
  "type": "jupiter-lend-get-markets",
  "payload": {
    "chainId": 7565164,
    "product": "earn"
  },
  "children": []
}
```
  **Test with API**

```bash
curl -X POST "https://api.b3os.org/v1/actions/jupiter-lend-get-markets/test" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "inputs": {
    "chainId": 7565164,
    "product": "earn"
  }
}'
```

**Use expressions for dynamic values**

Payload fields can use workflow expressions such as `{{$trigger.body.amount}}`, `{{$nodes.fetch.result.price}}`, and `{{$props.asset}}` when the value should come from a trigger, prior node, or reusable workflow prop.