UNPKG

o3-dapi-ont

Version:
26 lines (22 loc) 500 B
import { sendMessage } from '../../../messaging'; import { Oep4Command } from '../constants'; interface TransferInput { network: string; scriptHash: string; from: string; to: string; amount: string; gasPrice?: number; gasLimit?: number; broadcastOverride?: boolean; } interface TransferOutput { txid: string; nodeUrl: string; } export function transfer(data: TransferInput): Promise<TransferOutput> { return sendMessage({ command: Oep4Command.transfer, data, }); }