> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chainstack.com/llms.txt
> Use this file to discover all available pages before exploring further.

# wallet/triggersmartcontract | TRON

> TRON API method that triggers a smart contract function call. This method creates a transaction to interact with deployed smart contracts on the TRON network.

TRON API method that triggers a smart contract function call. This method creates a transaction to interact with deployed smart contracts on the TRON network, allowing you to call contract functions with specified parameters.

## Parameters

* `contract_address` — the smart contract address (hex format)
* `function_selector` — the function signature to call (e.g., "transfer(address,uint256)")
* `parameter` — encoded parameters for the function call (hex format)
* `owner_address` — the caller's TRON address (hex format)
* `call_value` — optional TRX amount to send with the call (in sun)
* `fee_limit` — maximum energy cost for the transaction (in sun)
* `visible` — optional boolean to specify address format (default: false for hex format)

## Response

* `result` — execution result object containing:
  * `result` — boolean indicating call success
  * `code` — status code
  * `message` — error message if call failed
* `energy_used` — amount of energy consumed
* `constant_result` — array of return values from the contract function
* `transaction` — transaction object if creating a transaction
* `logs` — array of event logs generated during execution

## Use case

The `wallet/triggersmartcontract` method is used for:

* Calling smart contract functions to read data or execute state changes.
* Interacting with DApps and DeFi protocols on the TRON network.
* Token transfers using TRC-20 contract methods.
* Querying contract state and executing complex business logic.


## OpenAPI

````yaml openapi/tron_node_api/triggersmartcontract.json post /95e61622bf6a8af293978377718e3b77/wallet/triggersmartcontract
openapi: 3.0.0
info:
  title: wallet/triggersmartcontract TRON API
  version: 1.0.0
  description: Trigger a smart contract function call
servers:
  - url: https://tron-mainnet.core.chainstack.com
security: []
paths:
  /95e61622bf6a8af293978377718e3b77/wallet/triggersmartcontract:
    post:
      tags:
        - Smart Contract Operations
      summary: wallet/triggersmartcontract
      operationId: triggerSmartContract
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - contract_address
                - function_selector
                - parameter
                - owner_address
              properties:
                contract_address:
                  type: string
                  default: 41a614f803b6fd780986a42c78ec9c7f77e6ded13c
                function_selector:
                  type: string
                  default: transfer(address,uint256)
                parameter:
                  type: string
                  default: >-
                    000000000000000000000000e9d79cc47518930bc322d9bf7cddd260a0260a8d00000000000000000000000000000000000000000000000000000000000003e8
                owner_address:
                  type: string
                  default: 41608f8da72479edc7dd921e4c30bb7e7cddbe722e
                call_value:
                  type: integer
                  default: 0
                fee_limit:
                  type: integer
                  default: 10000000
                visible:
                  type: boolean
                  default: false
      responses:
        '200':
          description: Smart contract execution result
          content:
            application/json:
              schema:
                type: object
                properties:
                  result:
                    type: object
                    properties:
                      result:
                        type: boolean
                      code:
                        type: string
                      message:
                        type: string
                  energy_used:
                    type: integer
                  constant_result:
                    type: array
                    items:
                      type: string
                  transaction:
                    type: object
                  logs:
                    type: array

````