# Polkadot

## **getPolkadotSignedTransaction**

**This function for :**

* `POLKADOT` (DOT)

### **Parameters**

| Parameter   | Type                                              | Description                      |
| ----------- | ------------------------------------------------- | -------------------------------- |
| coinType    | `CoinType`                                        | polkadot coin type.              |
| transaction | [PolkadotTransaction](#class-polkadottransaction) | polkadot transaction parameters. |

#### **class** PolkadotTransaction

<table><thead><tr><th width="160.33333333333331">Name</th><th width="161">Type</th><th>Description</th></tr></thead><tbody><tr><td>hdKeyPath</td><td><code>Bip44KeyPath</code></td><td>sign key path for polkadot transaction</td></tr><tr><td>sigHash</td><td><code>String</code></td><td>transaction that has not been signed of polkadot transaction</td></tr><tr><td>decimals</td><td><code>int</code></td><td>transaction decimals of polkadot transaction</td></tr><tr><td>symbol</td><td><code>String</code></td><td>transaction symbol of polkadot transaction</td></tr><tr><td>fee</td><td><code>String</code></td><td>transaction fee of polkadot transaction<br>* Fee value is configured in polkadot(DOT) unit.</td></tr><tr><td>nonce</td><td><code>String</code></td><td>(optional)transaction nonce of polkadot transaction</td></tr><tr><td>optionParam</td><td><code>String</code></td><td>(optional)option parameter</td></tr></tbody></table>

### **Returns**

`String` - signed transaction.

### **Requirements**

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

**Example**

```java
String keyPath = "m/44'/354'/0'/0/0";
PolkadotTransaction polkadotTransaction;

polkadotTransaction = new PolkadotTransaction.Builder()
                    .keyPath(Bip44KeyPath.valueOf(keyPath))
                    .sigHash("040000163a5ee36b1243ce5241c0a45010dd1717869e9918c040bf5d305be4a5af9e7a0b00407a10f35a003400a223000007000000e143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423ee143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e")
                    .fee("0.0000000005")
                    .decimals(12)
                    .symbol("DOT")
                    .build();

String response = mDcentmanager.getPolkadotSignedTransaction(CoinType.POLKADOT, polkadotTransaction);
```
