---
title: "triggersmartcontract"
method: POST
path: "/node/v1/tron/mainnet/{apiKey}/wallet/triggersmartcontract"
---

# triggersmartcontract

`POST /node/v1/tron/mainnet/{apiKey}/wallet/triggersmartcontract`

Returns TransactionExtention, which contains the unsigned Transaction.

## Path parameters

- `apiKey` string, required

## Request body

- object
  - `owner_address` string, required — Address that triggers the contract, converted to a hex string
  - `contract_address` string, required — Contract address, converted to a hex string
  - `function_selector` string — Function call, must not be left blank
  - `parameter` string — Parameter encoding needs to be in accordance with the ABI rules, the rules are more complicated, users can use the ethers library to encode,For details, please refer to the document-Guide-Smart Contract-Best Practice-Parameter Encoding and Decoding.
  - `fee_limit` integer — Maximum TRX consumption, measured in SUN (1 TRX = 1,000,000 SUN).
  - `call_value` integer — Amount of TRX transferred with this transaction, measured in SUN (1 TRX = 1,000,000 SUN).
  - `visible` boolean, required — Optional.Whehter the address is in base58 format.

## Response `200`

200

- object
  - `result` object
    - `result` boolean
  - `transaction` object — Transaction object - JSON object: Unsigned transaction

---

[API](https://skmtc.net/zan/apis/zan-getnftmetadata.md) · [All operations](https://skmtc.net/zan/apis/zan-getnftmetadata/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/zan/zan-getnftmetadata/versions/be8fa2338895/schema)
