Bitcoin
getBitcoinSignedTransaction
The D'CENT Android SDK provides functions for signing transaction of coins.
This function for :
BITCOIN
(BTC) - bitcoinBITCOIN_SV
(BSV) - bitcoin svBTC_SEGWIT
(BTC) - bitcoin segwitMONACOIN
(MONA) - monacoinLITECOIN
(LTC) - litecoinLTC_SEGWIT
(LTC) - litecoin segwitZCASH
(ZEC) - zcashHORIZEN
(ZEN) - horizenBITCOINCASH
(BCH) - bitcoin cashDOGECOIN
(DOGE) - dogecoinBITCOINABC
(BCHA) - bitcoin cash abcECASH
(XEC) - ecashDASH
(DASH) - dashBITCOIN_GOLD
(BTG) - bitcoin goldDIGIBYTE
(DGB) - digibyteDGB_SEGWIT
(DGB)- digibyte segwitRAVENCOIN
(RVN) - ravencoinBITCOIN_TESTNET
(BTCt) - bitcoin testnsetBTC_SEGWIT_TESTNET
(BTCt) - bitcoin segwit testnetMONACOIN_TESTNET
(MONAt) - monacoin testnetLITE_TESTNET
(tLTC) - litecoin testnetLTC_SEGWIT_TESTNET
(tLTC) - litecoin segwit testnetZCASH_TESTNET
(TAZ) - zcash testnetBCH_TESTNET
(tBCH)- bitocin cash testnetDASH_TESTENET
(tDASH) - dash testnetBTG_TESTNET
(tBTG) - bitcoin gold testnetDIGIBYTE_TESTNET
(tDGB) - digibyte testnetDGB_SEGWIT_TESTNET
(tDGB) - digibyte segwit testnetRVN_TESTNET
(tRVN) - ravencoin testnet
Parameters
Parameter | Type | Description |
---|---|---|
coinType |
| bitcoin coin type. |
transaction | bitcoin transaction parameters. |
class BitCoinTransaction
This class to be used for bitcoin transaction.
Name | Type | Description |
---|---|---|
version |
| version of bitcoin transaction. Currently 1
- |
input |
| previous transaction output information to be used |
output |
| coin spending information |
locktime |
| locktime for this transaction |
optionParam |
| (optional)option parameter |
class UnspentTransactionOutput
The class for previous transaction output information to be used for bitcoin network transaction.
Name | Type | Description |
---|---|---|
prev_tx |
| full of previous transaction data |
utxo_idx |
| index of previous transaction output to be sent |
type |
| bitcoin transaction type for this UTXO |
key |
| BIP44 key path for unlocking UTXO |
class TransactionOutput
The class for coin spending information of Bitcoin network Transaction
Name | Type | Description |
---|---|---|
value |
| amount of coin to spend. Satoshi unit. |
to |
| if |
type |
| bitcoin network transaction type or this field can indicate output as a |
Returns
String
- signed transaction.j
Requirements
Refer to D`CENT Firmware Update History to determine which D'CENT Biometric Wallet versions are supported on each network.
Example
Last updated