# Havah

## **getHavahSignedTransaction**

**This function for :**

* `HAVAH`(HVH)
* `HAVAH_HSP20`(HSP20)
* `HAVAH_TESTNET`(HVH)
* `HAVAH_HSP20_TESTNET`

### **Parameters**

| Parameter   | Type                                        | Description                   |
| ----------- | ------------------------------------------- | ----------------------------- |
| coinType    | `CoinType`                                  | havah coin type.              |
| transaction | [HavahTransaction](#class-havahtransaction) | havah transaction parameters. |

#### **class** HavahTransaction

<table><thead><tr><th width="152.33333333333331">Name</th><th width="171">Type</th><th>Description</th></tr></thead><tbody><tr><td>hdKeyPath</td><td><code>Bip44KeyPath</code></td><td>sign key path for havah transaction</td></tr><tr><td>sigHash</td><td><code>String</code></td><td>transaction that has not been signed of havah transaction</td></tr><tr><td>decimals</td><td><code>int</code></td><td>transaction decimals of havah transaction</td></tr><tr><td>symbol</td><td><code>String</code></td><td>transaction symbol of havah transaction</td></tr><tr><td>fee</td><td><code>String</code></td><td>transaction fee of havah transaction<br>* Fee value is configured in havah(HVH) unit.</td></tr><tr><td>nonce</td><td><code>String</code></td><td>(optional)transaction nonce of havah transaction</td></tr><tr><td>optionParam</td><td><code>String</code></td><td>(optional)hexadecimal value of the havah method type is used only in havah token<br>- '01' : Token Transfer<br>- '02' : Token Deposit<br>- '03' : Token Message<br>- <del>'04': Token Deploy</del> (<strong>The method will be supported later)</strong></td></tr></tbody></table>

### **Returns**

* `String` - signed transaction.

### **Requirements**

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

**Example**

```java
String keyPath = "m/44'/858'/0'/0/0";
HavahTransaction havahTransaction;

havahTransaction = new HavahTransaction.Builder()
                    .keyPath(Bip44KeyPath.valueOf(keyPath))
                    .sigHash("6963785f73656e645472616e73616374696f6e2e66726f6d2e6878316531333433353935303532383335613064396137643064396533353839633433323831623262642e6e69642e30783130302e6e6f6e63652e3078312e737465704c696d69742e307831616462302e74696d657374616d702e3078356661316631343633666161302e746f2e6878353833323164313731633833393465613434303638376562623462353832623037353739356663352e76616c75652e307833636235396163376237353734652e76657273696f6e2e307833")
                    .fee("0.001375")
                    .decimals(18)
                    .symbol("HVH")
                    .build();

String response = mDcentmanager.getHavahSignedTransaction(CoinType.HAVAH, havahTransaction);
```


---

# 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-android/havah.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.
