@hiveio/wax-signers-beekeeper
Version:
Wax signer library extending transaction signing possibilities by a 3rd party Web-only extension - Beekeeper
38 lines (26 loc) • 899 B
Markdown
Wax signer library extending transaction signing possibilities by a 3rd party Web-only extension - Beekeeper
```ts
import { createHiveChain } from "@hiveio/wax";
import BeekeeperProvider from "@hiveio/wax-signers-beekeeper";
const chain = await createHiveChain();
const provider = BeekeeperProvider.for(myWallet, "myaccount", "active", chain);
// Create a transaction using the Wax Hive chain instance
const tx = await chain.createTransaction();
// Perform some operations, e.g. push the vote operation:
tx.pushOperation({
vote_operation: {
voter: "alice",
author: "bob",
permlink: "example-post",
weight: 10000
}
});
// Wait for the keychain to sign the transaction
await provider.signTransaction(tx);
// broadcast the transaction
await chain.broadcast(tx);
```
See license in [LICENSE.md](LICENSE.md) file