tokens library

Functions

approve(BigInt amount, String accountAddress, String tokenContractAddress, String tokenContractName, Credentials credentials, {BigInt? gasLimit, int? gasPrice}) Future<bool>
Sends an approve transaction to an ERC 20 contract for a certain amount of tokens
approveGasLimit(BigInt amount, String accountAddress, String tokenContractAddress, String tokenContractName) Future<BigInt>
Sends an approve transaction to an ERC 20 contract for a certain amount of tokens
transfer(BigInt amount, String fromAddress, String toAddress, String tokenContractAddress, String tokenContractName, Credentials credentials, {dynamic gasLimit = GAS_LIMIT_HIGH, dynamic gasPrice = GAS_MULTIPLIER}) Future<bool>
Sends an transfer transaction to an ERC 20 contract for a certain amount of tokens
transferGasLimit(BigInt amount, String? fromAddress, String? toAddress, String? tokenContractAddress, String? tokenContractName) Future<BigInt>
Calculates the gas limit for a transfer transaction to an ERC 20 contract for a certain amount of tokens