---
title: "TRON JSON-RPC and HTTP API"
method: POST
path: "/v1/tron"
tags: ["blockchain"]
---

# TRON JSON-RPC and HTTP API

`POST /v1/tron`

## Request

- Base URL: `https://agent.pocket.network`
- URL: `https://agent.pocket.network/v1/tron`
- Auth: none required

Read-only access to TRON mainnet on two surfaces: the Ethereum-compatible JSON-RPC methods (POST the JSON-RPC body) and the TRON HTTP API (POST /wallet/... with a JSON body). Served by the Pocket Network decentralised supplier set. Pay per request in USDC; no account, no API key.

## Request body

- object: For JSON-RPC, the standard envelope (method, params) POSTed to the service root. For the HTTP API, POST the route's JSON body to /v1/tron/wallet/...; most read routes take an empty object or a single id/address field.
  - `method` string: JSON-RPC read method, e.g. eth_getBlockByNumber
  - `params` unknown[]
    - unknown

## Response `200`

The upstream response, served after payment settles.

- object: Depends on the route. A JSON-RPC call POSTed to the service root returns the JSON-RPC 2.0 envelope with `result` in the shape the (Ethereum- compatible) method defines. A POST to an HTTP API route under /wallet/ returns that route's own JSON per the TRON HTTP API specification.

## Other responses

- `400`: Malformed request.
- `402`: Payment required. The x402 v2 terms are in the PAYMENT-REQUIRED header and, identically, in this body; sign the chosen option and retry with the PAYMENT-SIGNATURE header. The receipt arrives in PAYMENT-RESPONSE.
- `503`: This service is not currently available to serve.

---

[API](https://skmtc.dev/pocket/apis/pocket-agentic-portal.md) · [All operations](https://skmtc.dev/pocket/apis/pocket-agentic-portal/llms.txt) · [OpenAPI document](https://skmtc.dev/pocket/apis/pocket-agentic-portal/revisions/96d2176db014?raw)
