Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hive-js
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
hive-js
Commits
b0d3303a
Commit
b0d3303a
authored
3 years ago
by
Mahdi Yari
Browse files
Options
Downloads
Patches
Plain Diff
add collateralizedConvert to docs
parent
97e2fdd1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/README.md
+17
-0
17 additions, 0 deletions
doc/README.md
with
17 additions
and
0 deletions
doc/README.md
+
17
−
0
View file @
b0d3303a
...
...
@@ -1766,6 +1766,23 @@ hive.broadcast.convert(wif, owner, requestid, amount, function(err, result) {
console.log(err, result);
});
```
### Collateralized Convert
```js
hive.broadcast.collateralizedConvert(wif, owner, collateral_amount, converted_amount, requestid, conversion_date, function(err, result) {
console.log(err, result);
});
```
|Parameter|Datatype|Description|
|---------|--------|-----------|
|wif|string|Active private key|
|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"|
|callback|function|function(err, data) {/*code*/}|
### Curate Reward
```js
hive.broadcast.curateReward(wif, curator, reward, commentAuthor, commentPermlink, function(err, result) {
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment