# dcent-web-connector

This package is for connecting WEB and D'CENT biometric wallet.\
`dcent-web-connector` is modules for easy integration of D'CENT into 3rd party services.

* repository : <https://github.com/DcentWallet/dcent-web-connector>

if you need more features for `dcent-web-connector`, please feel free to contact us through `contact@iotrust.kr`.

## D'CENT Web SDK Integration Guide

### Version History

<table><thead><tr><th width="150">version</th><th width="150">date</th><th width="447.1610797982794">modification</th></tr></thead><tbody><tr><td>v0.15.0</td><td>2023.12.13</td><td>add Parachain(Astar) transaction function</td></tr><tr><td>v0.14.2</td><td>2023.11.20</td><td>add Algorand transaction function</td></tr><tr><td>v0.14.0</td><td>2023.05.25</td><td>add Polkadot &#x26; Comsmos &#x26; Coreum &#x26; Near Token transaction functions</td></tr><tr><td>v0.13.1</td><td>2023.05.17</td><td>fix fee display issue</td></tr><tr><td>v0.13.0</td><td>2023.05.16</td><td>add Tezos &#x26; Vechain &#x26; Near &#x26; Havah transaction function</td></tr><tr><td>v0.12.1</td><td>2023.05.03</td><td>add support coin group for syncAccount</td></tr><tr><td>v0.12.0</td><td>2023.02.15</td><td>add Tron &#x26; Stellar transaction transaction functions</td></tr><tr><td>v0.11.2</td><td>2022.04.21</td><td>modify getEthereumSignedTransaction interface for EIP-2718</td></tr><tr><td>v0.11.0</td><td>2022.03.08</td><td>add interface for Hedera transaction</td></tr><tr><td>v0.10.5</td><td>2021.12.23</td><td>support sign data function</td></tr><tr><td>v0.10.4</td><td>2021.05.06</td><td>add Select address function</td></tr><tr><td>v0.10.3</td><td>2021.03.15</td><td>add XDC transaction function</td></tr><tr><td>v0.10.1</td><td>2020.11.30</td><td>modify description for Ripple full transaction</td></tr><tr><td>v0.10.0</td><td>2020.09.28</td><td>add interface for Ripple full transaction</td></tr><tr><td>v0.9.0</td><td>2020.06.22</td><td>add interface for BITCOIN transaction</td></tr><tr><td>v0.8.0</td><td>2020.06.05</td><td>add 'getSignedMessage' function</td></tr><tr><td>v0.7.0-beta</td><td>2019.05.07</td><td>add KLAYTN transaction function</td></tr><tr><td>v0.6.2-beta</td><td>2019.04.07</td><td>First version of D'CENT Web SDK connector release</td></tr></tbody></table>

### Introduction

D'CENT Web SDK allows your web application to quickly create an wallet application using D'CENT biometric wallet. This guide explains how to install DCENT Web SDK and use the SDK for your web wallet application.

### Architecture

The figure below is a D'CENT Web SDK structure.

![](https://3196447716-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MSabI0mrlgeosuXblg3%2Fuploads%2FU8BL3OiQ2BPHpLOKXEWA%2Fdcent-web-sdk-arch.png?alt=media\&token=174e5446-da2c-4363-9039-22f4f15702bd)

When the functions is called, if the D'CENT Bridge Service is not running as a popup, the popup window is automatically opened internally and a request to process the function is transmitted.

### Packages

D'CENT Web SDK includes:

* doc : Integration guide and API documentation of DCENT Web SDK.
* src : DCENT Web SDK library file.

You can find the full source code of D'CENT Web SDK here.

* <https://github.com/DcentWallet/dcent-web-connector/>

### Example code

You can find the example web page source code here.

* <https://github.com/DcentWallet/dcent-web-connector/blob/master/index.html>

## API

### Configuration

{% content-ref url="dcent-web-connector/configurations" %}
[configurations](https://dev-docs.dcentwallet.com/dcent-biometric-wallet-for-pc/dcent-web-connector/configurations)
{% endcontent-ref %}

### Hardware wallet device and accounts info.

{% content-ref url="dcent-web-connector/device-and-accounts-info." %}
[device-and-accounts-info.](https://dev-docs.dcentwallet.com/dcent-biometric-wallet-for-pc/dcent-web-connector/device-and-accounts-info.)
{% endcontent-ref %}

### Address & XPUB

You can get an address or XPUB for a specific private key with the APIs below.

{% content-ref url="dcent-web-connector/address-and-xpub" %}
[address-and-xpub](https://dev-docs.dcentwallet.com/dcent-biometric-wallet-for-pc/dcent-web-connector/address-and-xpub)
{% endcontent-ref %}

### Ethereum & EVM compatible network

You can find the APIs to generate signature for Ethereum, EVM compatible network.

{% content-ref url="dcent-web-connector/ethereum-and-evm-compatible" %}
[ethereum-and-evm-compatible](https://dev-docs.dcentwallet.com/dcent-biometric-wallet-for-pc/dcent-web-connector/ethereum-and-evm-compatible)
{% endcontent-ref %}

### Klaytn

You can find the APIs to generate signature for Klaytn network.

{% content-ref url="dcent-web-connector/klaytn" %}
[klaytn](https://dev-docs.dcentwallet.com/dcent-biometric-wallet-for-pc/dcent-web-connector/klaytn)
{% endcontent-ref %}

### Bitcoin & Bitcoin compatible network

You can find the APIs to generate signature for Bitcoin and Bitcoin compatible network.

{% content-ref url="dcent-web-connector/bitcoin" %}
[bitcoin](https://dev-docs.dcentwallet.com/dcent-biometric-wallet-for-pc/dcent-web-connector/bitcoin)
{% endcontent-ref %}

### XRPL (XRP Ledger)

You can find the APIs to generate signature for XRPL transactions.

{% content-ref url="dcent-web-connector/xrpl-xrp-ledger" %}
[xrpl-xrp-ledger](https://dev-docs.dcentwallet.com/dcent-biometric-wallet-for-pc/dcent-web-connector/xrpl-xrp-ledger)
{% endcontent-ref %}

### Hedera (HBAR & HTS)

You can find the APIs to generate signature for Hedera transactions.

{% content-ref url="dcent-web-connector/hedera-hbar-and-hts" %}
[hedera-hbar-and-hts](https://dev-docs.dcentwallet.com/dcent-biometric-wallet-for-pc/dcent-web-connector/hedera-hbar-and-hts)
{% endcontent-ref %}

### Tron (TRX & TRC20)

You can find the APIs to generate signature for Tron transactions.

{% content-ref url="dcent-web-connector/tron-trx-and-trc20" %}
[tron-trx-and-trc20](https://dev-docs.dcentwallet.com/dcent-biometric-wallet-for-pc/dcent-web-connector/tron-trx-and-trc20)
{% endcontent-ref %}

### Stellar

You can find the APIs to generate signature for Stellar transactions.

{% content-ref url="dcent-web-connector/stellar" %}
[stellar](https://dev-docs.dcentwallet.com/dcent-biometric-wallet-for-pc/dcent-web-connector/stellar)
{% endcontent-ref %}

### Tezos

You can find the APIs to generate signature for Tezos transactions.

{% content-ref url="dcent-web-connector/tezos-xtz-and-xtz\_fa" %}
[tezos-xtz-and-xtz\_fa](https://dev-docs.dcentwallet.com/dcent-biometric-wallet-for-pc/dcent-web-connector/tezos-xtz-and-xtz_fa)
{% endcontent-ref %}

### Vechain

You can find the APIs to generate signature for Vechain transactions.

{% content-ref url="dcent-web-connector/vechain" %}
[vechain](https://dev-docs.dcentwallet.com/dcent-biometric-wallet-for-pc/dcent-web-connector/vechain)
{% endcontent-ref %}

### Near (NEAR & Near Token)

You can find the APIs to generate signature for Near & Near Token transactions.

{% content-ref url="dcent-web-connector/near-near-and-near-token" %}
[near-near-and-near-token](https://dev-docs.dcentwallet.com/dcent-biometric-wallet-for-pc/dcent-web-connector/near-near-and-near-token)
{% endcontent-ref %}

### Havah

You can find the APIs to generate signature for Havah transactions.

{% content-ref url="dcent-web-connector/havah" %}
[havah](https://dev-docs.dcentwallet.com/dcent-biometric-wallet-for-pc/dcent-web-connector/havah)
{% endcontent-ref %}

### Polkadot

You can find the APIs to generate signature for Polkadot transactions.

{% content-ref url="dcent-web-connector/polkadot" %}
[polkadot](https://dev-docs.dcentwallet.com/dcent-biometric-wallet-for-pc/dcent-web-connector/polkadot)
{% endcontent-ref %}

### Cosmos &  Cosmos compatible network

You can find the APIs to generate signature for Cosmos and Cosmos compatible network.

{% content-ref url="dcent-web-connector/cosmos-and-cosmos-compatible-network" %}
[cosmos-and-cosmos-compatible-network](https://dev-docs.dcentwallet.com/dcent-biometric-wallet-for-pc/dcent-web-connector/cosmos-and-cosmos-compatible-network)
{% endcontent-ref %}

### Polkadot Parchain network

You can find the APIs to generate signature for Polkadot parachain network.
