import { sendMessage } from '../../../messaging'; import { Oep4Command } from '../constants'; interface TransferFromInput { network: string; scriptHash: string; from: string; to: string; amount: string; gasPrice?: number; gasLimit?: number; broadcastOverride?: boolean; } interface TransferFromOutput { txid: string; nodeUrl: string; } export function transferFrom(data: TransferFromInput): Promise { return sendMessage({ command: Oep4Command.transferFrom, data, }); }