encodeERC20TransferCall static method
Uint8List
encodeERC20TransferCall(
- EthereumAddress tokenAddress,
- EthereumAddress recipient,
- BigInt amount
Encodes the data for an ERC20 'transfer' operation.
tokenAddress
- Address of the ERC20 token contract.
recipient
- Address receiving the tokens.
amount
- Amount of tokens to transfer.
Implementation
static Uint8List encodeERC20TransferCall(
EthereumAddress tokenAddress,
EthereumAddress recipient,
BigInt amount,
) {
return _encodeContractCall(
'ERC20',
tokenAddress,
'transfer',
[recipient, amount],
);
}