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

# Account Actions

> Referrals, agents, transfers, and governance event formats

Account actions are less frequent but carry important signal. These appear in the pre-consensus layer.

## setReferrer

Set a referral code. Common from automated trading systems.

```json theme={null}
{
  "type": "setReferrer",
  "consensus": "pre",
  "user": "0x5c09a84500000000...",
  "data": "CCXT1"
}
```

The `data` field is the referral code string.

## approveAgent

Authorize a trading agent (API wallet) to trade on behalf of the user.

```json theme={null}
{
  "type": "approveAgent",
  "consensus": "pre",
  "user": "0x...",
  "data": {
    "agentAddress": "0x...",
    "agentName": "my-bot"
  }
}
```

## evmRawTx

A raw EVM transaction on HyperEVM. These carry smart contract interactions.

```json theme={null}
{
  "type": "evmRawTx",
  "consensus": "pre",
  "user": "0xe834922b2feee69b...",
  "data": {
    "calldataLen": 900,
    "chainId": 999,
    "gas": 367059,
    "maxFeePerGas": 4000000000,
    "maxPriorityFeePerGas": 0
  }
}
```

## Other account actions

These appear less frequently in the stream:

| Type                    | Description                         |
| ----------------------- | ----------------------------------- |
| `agentSetAbstraction`   | Set account abstraction mode        |
| `userSetAbstraction`    | User-initiated abstraction          |
| `startFeeTrial`         | Begin a fee trial period            |
| `claimRewards`          | Claim staking rewards               |
| `convertToMultiSigUser` | Convert to multi-sig account        |
| `tokenDelegate`         | Delegate/undelegate HYPE stake      |
| `withdraw3`             | Withdraw to external chain (bridge) |
| `usdSend`               | Internal USDC transfer              |
| `vaultTransfer`         | Vault deposit/withdraw              |
| `subAccountTransfer`    | Transfer between sub-accounts       |
| `borrowLend`            | Borrow or lend action               |
