Skip to main content
Tron policies support raw signing methods and Tron RPC transaction methods.
  • Use signRawMessageBytes for unparsed raw signing requests.
  • Use signTransactionBytes for parsed raw signing requests.
  • Use tron_signTransaction or tron_sendTransaction for the RPC transaction method the policy applies to.
signTransactionBytes, tron_sendTransaction, and tron_signTransaction all use transaction bytes that evaluate tron_transaction or tron_trigger_smart_contract_data conditions. The decision to use a TransferContract or a TriggerSmartContract fields on Tron depends on the asset you are moving and whether you are interacting with a smart contract.
  • Use a TransferContract when you are performing a simple, direct transfer of native TRX between two standard accounts.
  • Use a TriggerSmartContract when you are interacting with any smart contract, which is necessary for transferring TRC-20 tokens and calling any function on a smart contract.

Allowlist a specific TransferContract to_address

Use tron_signTransaction and tron_sendTransaction for structured Tron RPC transaction requests.

Configure a max TransferContract amount (TRX)

Configure a max TriggerSmartContract call_value (TRX)

Disallow a certain TriggerSmartContract token_id (TRC-10)

Configure a max TriggerSmartContract call_token_value (TRC-10)

Allow a TRC-20 transfer with ABI decoding

Allow a certain owner address to transfer TRC20 token

Allow transfers to a specific address with a specific contract address

This is an example of mixing TriggerSmartContract and ABI configurations.

Denylist recipients with condition sets

Only allow raw signing after a certain start date

Use signRawMessageBytes for unparsed raw signing requests. signRawMessageBytes rules support system conditions, but do not support decoded transaction field sources like tron_transaction or tron_trigger_smart_contract_data.

Only allow transactions after a certain start date

Allow transfers to a specific address after a certain timestamp

This is an example of mixing TransferContract and System configurations.

Allow transfers to a specific address with ABI after a certain timestamp

This is an example of mixing TriggerSmartContract with ABI and System configurations.

Deny all requests

Anti patterns

Avoid adding rules that may override other rules