# Hedera

## **getHederaSignedTransaction**

**This function for :**

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

### **Parameters**

| Parameter   | Type                                          | Description                    |
| ----------- | --------------------------------------------- | ------------------------------ |
| coinType    | `CoinType`                                    | hedera coin type.              |
| transaction | [HederaTransaction](#class-hederatransaction) | hedera transaction parameters. |

#### **class HederaTransaction**

<table><thead><tr><th width="165.33333333333331">Name</th><th width="165">Type</th><th>Description</th></tr></thead><tbody><tr><td>hdKeyPath</td><td><code>Bip44KeyPath</code></td><td>key path to sign this hedera transaction</td></tr><tr><td>unsigned</td><td><code>String</code></td><td>transaction that has not been signed of hedera transaction</td></tr><tr><td>decimals</td><td><code>int</code></td><td>transaction decimals of hedera transaction</td></tr><tr><td>symbol</td><td><code>String</code></td><td>transaction symbol of hedera transaction</td></tr></tbody></table>

### **Returns**

`String` - signed transaction.

### **Requirements**

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

**Example**

```java
String keyPath = "m/44'/3030'/0'";
HederaTransaction hederaTransaction;

hederaTransaction = new HederaTransaction.Builder()
                    .keyPath(Bip44KeyPath.valueOf(keyPath))
                    .decimals(8)
                    .unsigned("0a1a0a0b0893b888880610cdfab9741209080010001895cb84011800120608001000180318c0843d22020878320072280a260a110a09080010001895cb840110ff87debe010a110a090800100018c1cb8401108088debe01")
                    .symbol("HBAR")
                    .build();

String response = mDcentmanager.getHederaSignedTransaction(CoinType.HEDERA, hederaTransaction);
```
