# Cosmos

## **getCosmosSignedTransaction**

**This function for :**&#x20;

* `.COSMOS` - cosmos (ATOM)
* `.COREUM` - coreum (CORE)

### **Parameters**

* coinType: cosmos networks coin type
* cosmosTransaction: ([CosmosTransation](#class-cosmostransaction))cosmos transaction parameter

#### **class CosmosTransaction**

<table><thead><tr><th width="172.33333333333331">Name</th><th width="108">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 cosmos transaction</td></tr><tr><td>key</td><td><code>String</code></td><td>sign key path for cosmos transaction</td></tr><tr><td>fee</td><td><code>String</code></td><td>transaction fee of polkadot transaction<br>* fee value is configured in cosmos(ATOM) or coreum(CORE) unit.</td></tr><tr><td>nonce</td><td><code>String</code></td><td>(optional)transaction nonce of cosmos transaction</td></tr><tr><td>decimals</td><td><code>String</code></td><td>transaction decimals of cosmos transaction</td></tr><tr><td>symbol</td><td><code>String</code></td><td>transaction symbol of cosmos 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.21.0 or higher is required.
  * COREUM: 2.25.0 or higher is required.

**Example**

```swift
let cosmosTransaction : CosmosTransaction = CosmosTransaction(sigHash: "0a94010a8f010a1c2f636f736d6f732e62616e6b2e763162657461312e4d736753656e64126f0a2d636f736d6f73317235763573726461377866746833686e327332367478767263726e746c646a756d74386d686c122d636f736d6f733138766864637a6a7574343467707379383034637266686e64356e713030336e7a306e663230761a0f0a057561746f6d1206313030303030120012670a500a460a1f2f636f736d6f732e63727970746f2e736563703235366b312e5075624b657912230a21ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff12040a020801180a12130a0d0a057561746f6d12043530303010c09a0c1a0b636f736d6f736875622d34208f3a", key: "m/44'/118'/0'/0/0", fee: "0.00025", decimals: 6, symbol: "ATOM", optionParam: "")
  
DcentMgr.getCosmosSignedTransaction(coinType: .COSMOS, cosmosTransaction: cosmosTransaction) { (result, txData) in
    print("Binance 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/cosmos.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.
