Transfer Token

Module that enables the transfer of tokens to known addresses

Methods

createTransferTx

Creates a Transaction that transfers an ERC20 to another address.

tokenTransferModule.createTransferTx(to, amount, tokenAddr)

Parameters

to
string
Required

The receiving address of the tokens.

amount
float
Required

The amount of tokens to transfer out.

tokenAddr
string
Required

The address of the ERC-20 token to transfer.

Returns

tokenTransferReceipt
Transaction

A Transaction object that transfers an ERC-20 token to an address.