
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
beowulf-js
Advanced tools
beowulf-js is the official Beowulf library for Javascript.
// MainNet
npm i beowulf-js
// TestNet
npm i beowulf-js-testnet
const beowulfjs = require('beowulf-js');
let url = beowulfjs.config.get('uri');
beowulfjs.api.setOptions({ url: url, useAppbaseApi: true });
let blockNum = 232967;
beowulfjs.api.getBlock(blockNum, function(err, result) {
console.log(err, result);
});
let trxId = '60207c8e17f47bf2790c927701792d95d42e3f46';
beowulfjs.api.getTransaction(trxId, function(err, result) {
console.log(err, result);
});
API
let wallet = beowulfjs.wallet.generateWallet();
Response Example
{
"owner": "5JY3sGqkfoN7U6kee9HibnG6etQgLNCMqjhPqsVDRXRjGwFNKeA",
"ownerPubkey": "BEO7GXMArUCaxq1kPNP4JkcnshVDyfpVTfEwL8e8FVAN6BgpU8Y1k"
}
API
beowulfjs.wallet.submitWallet({
ownerPubkey,
account,
creator,
creatorWif,
fee
}, (err, result) => {
})
Params:
ownerPubkey: string // wallet public key
account: string // Name of Wallet
fee: string // Fee for creating wallet
creator: string // Wallet Name of father of account
creatorWif: string // Private key of father account
let ownerPubkey = 'BEO7GXMArUCaxq1kPNP4JkcnshVDyfpVTfEwL8e8FVAN6BgpU8Y1k';
let account = 'newwallet';
let creator = 'creatorwallet';
let creatorWif = '5Kxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'; // replace by your wif
let fee = '0.00100 W';
beowulfjs.wallet.submitWallet({
ownerPubkey,
account,
creator,
creatorWif,
fee
}, (err, result) => {
})
API
beowulfjs.broadcast.transfer(wif, from, to, amount, fee, memo, (err, result) => {
console.log(err, result);
});
Params:
from: string // Wallet name of sender
wif: string // private key of sender
to: string // Wallet name of receiver
amount: string
memo: string
fee: string // Fee for submiting transaction
let from = 'examplewallet';
let wif = '5Jxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'; // replace by your wif
let to = 'examplewallet2';
let amount = '4.00000 BWF';
let memo = 'example';
let fee = '0.00001 W';
beowulfjs.broadcast.transfer(wif, from, to, amount, fee, memo, (err, result) => {
console.log(err, result);
});
FAQs
Beowulf the JavaScript API for Beowulf blockchain
The npm package beowulf-js receives a total of 1 weekly downloads. As such, beowulf-js popularity was classified as not popular.
We found that beowulf-js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.