# Tron

## **getTronSignedTransaction**

**This function for :**

* `.TRON` - tron (TRX)
* `.TRC_TOKEN` - tron token
* `.TRX_TESTNET` - tron testnet (tTRX)
* `.TRC_TESTNET` - tron testnet token

### **Parameters**

* coinType: tron networks coin type
* tronTransaction: ([TronTransation](#class-trontransaction))tron transaction parameter

#### **class TronTransaction**

<table><thead><tr><th width="123.33333333333331">Name</th><th width="140">Type</th><th>Description</th></tr></thead><tbody><tr><td>txData</td><td><code>String</code></td><td>transaction that has not been signed of tron transaction</td></tr><tr><td>key</td><td><code>String</code></td><td>sign key path for tron transaction</td></tr><tr><td>fee</td><td><code>String</code></td><td>transaction fee of this tron transaction<br>* fee value is configured in tron(TRX) unit.</td></tr></tbody></table>

### **Returns**

* result: (Bool) `true` if successful, `false` if error occurred
* txData: signed transaction

### **Requirements**

* D'CENT Biometric Wallet version 2.2.2. or higher is required.

**Example**

```swift
let tronTransaction : TronTransaction = TronTransaction(txData: "0a02610a220838507457b79561a740e8dd8fefaf2e5a65080112610a2d747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e5472616e73666572436f6e747261637412300a15418f2d2dfaa81af60f5a3ac4ca5597e795aff7abae121541c27dcd7d914fd6aa8fec3c8a41cb2e90883bc6f0187f70dd978cefaf2e", key: "m/44'/195'/0'/0/0", fee: "0.00262")
  
  
DcentMgr.getTronSignedTransaction(coinType: .TRON, tronTransaction: tronTransaction) { (result, txData) in
    print("Tron Transaction closure")
    if result == false {
        print("FAIL !!!")
    }else{
        print(txData)
    }
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dev-docs.dcentwallet.com/dcent-biometric-wallet-for-mobile/dcent-biometric-sdk-ios/tron.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
