"Contract validate error": decoding the message

The prefix says the node rejected the transaction; the text after it says why.

On this page 5 sections
  1. What the error means
  2. How to fix it
  3. Decoder: the common messages
  4. Why it happens
  5. Questions

Short answer

"Contract validate error : " is the prefix a TRON node puts on any transaction it rejects before running it (code CONTRACT_VALIDATE_ERROR), and the text after it names the real problem, most often a TRX balance that's too low, an unactivated sender or a bad fee_limit, so read past the prefix and fix that.

What the error means

When a node checks a transaction before broadcasting it and one of the checks fails, it answers with code CONTRACT_VALIDATE_ERROR and a message that always starts with the same prefix (a space before and after the colon):

{
  "result": false,
  "code": "CONTRACT_VALIDATE_ERROR",
  "message": "Contract validate error : Validate TransferContract error, balance is not sufficient."
}

"Contract" here means the transaction's contract (TRON calls every action, even a plain TRX transfer, a contract), not necessarily a smart contract. The transaction never entered a block and no fee was charged.

If the message looks like 436f6e74726163742076616c6964617465206572726f72203a20..., it's hex. The HTTP broadcasttransaction API returns the message as hex unless the request has "visible": true. Decode it as UTF-8, or resend with visible: true.

How to fix it

  1. Read the text after the prefix

    Ignore "Contract validate error : " and find the rest of the message in the decoder table above. If it's hex, decode it first.

  2. Check the address

    Paste the sender into the address checker: TRX balance, USDT balance and activation in one place.

  3. Fix the cause

    Top up TRX, activate the address, or correct the parameter the message names (fee_limit, amount, contract address).

  4. Rebuild and sign again

    Create a fresh transaction. The rejected one never reached the chain, so there's nothing to cancel.

Decoder: the common messages

Messages that follow "Contract validate error : " and what they mean
Message after the prefixWhat it meansFix
Validate TransferContract error, balance is not sufficient.Not enough TRX for the amount (plus 1 TRX if the receiver is a new address)Balance is not sufficient
account [T...] does not existThe sender was never activatedActivate the address
Validate TransferContract error, no OwnerAccount.The same, from the node's transaction builderActivate the address
feeLimit must be >= 0 and <= 15000000000fee_limit is negative or above the mainnet maximum of 15,000 TRX (in sun)Set fee_limit within range; for a USDT transfer a fraction of the max is plenty
No contract or not a smart contractThe address you called isn't a smart contract on this networkCheck the token's contract address, and that you're on mainnet, not a testnet
No contract!The transaction has no action in it at allA bug in the tool that built it; rebuild it
callValue must be >= 0A negative TRX amount attached to a contract callA bug in the script; fix the value

Other codes come with their own messages, not this prefix: BANDWITH_ERROR, TAPOS_ERROR / expired, DUP_TRANSACTION_ERROR and SIGERROR.

Why it happens

  • Balance checks. The most common case for people: trying to send more TRX than the address holds, often with "Max" not leaving room for fees.
  • Account checks. The sender doesn't exist on-chain yet.
  • Parameter checks. A script or custom tool sets fee_limit, amounts or addresses wrong. Wallet apps rarely hit these.
  • Wrong network or address. Calling a contract that exists on Nile or Shasta testnet, or a mistyped token address, gives "not a smart contract" on mainnet.

What you'll see on Tronscan

Nothing: the node rejected the transaction before it reached a block, so https://tronscan.org/#/transaction/<txid> has no page for it. If Tronscan does show the hash, it wasn't this error; read the result there instead.

Use Tronscan or our address checker to check what the message points at: the TRX balance, whether the sender is activated, or whether the contract address really is the token you meant. After a successful retry, the TXID fee checker shows what it cost.

Questions

Did this error cost me anything?

No. Validation happens before the transaction enters a block, so no fee is charged and nothing moves.

Why does it say "contract" when I only sent TRX?

On TRON every transaction carries a "contract" that describes the action: a TRX transfer is a TransferContract. The error is about that action, not a smart contract.

Why is the error message a long hex string?

The HTTP broadcast API returns the message as hex bytes unless you send "visible": true. Decode the hex as UTF-8 to read it.

What is the maximum fee_limit on TRON?

15,000 TRX (15,000,000,000 sun) on mainnet. fee_limit is a cap, not a payment: you're only charged for the energy actually used.

Can I get this error for a USDT transfer?

Yes, for problems the node can see before running it: an unactivated sender, a fee_limit out of range or a wrong contract address. Too little USDT is different: that runs and ends in REVERT.

Useful? Send it to someone who pays USDT fees too.

Send USDT from about 1.82 TRX

Instead of burning 6.43 TRX. FeeBolt Router™ finds the best live price, and the energy usually lands within 1–2 minutes.