# stake_tokens

Stake 0G tokens to a validator to earn rewards. Accepts either validator consensus public key (96 hex chars) OR validator EVM address (40 hex chars, from explorer). Delegates tokens through the 0G Chain staking contract. Returns transaction hash, validator info, estimated rewards (APY ~12.5%), and staking details. Note: 21-day unbonding period applies.

Agent View of the PolicyLayer registry record for `stake_tokens`. HTML page: https://policylayer.com/tools/tairon-ai-0g-chain-mcp/stake-tokens

## Facts

- Tool: `stake_tokens`
- Server: 0g Chain (`tairon-ai/0g-chain-mcp`) — https://policylayer.com/tools/tairon-ai-0g-chain-mcp.md
- Homepage: https://github.com/Tairon-ai/0g-chain-mcp
- Risk category: Financial (Critical risk)
- Registry record: grade C, identity unverified
- Server rate-limited: no
- Parameters: 0
- Recommended policy verdict: Approval-gated

## Example call (MCP tools/call, JSON-RPC 2.0)

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "stake_tokens",
    "arguments": {}
  }
}
```

## Why stake_tokens is rated Critical

This tool commits financial assets (tokens) to a blockchain staking contract, locking them with a 21-day unbonding period. This constitutes a financial obligation/commitment and is effectively irreversible in the short term.

From the tool's own definition: "Stake 0G tokens to a validator to earn rewards... Delegates tokens through the 0G Chain staking contract. Returns transaction hash... Note: 21-day unbonding period applies."

## Use case

AI agents use stake_tokens to commit financial operations through 0g Chain, usually the final step of a payment, billing, or trading workflow. A call moves real money.

## Recommended policy (PolicyLayer)

Verdict: **Approval-gated**. Enforced by the PolicyLayer MCP gateway (https://policylayer.com/mcp-gateway) before a call reaches 0g Chain:

```json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "stake_tokens": {
      "deny_if": [
        {
          "conditions": [],
          "on_deny": "Requires human approval."
        }
      ]
    }
  }
}
```

## Other tools on 0g Chain (8)

- `send_native_token` — Financial — https://policylayer.com/tools/tairon-ai-0g-chain-mcp/send-native-token.md
- `unstake_tokens` — Financial — https://policylayer.com/tools/tairon-ai-0g-chain-mcp/unstake-tokens.md
- `get_accumulated_rewards` — Read — https://policylayer.com/tools/tairon-ai-0g-chain-mcp/get-accumulated-rewards.md
- `get_balance` — Read — https://policylayer.com/tools/tairon-ai-0g-chain-mcp/get-balance.md
- `get_staking_info` — Read — https://policylayer.com/tools/tairon-ai-0g-chain-mcp/get-staking-info.md
- `get_validator_info` — Read — https://policylayer.com/tools/tairon-ai-0g-chain-mcp/get-validator-info.md
- `get_validators_list` — Read — https://policylayer.com/tools/tairon-ai-0g-chain-mcp/get-validators-list.md
- `create_wallet` — Write — https://policylayer.com/tools/tairon-ai-0g-chain-mcp/create-wallet.md

## For agents

This record is a snapshot. Live verdicts and the full registry:

- Check every server in your MCP config at once: `npx -y policylayer stack`
- Vet a server before you add it: install the mcp-precheck skill — `npx skills add https://policylayer.com` (skill text: https://policylayer.com/skill.md)
- Query the registry over MCP: endpoint `https://api.policylayer.com/mcp` — tools `check_mcp_server`, `check_mcp_stack`, `check_tool`, `search_registry`, `get_change_events`

---

Source: the PolicyLayer MCP registry — one continuously verified record per MCP server. Full record: https://policylayer.com/registry?q=tairon-ai-0g-chain-mcp · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/tairon-ai-0g-chain-mcp
