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
80f90031
Commit
80f90031
authored
4 years ago
by
Mahdi Yari
Browse files
Options
Downloads
Patches
Plain Diff
params for transfer
parent
fb3265de
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!17
update readme
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/README.md
+23
-0
23 additions, 0 deletions
doc/README.md
with
23 additions
and
0 deletions
doc/README.md
+
23
−
0
View file @
80f90031
...
...
@@ -2002,12 +2002,35 @@ hive.broadcast.transfer(wif, from, to, amount, memo, function(err, result) {
console
.
log
(
err
,
result
);
});
```
|Parameter|Description|Datatype|Notes|
|---|---|---|---|
|wif|Active private key for the
`from`
account|String||
|from|Account name to take asset from|String|No leading @ symbol|
|to|Account name to place asset into|String|No leading @ symbol|
|amount|Amount of of asset to transfer|String|"X.XXX ASSET" must have 3 decimal places. e.g. "5.150 HBD"|
|function()|Your callback|function||
See also:
[
transferToVesting
](
#transfer-to-vesting
)
### Transfer To Vesting
Vests HIVE into HIVE POWER. This method supports powering up one account from another.
```
js
hive
.
broadcast
.
transferToVesting
(
wif
,
from
,
to
,
amount
,
function
(
err
,
result
)
{
console
.
log
(
err
,
result
);
});
```
|Parameter|Description|Datatype|Notes|
|---|---|---|---|
|wif|Active private key for the
`from`
account|String||
|from|Account name to take HIVE from|String|No leading @ symbol|
|to|Account name to vest HIVE POWER into|String|No leading @ symbol. Can be the same account as
`to`
|
|amount|Amount of HIVE to vest/power up|String|"X.XXX HIVE" must have 3 decimal places. e.g. "25.100 HIVE". Must be denominated in HIVE|
|function()|Your callback|function||
See also:
[
transfer
](
#transfer
)
### Vote
```
js
hive
.
broadcast
.
vote
(
wif
,
voter
,
author
,
permlink
,
weight
,
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