# Hedera

## **getHederaSignedTransaction**

**This function for :**&#x20;

* `.HEDERA` - hedera (HBAR)
* `.HEDERA_HTS` - hedera token
* `.HEDERA_TESTNET` - hedera testnet (HBARt)
* `.HTS_TESTNET` - hedera testnet token

### **Parameters**

* coinType: hedera networks coin type
* hederaTransaction: ([HederaTransation](#class-hederatransaction))hedera transaction parameter

#### **class HederaTransaction**

<table><thead><tr><th width="139.33333333333331">Name</th><th width="146">Type</th><th>Description</th></tr></thead><tbody><tr><td>unsigned</td><td><code>String</code></td><td>transaction that has not been signed of hedera transaction</td></tr><tr><td>key</td><td><code>String</code></td><td>sign key path for hedera transaction</td></tr><tr><td>symbol</td><td><code>String</code></td><td>transaction symbol of hedera transaction</td></tr><tr><td>decimals</td><td><code>String</code></td><td>transaction decimals of hedera transaction</td></tr></tbody></table>

### **Returns**

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

### **Requirements**

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

**Example**

```swift
let hederaTransaction : HederaTransaction = HederaTransaction(unsigned: "", key: "", symbol: "", decimals: "")
  
// test data
hederaTransaction.unsigned = "0a1a0a0c088dfbbc9006108885e6a90112080800100018d6c0151800120608001000180318c0843d22020878320072260a240a100a080800100018d6c01510ef8de29a030a100a080800100018f6a72810f08de29a03"
hederaTransaction.key = "m/44'/3030'/0'"
hederaTransaction.symbol = "HBAR"
hederaTransaction.decimals = "8"
  
DcentMgr.getHederaSignedTransaction(coinType: .HEDERA, hederaTransaction: hederaTransaction) { (result, txData) in
    print("Hedera 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/hedera.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.
