# Vechain

## **getVechainSignedTransaction**

**This function for :**

* `.VECHAIN` - vechain (VET)
* `.VECHAIN_ERC20` - vechain token

### **Parameters**

* coinType: vechain networks coin type
* vechainTransaction: ([VechainTransation](#class-vechaintransaction))vechain transaction parameter

#### **class VechainTransaction**

<table><thead><tr><th width="193.33333333333331">Name</th><th width="118">Type</th><th>Description</th></tr></thead><tbody><tr><td>sigHash</td><td><code>String</code></td><td>transaction that has not been signed of vechain transaction</td></tr><tr><td>key</td><td><code>String</code></td><td>sign key path for vechain transaction</td></tr><tr><td>fee</td><td><code>String</code></td><td>transaction fee of vechain transaction<br>* fee value is configured in vechain(VET) unit.</td></tr><tr><td>nonce</td><td><code>String</code></td><td>(optional)transaction nonce of vechain transaction</td></tr><tr><td>decimals</td><td><code>String</code></td><td>transaction decimals of vechain transaction</td></tr><tr><td>symbol</td><td><code>String</code></td><td>transaction symbol of vechain transaction</td></tr><tr><td>optionParam</td><td><code>String</code></td><td>(optional)option parameter</td></tr></tbody></table>

### **Returns**

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

### **Requirements**

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

**Example**

```swift
let vechainTransaction : VechainTransaction = VechainTransaction(sigHash: "f83b2787c6143a04c08fe18202d0e1e094a57105e43efa47e787d84bb6dfedb19bdcaa8a908908e3f50b173c100001808082520880860152671166bdc0", key: "m/44'/818'/0'/0/0", fee: "0.21", decimals: 18, symbol: "VET", optionParam: "")

DcentMgr.getVechainSignedTransaction(coinType: .VECHAIN, vechainTransaction: vechainTransaction) { (result, txData) in
    print("Vechain 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/vechain.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.
