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