Skip to main content

sdk.erc20base.transferfrom

Home > @openformat/sdk > ERC20Base > transferFrom

ERC20Base.transferFrom() method

Transfers tokens from the current account to the provided account.

transfer

Signature:

transferFrom(params: ERC20TransferFromParams): Promise<ContractReceipt>;

Parameters

ParameterTypeDescription
paramsERC20TransferFromParams

Returns:

Promise<ContractReceipt>

{Promise<ContractReceipt>} - A Promise that resolves to the transaction receipt object.

Exceptions

{Error} - If there is an error with the Ethereum transaction, a new Error object is thrown with a message containing the error details.