const sdk = new Eniblock({
authConfig: {
clientId: "50efd4aa-2aa1-499c-87e2-db089409b818",
redirectUrl: window.location.origin + "/docs/",
},
storageItems: [{ alias: "LocalStorage", storage: new LocalStorage() }],
});
const account = await wallet.account.instantiate("My first account");
const transferCryptocurrencyParams = {
to: "0xBA3839604E9F3a01a52a2FCaF4517250a3a656E5",
type: "MATIC",
value: "0.1",
}
console.log(`Estimating the fees for sending ${transferCryptocurrencyParams.value} ${transferCryptocurrencyParams.type} to ${transferCryptocurrencyParams.to}...`)
const { estimatedFees } = await account.buildTransfer(transferCryptocurrencyParams).estimate();
console.log(`Estimated fees: ${estimatedFees} MATIC`);