transfer
Description
Transfers tokens from the current account to the provided account.
Parameters
| Name | Type | Description |
|---|---|---|
| to | string | The address of the account to receive the tokens. |
| amount | number | The amount of tokens to transfer. |
| overrides? | Overrides | Optional overrides for the contract call. |
Example
import { ContractType } from "@openformat/sdk";
const contract = sdk.getContract({
contractAddress: "0x123...",
type: ContractType.Token,
});
const params = {
to: "0x123...",
amount: 100,
};
await contract.transfer(params);