Trading and Earn

Swap TRX and TRC20 tokens with an agent wallet on TRON

Discover TRON pairs, quote SUN swaps, check router allowances, sign with your own wallet and verify the Bitpont fee in the confirmed receipt.

Workflow

  1. Find the pair and check the wallet

    Call swapPairs with chainId tron:728126428. Each reviewUrl opens that directional market. Preserve the case of Base58 addresses. The native TRX identity used by Bitpont is T9yD14Nj9j7xAB4dbGeiX9h8unkKHxuWwb. Call tronBalances for your public owner and selected token. Keep enough TRX or network resources for every approval and the swap.

  2. Review the quote in token units

    The example quotes 10 TRX in sun. Pass the gross sell amount to tronQuote. Read minimumOut, expiresAt and the output fee in the bought token’s base units. Match its recipient to the address expected by your wallet policy. A native TRX purchase pays its fee in WTRX before the wallet receives TRX. Use tronConfig for the deployed router and fee configuration.

  3. Handle one permission at a time

    Call tronPrepare with quoteId, owner and action next. Read kind before asking your signer to act. A TRC20 input may need an allowance reset followed by an exact token approval to the direct SUN V3 router. Check the exact token, spender, maximum amount and expiry. Save the txID of each approval, wait for confirmation and call tronPrepare again. Requote and review the new terms if the original quote expires.

  4. Sign the reviewed call on your wallet host

    Compare the contract and decoded call with the owner-approved token pair, gross input, minimum received, fee recipient, deadline and network fee limit. Sign the verified transaction locally. Send only txID and signedTransaction to tronSignedSubmit. Keep the private key, seed phrase or hardware signer on the owner’s device.

  5. Recover and match the fee

    Look up the original txID using tronReceipt after broadcast or a lost response. Wait for its confirmed status. Inspect the receipt’s fee evidence for the collection token, recipient and amount. An approval is a separate transaction. A pending or unverified receipt cannot establish Bitpont’s fee income.

Quote 10 TRX for TRON USDT

REST · cURL
curl -fsS "https://www.bitpont.com/api/v1/agent/swap/tron/quote" \
  -H 'Content-Type: application/json' \
  -d '{"from":"T9yD14Nj9j7xAB4dbGeiX9h8unkKHxuWwb","to":"TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t","amount":"10000000","slippageBps":50}'

Send this tool call through your connected Bitpont MCP client.

MCP · tool call
{
  "method": "tools/call",
  "params": {
    "name": "bitpont_tronQuote",
    "arguments": {
      "from": "T9yD14Nj9j7xAB4dbGeiX9h8unkKHxuWwb",
      "to": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
      "amount": "10000000",
      "slippageBps": 50
    }
  }
}

Tools in this guide

Open tool explorer

Related links