> ## 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.

# Aerodrome Stake LP

Stakes LP tokens in an Aerodrome gauge to earn AERO emissions on Base. Handles LP token approval to gauge automatically. Use aerodrome-get-lp-positions to find pools with gauges. Ideal for: yield farming, emission harvesting, DeFi automation.

![Aerodrome Stake LP logo](https://aerodrome.finance/images/AERO/logo-512.png)
Catalog action EVM Onchain wallet Gas send

Stakes LP tokens in an Aerodrome gauge to earn AERO emissions on Base. Handles LP token approval to gauge automatically. Use aerodrome-get-lp-positions to find pools with gauges. Ideal for: yield farming, emission harvesting, DeFi automation.

**Review wallet and value movement**

This action can require a wallet connector, gas, token movement, or an external side effect. Test with simulation or a controlled amount before using it in a live workflow.

## At a Glance

| Field | Value |
| --- | --- |
| Action ID | `aerodrome-stake-lp` |
| Category | EVM Onchain |
| Connector | `wallet` |
| Requires gas | Yes |
| Funds movement | `send` |
| Tags | `defi`, `staking`, `base`, `onchain`, `write` |

## Payload Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `chainId` | `number` | Yes | Chain ID. Supported: Base \(8453\) |
| `poolAddress` | `string` | Yes | Address of the Aerodrome LP pool |
| `amount` | `string` | Yes | Amount of LP tokens to stake in raw units |

## Result Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `transactionHash` | `string` | Yes | - |
| `poolAddress` | `string` | No | - |
| `gaugeAddress` | `string` | Yes | - |
| `amount` | `string` | No | - |

## Examples

**Workflow node**

```json
{
  "type": "aerodrome-stake-lp",
  "payload": {
    "chainId": 8453,
    "poolAddress": "0x0000000000000000000000000000000000000000",
    "amount": "1000000"
  },
  "children": [],
  "connector": {
    "type": "wallet",
    "id": "conn_wallet"
  }
}
```
  **Test with API**

```bash
curl -X POST "https://api.b3os.org/v1/actions/aerodrome-stake-lp/test" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "inputs": {
    "chainId": 8453,
    "poolAddress": "0x0000000000000000000000000000000000000000",
    "amount": "1000000"
  }
}'
```

**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.