Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
workerbee
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
workerbee
Wiki
Home
Changes
Page history
New page
Templates
Clone repository
Update generated documentation
authored
10 months ago
by
Mateusz Tyszczak
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
home.md
+2
-2
2 additions, 2 deletions
home.md
with
2 additions
and
2 deletions
home.md
View page @
78020ac2
...
...
@@ -121,7 +121,7 @@ import beekeeperFactory from "@hiveio/beekeeper";
const
beekeeper
=
await
beekeeperFactory
();
const
session
=
await
beekeeper
.
createSession
(
"
my.salt
"
);
const
{
wallet
}
=
await
session
.
createWallet
(
"
w0
"
,
"
mypassword
"
);
await
wallet
.
importKey
(
"
5JkFnXrLM2ap9t3AmAxBJvQHF7xSKtnTrCTginQCkhzU5S7ecPT
"
);
const
publicKey
=
await
wallet
.
importKey
(
"
5JkFnXrLM2ap9t3AmAxBJvQHF7xSKtnTrCTginQCkhzU5S7ecPT
"
);
const
bot
=
new
WorkerBee
();
bot
.
on
(
"
error
"
,
console
.
error
);
...
...
@@ -140,7 +140,7 @@ builder.push({
});
// Broadcast our transaction with custom internal expiration time
const
observer
=
await
bot
.
broadcast
(
builder
.
build
(
wallet
,
"
5RqVBAVNp5ufMCetQtvLGLJo7unX9nyCBMMrTXRWQ9i1Zzzizh
"
));
const
observer
=
await
bot
.
broadcast
(
builder
.
build
(
wallet
,
publicKey
));
// Observe if our transaction has been applied
observer
.
subscribe
({
...
...
This diff is collapsed.
Click to expand it.