# Polkadot

## **getPolkadotSignedTransaction**

**This function for :**

* `.POLKADOT` - polkadot (DOT)

### **Parameters**

* coinType: polkadot networks coin type
* polkadotTransaction: ([PolkadotTransation](#class-polkadottransaction))polkadot transaction parameter

#### **class** PolkadotTransaction

| Name        | Type     | Description                                                                                         |
| ----------- | -------- | --------------------------------------------------------------------------------------------------- |
| sigHash     | `String` | transaction that has not been signed of polkadot transaction                                        |
| key         | `String` | sign key path for polkadot transaction                                                              |
| fee         | `String` | <p>transaction fee of polkadot transaction<br>\* fee value is configured in polkadot(DOT) unit.</p> |
| nonce       | `String` | (optional)transaction nonce of polkadot transaction)                                                |
| decimals    | `String` | transaction decimals of polkadot transaction                                                        |
| symbol      | `String` | transaction symbol of polkadot transaction                                                          |
| optionParam | `String` | (optional)option parameter                                                                          |

### **Returns**

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

### **Requirements**

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

**Example**

```swift
let polkadotTransaction : PolkadotTransaction = PolkadotTransaction(sigHash: "040000163a5ee36b1243ce5241c0a45010dd1717869e9918c040bf5d305be4a5af9e7a0b00407a10f35a003400a223000007000000e143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423ee143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e", key: "m/44'/354'/0'/0/0", fee: "0.0000000005", decimals: 12, symbol: "DOT", optionParam: "")
  
DcentMgr.getPolkadotSignedTransaction(coinType: .POLKADOT, polkadotTransaction: polkadotTransaction) { (result, txData) in
    print("Polkadot 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/polkadot.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.
