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

# Hyperliquid Deposit

Deposit USDC into Hyperliquid for perpetual trading via cross-chain bridge (Relay Protocol). Accepts USDC from any supported chain (Arbitrum, Ethereum, Base, Polygon, Optimism, Avalanche). Ideal for: funding a new account, adding margin, and activating trading.

![Hyperliquid Deposit logo](https://cdn.b3.fun/hyperliquid-logo.png)
Catalog action Hyperliquid wallet Gas

Deposit USDC into Hyperliquid for perpetual trading via cross-chain bridge (Relay Protocol). Accepts USDC from any supported chain (Arbitrum, Ethereum, Base, Polygon, Optimism, Avalanche). Ideal for: funding a new account, adding margin, and activating trading.

**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 | `hyperliquid-deposit` |
| Category | Hyperliquid |
| Connector | `wallet` |
| Requires gas | Yes |
| Funds movement | None declared |
| Tags | `hyperliquid`, `deposit`, `usdc`, `bridge` |

## Payload Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `amountRaw` | `string` | No | Amount to deposit in the source token's smallest units. Minimum 1 USDC equivalent. |

## Result Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `status` | `string` | Yes | Deposit outcome |
| `transactionHash` | `string` | No | Transaction hash on the source chain |
| `depositedAmount` | `string` | No | Amount deposited. Human-readable for USDC \(e.g., '100'\). Raw smallest-unit string for non-USDC source tokens when no human-readable amount is available. |
| `srcChainId` | `number` | No | Chain ID the USDC was bridged from |
| `isFirstDeposit` | `boolean` | No | True if the Hyperliquid account had zero funds before this deposit |

## Examples

**Workflow node**

```json
{
  "type": "hyperliquid-deposit",
  "payload": {
    "amountRaw": "1000000"
  },
  "children": [],
  "connector": {
    "type": "wallet",
    "id": "conn_wallet"
  }
}
```
  **Test with API**

```bash
curl -X POST "https://api.b3os.org/v1/actions/hyperliquid-deposit/test" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "inputs": {
    "amountRaw": "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.