Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@martiandao/aptos-web3-bip44.js
Advanced tools
web3.js library for Aptos
@martiandao/aptos-web3-bip44.js is an npm module which allows developers to communicate with the Aptos core code. This module is built on top of Typescript SDK of Aptos.
npm i @martiandao/aptos-web3-bip44.js.js
Checkout the documents page for the function definitions.
const aptosWeb3 = require('@martiandao/aptos-web3-bip44.js');
const NODE_URL = "https://fullnode.devnet.aptoslabs.com";
const FAUCET_URL = "https://faucet.devnet.aptoslabs.com";
const walletClient = new aptosWeb3.WalletClient(NODE_URL, FAUCET_URL);
async function main() {
// create new wallet
console.log("\n=== Wallet Creation ===");
const wallet = await apis.createWallet();
const walletAccount = await WalletClient.getAccountFromMetaData(
alice.code,
alice.accounts[0]
);
const address = walletAccount.address().toString();
console.log('Address:', address);
// airdrop test tokens
console.log("\n=== Airdrop ===");
await walletClient.airdrop(address, 5000);
console.log('Balance:', await walletClient.getBalance(address));
// transfer tokens
console.log("\n=== Transfer ===");
const receiver_address = "0x123"; //replace this with a receiver's address
await walletClient.transfer(walletAccount, receiver_address, 1000);
console.log('Balance:', await walletClient.getBalance(address));
console.log('Balance:', await walletClient.getBalance(receiver_address));
}
main()
npm install
npm run build
Jest tests allow to test whether each function is working as it supposed to.
npm run test
FAQs
Web3 SDK For Aptos
The npm package @martiandao/aptos-web3-bip44.js receives a total of 5 weekly downloads. As such, @martiandao/aptos-web3-bip44.js popularity was classified as not popular.
We found that @martiandao/aptos-web3-bip44.js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.