Paygo

Paygo: exact fee quote for one token transfer

Partner API (wallet integrations). Returns an exact, fixed-price fee quote for a specific sender→recipient TRC-20 transfer, computed by live simulation on the TRON node (recipient storage state and the TIP-491 dynamic energy factor included). The quoted feeTrx is final: the user signs a TRX payment for exactly this amount. Requires a partner API key enabled for paygo.

post/api/v1/paygo/estimate

Request

  • Base URL: https://powersun.vip
  • URL: https://powersun.vip/api/v1/paygo/estimate
  • Auth: API key in header X-API-Key

Request body

fromstring required

Sender TRON address (base58)

tostring required

Recipient TRON address (base58)

tokenContractstring required

TRC-20 contract address

amountstring required

Transfer amount in raw token units (USDT: 6 decimals)

Example request

{
  "tokenContract": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
  "amount": "25000000"
}

Response

Fixed-price quote

estimateIdstring
energyinteger
bandwidthinteger
burnCostTrxstring
feeTrxstring
feeSuninteger

EXACT payment amount in SUN — build the TRX payment for precisely this integer value (do NOT derive it from feeTrx with float math; a 1-SUN mismatch is rejected with PAYMENT_MISMATCH)

energyPriceSuninteger
bandwidthPriceSuninteger
payTostring
validUntilstring date-time
recipientInitializedboolean

Example response

{
  "estimateId": "pe_7c11d9a0",
  "energy": 64285,
  "bandwidth": 613,
  "burnCostTrx": "6.7735",
  "feeTrx": "5.6332",
  "feeSun": 5633200,
  "energyPriceSun": 80,
  "bandwidthPriceSun": 800
}

Changes

No recorded changes to this operation across all 1 revision of this API.