# Conflux

## **getConfluxSignedTransaction**

**This function for :**

* `CONFLUX` (CRX)

### **Parameters**

| Parameter   | Type                                            | Description                     |
| ----------- | ----------------------------------------------- | ------------------------------- |
| coinType    | `CoinType`                                      | conflux coin type.              |
| transaction | [ConfluxTransaction](#class-confluxtransaction) | conflux transaction parameters. |

#### class ConfluxTransaction

<table><thead><tr><th width="166.33333333333331">Name</th><th width="162">Type</th><th>Description</th></tr></thead><tbody><tr><td>nonce</td><td><code>String</code></td><td>account nonce for Conflux transaction</td></tr><tr><td>gasPrice</td><td><code>String</code></td><td>gas price for Conflux transaction</td></tr><tr><td>gasLimit</td><td><code>int</code></td><td>gas limit value of Conflux transaction</td></tr><tr><td>toAddr</td><td><code>String</code></td><td>address to send</td></tr><tr><td>amount</td><td><code>String</code></td><td>amount of CFX to send of Conflux transaction</td></tr><tr><td>storageLimit</td><td><code>String</code></td><td>storageLimit for Conflux transaction</td></tr><tr><td>epochHeight</td><td><code>String</code></td><td>epochHeight for Conflux transaction</td></tr><tr><td>chainId</td><td><code>String</code></td><td>chain id for Conflux transaction</td></tr><tr><td>data</td><td><code>String</code></td><td>(optional)transaction input data for Conflux transaction</td></tr><tr><td>hdKeyPath</td><td><code>Bip44KeyPath</code></td><td>sign key path for Conflux transaction</td></tr></tbody></table>

### **Returns**

`String` - signed transaction.

### **Requirements**

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

**Example**

```java
String keyPath = "m/44'/60'/0'/0/0";
ConfluxTransaction confluxTransaction;

confluxTransaction = new ConfluxTransaction.Builder()
                    .keyPath(Bip44KeyPath.valueOf(keyPath))
                    .nonce("0")
                    .gasPrice("1")
                    .gasLimit("53000")
                    .toAddr("cfx:aath39ukgygwae5jnhuj1z02vkkc68wsu62j5spdng")
                    .amount("499993640000000000000")
                    .storageLimit("0")
                    .epochHeight("57744640")
                    .chainId("1029")
                    .data("")
                    .build();

String response = mDcentmanager.getConfluxSignedTransaction(CoinType.CONFLUX, confluxTransaction);
```

## **getConfluxCrc20SignedTransaction**

**This function for :**

* `CFX_CRC20` - Conflux Token

### **Parameters**

| Parameter   | Type                                                      | Description                           |
| ----------- | --------------------------------------------------------- | ------------------------------------- |
| coinType    | `CoinType`                                                | conflux crc20 coin type.              |
| transaction | [ConfluxCrc20Transaction](#class-confluxcrc20transaction) | conflux crc20 transaction parameters. |

#### **class ConfluxCrc20Transaction**

<table><thead><tr><th width="182.33333333333331">Name</th><th width="165">Type</th><th>Description</th></tr></thead><tbody><tr><td>nonce</td><td><code>String</code></td><td>account nonce for Conflux transaction</td></tr><tr><td>gasPrice</td><td><code>String</code></td><td>gas price for Conflux transaction</td></tr><tr><td>gasLimit</td><td><code>int</code></td><td>gas limit value of Conflux transaction</td></tr><tr><td>toAddr</td><td><code>String</code></td><td>address to send</td></tr><tr><td>amount</td><td><code>String</code></td><td>amount of CFX to send of Conflux transaction</td></tr><tr><td>storageLimit</td><td><code>String</code></td><td>storageLimit for Conflux transaction</td></tr><tr><td>epochHeight</td><td><code>String</code></td><td>epochHeight for Conflux transaction</td></tr><tr><td>chainId</td><td><code>String</code></td><td>chain id for Conflux transaction</td></tr><tr><td>data</td><td><code>String</code></td><td>(optional)transaction input data for Conflux transaction</td></tr><tr><td>hdKeyPath</td><td><code>Bip44KeyPath</code></td><td>sign key path for Conflux transaction</td></tr><tr><td>name</td><td><code>String</code></td><td>token name of Crc20 transaction</td></tr><tr><td>contractAddress</td><td><code>String</code></td><td>contractAddress of Crc20 transaction</td></tr><tr><td>toAddress</td><td><code>String</code></td><td>toAddress of Crc20 transaction</td></tr><tr><td>decimals</td><td><code>String</code></td><td>decimals of of Crc20 transaction</td></tr><tr><td>value</td><td><code>String</code></td><td>amount of ether to be sent of Crc20. ( Drip unit value )</td></tr><tr><td>symbol</td><td><code>String</code></td><td>symbol of Crc20 transaction</td></tr></tbody></table>

### **Returns**

`String` - signed transaction.

### **ARequirements**

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

**Example**

```java
String keyPath = "m/44'/60'/0'/0/0";
ConfluxCrc20Transaction confluxCrc20Transaction;

confluxCrc20Transaction = new ConfluxCrc20Transaction.Builder()
                    .keyPath(Bip44KeyPath.valueOf(keyPath))
                    .nonce("0")
                    .gasPrice("1")
                    .gasLimit("53000")
                    .toAddr("cfx:acdeewzdr3cv7hvc12kdwp7gzysjaexz9jw7s1uaft")
                    .amount("0")
                    .storageLimit("0")
                    .epochHeight("58463079")
                    .chainId("1029")
                    .data("")
                    .name("IoTestCoin")
                    .contractAddress("cfx:acdeewzdr3cv7hvc12kdwp7gzysjaexz9jw7s1uaft")
                    .toAddressForCrc20("cfx:aath39ukgygwae5jnhuj1z02vkkc68wsu62j5spdng")
                    .decimals("18")
                    .value("5000000000000000000")
                    .symbol("ITC")
                    .build();

String response = mDcentmanager.getConfluxCrc20SignedTransaction(CoinType.CFX_CRC20, confluxCrc20Transaction)
```


---

# 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/conflux.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.
