Work with this as data
Every API here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for apis
7 MCP tools reach this
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/merx-exchange:merx-exchange-tron-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
OpenAPI Specification
openapi: 3.2.0
info:
title: MERX x402 TRON API
version: 2.0.0
description: 'TRON payment infrastructure for AI agents. Send and receive USDT, USDC, USDD with automatic energy, monitor wallets with less than 3s detection, access real-time blockchain data. TRON x402 facilitator with full stablecoin coverage and Base USDC bridge. Three settlement schemes: exact, exact_permit, exact_gasfree (TIP-712 permit through MERX GasFreeController). First TRON entry in coinbase/x402 ecosystem registry.'
x-guidance: Use GET /x402/tron/prices for market data. Use POST /x402/tron/estimate before sending tokens. Use POST /x402/tron/send for TRC20 transfers with automatic energy provisioning. Use POST /x402/tron/watch for persistent address monitoring. All endpoints cost $0.01 per call. Pay with USDC on Base or USDT/USDC/USDD on TRON.
servers:
- url: https://merx.exchange
tags:
- name: TRON
paths:
/x402/tron/prices:
get:
summary: Live energy prices from TRON providers
description: Real-time energy and bandwidth prices aggregated from multiple TRON energy providers. Updated every 30 seconds.
tags:
- TRON
responses:
'200':
description: Success
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
type: object
properties:
provider:
type: string
price_sun:
type: integer
available:
type: integer
'402':
description: Payment Required
x-payment-info:
price:
mode: fixed
currency: USD
amount: '0.01'
protocols:
- x402: {}
parameters:
- name: resource
in: query
required: false
schema:
type: string
enum:
- ENERGY
- BANDWIDTH
description: 'Filter by resource type (default: all)'
operationId: getX402TronPrices
x-operation-id-source: derived
/x402/tron/account/{address}:
get:
summary: TRON account resources and balance
description: Get energy, bandwidth, TRX balance, and TRC20 token balances for any TRON address.
tags:
- TRON
responses:
'200':
description: Success
content:
application/json:
schema:
type: object
properties:
data:
type: object
properties:
address:
type: string
balance:
type: integer
energy_limit:
type: integer
bandwidth_limit:
type: integer
'402':
description: Payment Required
x-payment-info:
price:
mode: fixed
currency: USD
amount: '0.01'
protocols:
- x402: {}
parameters:
- name: address
in: path
required: true
schema:
type: string
pattern: ^T[1-9A-HJ-NP-Za-km-z]{33}$
description: TRON address (T...)
operationId: getX402TronAccountByAddress
x-operation-id-source: derived
/x402/tron/estimate:
post:
summary: TRON transaction energy and bandwidth estimation
description: Simulate a TRON transaction and return exact energy and bandwidth requirements.
tags:
- TRON
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- operation
properties:
operation:
type: string
enum:
- trc20_transfer
- trx_transfer
- custom
to:
type: string
amount:
type: string
contract:
type: string
responses:
'200':
description: Success
content:
application/json:
schema:
type: object
properties:
data:
type: object
properties:
energy_needed:
type: integer
bandwidth_needed:
type: integer
cost_trx:
type: string
'402':
description: Payment Required
x-payment-info:
price:
mode: fixed
currency: USD
amount: '0.01'
protocols:
- x402: {}
operationId: postX402TronEstimate
x-operation-id-source: derived
/x402/tron/swap/quote:
post:
summary: TRON SunSwap V2 token swap quote
description: Get a swap quote from SunSwap V2 DEX with price impact estimation.
tags:
- TRON
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- from
- to
- amount
properties:
from:
type: string
description: Source token symbol or contract
to:
type: string
description: Target token symbol or contract
amount:
type: string
description: Amount to swap
responses:
'200':
description: Success
content:
application/json:
schema:
type: object
properties:
data:
type: object
properties:
amount_out:
type: string
price_impact:
type: string
rate:
type: string
'402':
description: Payment Required
x-payment-info:
price:
mode: fixed
currency: USD
amount: '0.01'
protocols:
- x402: {}
operationId: postX402TronSwapQuote
x-operation-id-source: derived
/x402/tron/network:
get:
summary: TRON network parameters
description: Current TRON chain parameters including energy price, bandwidth cost, maintenance schedule.
tags:
- TRON
responses:
'200':
description: Success
content:
application/json:
schema:
type: object
properties:
data:
type: object
'402':
description: Payment Required
x-payment-info:
price:
mode: fixed
currency: USD
amount: '0.01'
protocols:
- x402: {}
parameters:
- name: format
in: query
required: false
schema:
type: string
enum:
- full
- summary
description: 'Response format (default: full)'
operationId: getX402TronNetwork
x-operation-id-source: derived
/x402/tron/swap/execute:
post:
summary: TRON SunSwap V2 token swap execution
description: Execute a token swap with automatic energy provisioning.
tags:
- TRON
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- from_token
- to_token
- amount
properties:
from_token:
type: string
to_token:
type: string
amount:
type: string
slippage_pct:
type: number
default: 0.5
responses:
'200':
description: Success
content:
application/json:
schema:
type: object
properties:
data:
type: object
properties:
txid:
type: string
amount_out:
type: string
'402':
description: Payment Required
x-payment-info:
price:
mode: dynamic
currency: USD
min: '0.001'
max: '0.01'
protocols:
- x402: {}
operationId: postX402TronSwapExecute
x-operation-id-source: derived
/x402/tron/rpc/{method}:
post:
summary: TRON RPC call via dedicated node
description: 'Direct RPC call to MERX TRON Lite FullNode. Sub-5ms latency. Whitelisted methods: getnowblock, getaccount, getaccountresource, gettransactionbyid, gettransactioninfobyid, getcontractinfo, triggerconstantcontract, getchainparameters, getblockbynum.'
tags:
- TRON
requestBody:
required: true
content:
application/json:
schema:
type: object
description: RPC request body (varies by method)
responses:
'200':
description: Success
content:
application/json:
schema:
type: object
description: RPC response (varies by method)
'402':
description: Payment Required
x-payment-info:
price:
mode: fixed
currency: USD
amount: '0.01'
protocols:
- x402: {}
parameters:
- name: method
in: path
required: true
schema:
type: string
enum:
- wallet/getnowblock
- wallet/getaccount
- wallet/getaccountresource
- wallet/gettransactionbyid
- wallet/gettransactioninfobyid
- wallet/getcontractinfo
- wallet/triggerconstantcontract
- wallet/getchainparameters
- wallet/getblockbynum
description: TRON RPC method
operationId: postX402TronRpcByMethod
x-operation-id-source: derived