import Align from "@tolbel/align";
const align = new Align({
apiKey: process.env.ALIGN_API_KEY!,
environment: "sandbox",
});
// 1 ETH = 1,000,000,000,000,000,000 wei
const eth = align.blockchain.utils.formatEther("1000000000000000000");
console.log(eth); // "1.0"
// 0.5 ETH
const halfEth = align.blockchain.utils.formatEther("500000000000000000");
console.log(halfEth); // "0.5"