Skip to content
Snippets Groups Projects
Commit 5b59900c authored by Mahdi Yari's avatar Mahdi Yari
Browse files

update collateralizedConvert

parent 9e0b2683
No related branches found
No related tags found
No related merge requests found
......@@ -1769,18 +1769,16 @@ hive.broadcast.convert(wif, owner, requestid, amount, function(err, result) {
### Collateralized Convert
```js
hive.broadcast.collateralizedConvert(wif, owner, collateral_amount, converted_amount, requestid, conversion_date, function(err, result) {
hive.broadcast.collateralizedConvert(wif, owner, requestid, amount, function(err, result) {
console.log(err, result);
});
```
|Parameter|Datatype|Description|
|---------|--------|-----------|
|wif|string|Active private key|
|wif|string|Active private key. "5xx...xxxx"|
|owner|string|Hive username. "guest123"|
|collateral_amount|string|Hive to be used as collateral for the conversion. "100.000 HIVE"|
|converted_amount|string|Amount of HBD to be converted. "10.000 HBD"|
|requestid|integer|Identifier for the conversion transactions from same account. 1|
|conversion_date|string|Time at which the conversion should take place. "2020/10/10 10:00"|
|amount|string|Hive to be used as collateral for the conversion. "100.000 HIVE"|
|callback|function|function(err, data) {/*code*/}|
### Curate Reward
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment