UNPKG

o3-dapi-ont

Version:
23 lines (19 loc) 428 B
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<InitOutput> { return sendMessage({ command: Oep4Command.init, data, }); }