DeveloperBreeze

Blockchain Development Programming Tutorials, Guides & Best Practices

Explore 30+ expertly crafted blockchain development tutorials, components, and code examples. Stay productive and build faster with proven implementation strategies and design patterns from DeveloperBreeze.

Working with `BigNumber` in ethers.js: A Guide for Version 6

Tutorial October 24, 2024

Example:

const num1 = BigNumber.from(10);
const num2 = BigNumber.from(5);

console.log(num1.add(num2).toString()); // "15"
console.log(num1.sub(num2).toString()); // "5"