Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
bitski-node
Advanced tools
A Bitski powered Web3 provider for Node environments, and App Wallet.
npm install --save bitski-node
Start by importing the SDK, as well as Web3. Then, create the provider by calling getProvider()
and pass it to Web3. The only required parameter is a client id.
const Bitski = require("bitski-node");
const Web3 = require("web3");
// Create bitski provider
const provider = Bitski.getProvider("YOUR CLIENT ID");
// Create web3 instance
const web3 = new Web3(provider);
If you have an App Wallet, or want to use anything that requires an account you need to pass in your client credentials. You can create these from the developer portal.
const Bitski = require("bitski-node");
const Web3 = require("web3");
// Configure options
const options = {
credentials: {
id: 'YOUR CREDENTIAL ID',
secret: 'YOUR CREDENTIAL SECRET'
}
};
// Pass options with the provider
const provider = Bitski.getProvider("YOUR CLIENT ID", options);
const web3 = new Web3(provider);
To use a Bitski wallet with a custom chain, you can create a network configuration and pass that in:
const network = {
rpcUrl: 'http://localhost:9545',
chainId: 9,
}
const provider = bitski.getProvider({ network: network });
This works great for development blockchains, sidechains, and more.
As of truffle v5, you can easily deploy contracts using your Bitski App Wallet. Configure your truffle.js
to supply a provider like this:
//truffle.js
const { ProviderManager } = require('bitski-node');
const manager = new ProviderManager('YOUR-CREDENTIAL-ID', 'YOUR-CREDENTIAL-SECRET');
module.exports = {
networks: {
live: {
network_id: '1',
provider: () => {
return manager.getProvider('mainnet');
}
},
rinkeby: {
network_id: '4',
provider: () => {
return manager.getProvider('rinkeby');
}
}
}
};
Bitski provides a “bug bounty” to engage with the security researchers in the community. If you have found a vulnerability in our product or service, please submit a vulnerability report to the Bitski security team.
FAQs
Bitski SDK for Node environments
We found that bitski-node demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.