import {sendEthOrErc20Transaction} from '@tatumio/tatum';
* Send Ethereum or supported ERC20 transaction to the blockchain.
* @param chain - chain to work with
* @param fromPrivateKey - private key of sender address. Private key, or signature Id must be present.
* @param contractAddress - address of ERC20 token
* @param digits - number of decimal points that ERC20 token has
* @param amount - amount to be sent
* @param to - blockchain address to send ERC20 token to
* @returns transaction id of the transaction in the blockchain
const transaction = await sendEthOrErc20Transaction({
fromPrivateKey: '0x05e150c73f1920ec14caa1e0b6aa09940899678051a78542840c2668ce5080c2',
contractAddress: '0x316e52b83c66E8FB3936bdc2C8Ed8437441774cE',
to: "0x687422eEA2cB73B5d3e242bA5456b782919AFc85"