sdk.constellation.transferfrom
Home > @openformat/sdk > Constellation > transferFrom
Constellation.transferFrom() method
Transfers tokens from the current account to the provided account.
transfer
Signature:
transferFrom(params: ERC20TransferFromParams): Promise<ContractReceipt>;
Parameters
| Parameter | Type | Description |
|---|---|---|
| params | ERC20TransferFromParams |
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.