Binance
This function for :
BINANCE
(BNB)BEP2
- Binance tokenBNB_TESTNET
(BNB)BEP2_TESTNET
Parameter | Type | Description |
---|---|---|
coinType | CoinType | binance coin type. |
transaction | binace transaction parameters. |
Name | Type | Description |
---|---|---|
hdKeyPath | Bip44KeyPath | sign key path for binance transaction |
signBytes | String | transaction that has not been signed of binance transaction |
feeValue | String | transaction fee of binance transaction |
String
- signed transaction.- D'CENT Biometric Wallet version 1.9.2. or higher is required.
Example
String keyPath = "m/44'/714'/0'/0/0";
BinanceTransaction binanceTransaction;
binanceTransaction = new BinanceTransaction.Builder()
.keyPath(Bip44KeyPath.valueOf("m/44'/714'/0'/0/0"))
.signBytes("7b226163636f756e745f6e756d626572223a22343834303237222c22636861696e5f6964223a2242696e616e63652d436861696e2d546967726973222c2264617461223a6e756c6c2c226d656d6f223a22222c226d736773223a5b7b22696e70757473223a5b7b2261646472657373223a22626e62317a7a34647634767235687a3076647161686334707371797a39676a303974703775646d673273222c22636f696e73223a5b7b22616d6f756e74223a313030303030302c2264656e6f6d223a22424e42227d5d7d5d2c226f757470757473223a5b7b2261646472657373223a22626e6231796d33377164616e76716b72686139636b70686a6b3067336d6630367068656d33787a393437222c22636f696e73223a5b7b22616d6f756e74223a31303030303030303030302c2264656e6f6d223a22424e42227d5d7d5d7d5d2c2273657175656e6365223a2230222c22736f75726365223a2230227d")
.feeValue("375000")
.build();
String response = mDcentmanager.getDcentManager().getBinanceSignedTransaction(CoinType.BINANCE, binanceTransaction);
Last modified 2mo ago